Add action parameter to Base class for EntryItem and TextItem 90/201590/1
authorSukHyung, Kang <shine.kang@samsung.com>
Mon, 18 Mar 2019 04:54:03 +0000 (13:54 +0900)
committerSukHyung, Kang <shine.kang@samsung.com>
Mon, 18 Mar 2019 04:54:03 +0000 (13:54 +0900)
Change-Id: I0be1f385c2e71223c11cc710026c98dee41f656c
Signed-off-by: SukHyung, Kang <shine.kang@samsung.com>
notification-ex/entry_item.cc
notification-ex/text_item.cc

index 31c4caf..44c55b0 100644 (file)
@@ -34,11 +34,11 @@ namespace notification {
 namespace item {
 
 EntryItem::EntryItem(std::shared_ptr<AbstractAction> action)
-  : AbstractItem(AbstractItem::Type::Entry), impl_(new Impl(this)) {
+  : AbstractItem(AbstractItem::Type::Entry, action), impl_(new Impl(this)) {
 }
 
 EntryItem::EntryItem(std::string id, std::shared_ptr<AbstractAction> action)
-  : AbstractItem(id, AbstractItem::Type::Entry), impl_(new Impl(this)) {
+  : AbstractItem(id, AbstractItem::Type::Entry, action), impl_(new Impl(this)) {
 }
 
 EntryItem::Impl::Impl(EntryItem* parent)
index cced868..6b153cb 100644 (file)
@@ -34,7 +34,7 @@ namespace notification {
 namespace item {
 TextItem::TextItem(std::string id, std::string text, std::string hyperlink,
       std::shared_ptr<AbstractAction> action)
-  : AbstractItem(id, AbstractItem::Type::Text),
+  : AbstractItem(id, AbstractItem::Type::Text, action),
   impl_(new Impl(this, text, hyperlink)) {
 }