Change attribute name of NotificationError 65/202465/1
authorjusung son <jusung07.son@samsung.com>
Fri, 29 Mar 2019 01:44:27 +0000 (10:44 +0900)
committerjusung son <jusung07.son@samsung.com>
Fri, 29 Mar 2019 01:44:27 +0000 (10:44 +0900)
Change-Id: I6e4b11f04a8fc0214ff1807d9214dd20f92db97f
Signed-off-by: jusung son <jusung07.son@samsung.com>
src/notification_ex_service.cc

index b34bbca..a1d94f0 100755 (executable)
@@ -77,16 +77,16 @@ class DPMReporter : public Reporter {
 
     /* check Manager::Hide() */
     ret = UpdateHideApp(updatedItem);
-    if (ret == NOTIFICATION_ERROR_NONE)
+    if (ret == ERROR_NONE)
       return;
 
-    if (ret != NOTIFICATION_ERROR_NOT_EXIST_ID) {
+    if (ret != ERROR_NOT_EXIST_ID) {
       SendError(info, static_cast<NotificationError>(ret));
       return;
     }
 
     ret = DBManager::UpdateNotification(updatedItem);
-    if (ret == NOTIFICATION_ERROR_NONE) {
+    if (ret == ERROR_NONE) {
       /* noti owner */
       facade_->DelegateManagerEvent(info, updatedItem);
 
@@ -104,7 +104,7 @@ class DPMReporter : public Reporter {
     int ret;
 
     ret = DBManager::DeleteNotification(deletedItem);
-    if (ret == NOTIFICATION_ERROR_NONE) {
+    if (ret == ERROR_NONE) {
       /* noti owner */
       facade_->DelegateManagerEvent(info, deletedItem);
 
@@ -154,11 +154,11 @@ class DPMReporter : public Reporter {
           hide_list += i + ";";
 
         ret = DBManager::UpdateHideList(updatedItem, hide_list);
-        if (ret != NOTIFICATION_ERROR_NONE)
+        if (ret != ERROR_NONE)
           return ret;
 
         facade_->hide_map_[map_key] = hide_list;
-        return NOTIFICATION_ERROR_NONE;
+        return ERROR_NONE;
       }
     }
 
@@ -168,15 +168,15 @@ class DPMReporter : public Reporter {
       if(hide_list.find(i + ";") == string::npos) {
         string new_hide_list = hide_list + i + ";";
         ret = DBManager::UpdateHideList(updatedItem, new_hide_list);
-        if (ret != NOTIFICATION_ERROR_NONE)
+        if (ret != ERROR_NONE)
           return ret;
 
         facade_->hide_map_[map_key] = new_hide_list;
-        return NOTIFICATION_ERROR_NONE;
+        return ERROR_NONE;
       }
     }
 
-    return NOTIFICATION_ERROR_NOT_EXIST_ID;
+    return ERROR_NOT_EXIST_ID;
   }
 
  public:
@@ -218,7 +218,7 @@ class DPMManager : public Manager {
     int ret;
 
     ret = DBManager::InsertNotification(addedItem);
-    if (ret == NOTIFICATION_ERROR_NONE) {
+    if (ret == ERROR_NONE) {
       for (auto& i : addedItem)
         facade_->DelegateReporterEvent(info, i);
     } else {
@@ -236,7 +236,7 @@ class DPMManager : public Manager {
     UpdateHideApp(updatedItem);
 
     ret = DBManager::UpdateNotification(updatedItem);
-    if (ret == NOTIFICATION_ERROR_NONE) {
+    if (ret == ERROR_NONE) {
       facade_->DelegateReporterEvent(info, updatedItem);
     } else {
       SendError(info, static_cast<NotificationError>(ret));
@@ -249,7 +249,7 @@ class DPMManager : public Manager {
     int ret;
 
     ret = DBManager::DeleteNotification(deletedItem);
-    if (ret == NOTIFICATION_ERROR_NONE) {
+    if (ret == ERROR_NONE) {
       facade_->DelegateReporterEvent(info, deletedItem);
     } else {
       SendError(info, static_cast<NotificationError>(ret));
@@ -294,12 +294,12 @@ HAPI int notification_ex_service_init() {
     )
   );
 
-  return NOTIFICATION_ERROR_NONE;
+  return ERROR_NONE;
 }
 
 HAPI int notification_ex_service_fini() {
   delete facade_;
-  return NOTIFICATION_ERROR_NONE;
+  return ERROR_NONE;
 }
 
 HAPI GDBusConnection* notification_ex_service_get_gdbus_connection() {