Fix group name for noti_ex
[platform/core/api/notification.git] / notification-ex / image_item.cc
index 07fd987..788354e 100644 (file)
@@ -28,6 +28,8 @@
 #define LOG_TAG "NOTIFICATION_EX"
 #define IMAGE_PATH_KEY "__IMAGE_PATH_KEY__"
 
+using namespace tizen_base;
+
 namespace notification {
 namespace item {
 
@@ -63,11 +65,10 @@ void ImageItem::Deserialize(Bundle b) {
   impl_->image_path_ = b.GetString(IMAGE_PATH_KEY);
 }
 
-AbstractItem& ImageItem::FindByID(std::string id) {
-  if (GetId() == id)
-    return *this;
-
-  return FactoryManager::GetInst().GetNullItem();
+bool ImageItem::IsItemTypeExist(int type) {
+  if (GetType() == type)
+    return true;
+  return false;
 }
 
 std::string ImageItem::GetImagePath() const {