Change-Id: Ice4b5eb6cbbb315cfc6bf33d2efc0158c3f6b005
Signed-off-by: Junghoon Park <jh9216.park@samsung.com>
return true;
}
-void AbstractItem::SetPolicy(AbstractItem::Policy policy) {
+void AbstractItem::SetPolicy(int policy) {
impl_->policy_ = policy;
}
-AbstractItem::Policy AbstractItem::GetPolicy() const {
+int AbstractItem::GetPolicy() const {
return impl_->policy_;
}
};
enum Policy {
- None,
- OnBootClear,
- SimMode,
+ None = 0,
+ OnBootClear = 1 << 0,
+ SimMode = 1 << 1,
};
public:
void RemoveReceiver(std::string receiver_group);
std::list<std::string> GetReceiverList();
bool CanReceive(std::string id) const;
- void SetPolicy(Policy policy);
- Policy GetPolicy() const;
+ void SetPolicy(int policy);
+ int GetPolicy() const;
std::string GetChannel() const;
void SetChannel(std::string channel);
void SetLEDInfo(std::shared_ptr<LEDInfo> led);
std::string channel_;
std::string id_;
std::shared_ptr<LEDInfo> led_ = nullptr;
- Policy policy_ = None;
+ int policy_ = None;
std::shared_ptr<Style> style_ = nullptr;
bool visible_ = true;
bool enable_ = true;