0.9.14 release -- add: TIVI-1751 Home Screen needs to use system notifications framework
[profile/ivi/ico-uxf-homescreen.git] / lib / notification / CicoNotificationService.cpp
index 8afd007..639cf01 100644 (file)
@@ -25,7 +25,7 @@
  */
 //--------------------------------------------------------------------------
 CicoNotificationService::CicoNotificationService()
-    : m_privateid(0), 
+    : m_privateid(0),
       m_user_data(NULL)
 {
 }
@@ -60,7 +60,8 @@ CicoNotificationService::Add(CicoNotification noti)
     }
 
     int retid = 0;
-    notification_error_e err = notification_insert(noti.Unpack(), &retid);
+    notification_error_e err = NOTIFICATION_ERROR_NONE;
+    err = notification_insert(noti.GetNotiHandle(), &retid);
     if (NOTIFICATION_ERROR_NONE != err) {
         ICO_ERR("notification_insert() failed(%d).", err);
         return false;
@@ -84,7 +85,8 @@ CicoNotificationService::Update(CicoNotification noti)
         return false;
     }
 
-    notification_error_e err = notification_update(noti.Unpack());
+    notification_error_e err = NOTIFICATION_ERROR_NONE;
+    err = notification_update(noti.GetNotiHandle());
     if (NOTIFICATION_ERROR_NONE != err) {
         ICO_ERR("notification_update() failed(%d).", err);
         return false;
@@ -132,7 +134,7 @@ CicoNotificationService::Delete(CicoNotification noti)
 
 //--------------------------------------------------------------------------
 /**
- *  @brief  set callback function of notification 
+ *  @brief  set callback function of notification
  *
  *  @param [in] detailed_changed_cb callback function
  *  @param [in] user_data           user data
@@ -170,7 +172,7 @@ CicoNotificationService::SetCallback(void (*detailed_changed_cb)
 
 //--------------------------------------------------------------------------
 /**
- *  @brief  unset callback function of notification 
+ *  @brief  unset callback function of notification
  *
  *  @param [in] detailed_changed_cb callback function
  *  @param [in] user_data           user data