#define ENTRY_TEXT_KEY "__ENTRY_TEXT_KEY__"
#define ENTRY_LIMIT_KEY "__ENTRY_LIMIT_KEY__"
+using namespace tizen_base;
+
namespace notification {
namespace item {
EntryItem::EntryItem(std::shared_ptr<AbstractAction> action)
- : AbstractItem(action), impl_(new Impl(this)) {
+ : AbstractItem(action), impl_(new Impl(this)) {
}
EntryItem::EntryItem(std::string id, std::shared_ptr<AbstractAction> action)
- : AbstractItem(id, action), impl_(new Impl(this)) {
+ : AbstractItem(id, action), impl_(new Impl(this)) {
}
EntryItem::Impl::Impl(EntryItem* parent)
- : parent_(parent) {
+ : parent_(parent) {
LOGI("EntryItem created");
}
return AbstractItem::Entry;
}
-Bundle EntryItem::Serialize() {
+Bundle EntryItem::Serialize() const {
Bundle b;
b = AbstractItem::Serialize();
impl_->limit_ = std::stoi(b.GetString(ENTRY_LIMIT_KEY));
}
-AbstractItem& EntryItem::FindByID(std::string id) {
- if (GetId() == id)
- return *this;
- return FactoryManager::GetInst().GetNullItem();
+bool EntryItem::IsItemTypeExist(int type) {
+ if (GetType() == type)
+ return true;
+ return false;
}
std::string EntryItem::GetText() const {