Add Notification when deleted by pacakge name 11/117011/1 accepted/tizen/common/20170302.151748 accepted/tizen/ivi/20170302.121810 accepted/tizen/mobile/20170302.121653 accepted/tizen/unified/20170309.031712 accepted/tizen/wearable/20170302.121740 submit/tizen/20170302.094338 submit/tizen_unified/20170308.100404
authorJooseok Song <seogii.song@samsung.com>
Thu, 2 Mar 2017 09:39:30 +0000 (18:39 +0900)
committerJooseok Song <seogii.song@samsung.com>
Thu, 2 Mar 2017 09:39:30 +0000 (18:39 +0900)
Change-Id: I602558b19f835bbb4141c46202bee313e70d23e4

common/src/account_db_helper.c
packaging/account-common.spec

index 582ed1193c2714a875bccbb51ba6bb112598fc3c..62a6cff46eaeaceb845671bddc73d7713213eab0 100644 (file)
@@ -44,6 +44,8 @@
 
 #define ACCESS_TOKEN_ALIAS     "access_token"
 
+#define _ACCOUNT_NOTI_NAME_DELETE        "delete"
+
 #define ACCOUNT_DB_OPEN_READONLY 0
 #define ACCOUNT_DB_OPEN_READWRITE 1
 
@@ -1621,12 +1623,15 @@ CATCH:
                                char *p_tmpid = NULL;
                                p_tmpid = (char *)gs_iter->data;
 
-                               /* TODO : add "delete" noti */
-/*                             char buf[64] = {0, };
-                               ACCOUNT_SNPRINTF(buf, sizeof(buf), "%s:%s", ACCOUNT_NOTI_NAME_DELETE, p_tmpid);
+                               char buf[64] = {0, };
+                               ACCOUNT_SNPRINTF(buf, sizeof(buf), "%s:%s", _ACCOUNT_NOTI_NAME_DELETE, p_tmpid);
                                ACCOUNT_SLOGD("%s", buf);
-                               _account_insert_delete_update_notification_send(buf);
-*/
+                               if(NULL != buf) {
+                                       if (vconf_set_str(VCONFKEY_ACCOUNT_MSG_STR, buf) != 0) {
+                                               _ERR("Vconf MSG Str set FAILED !!!!!!\n");;
+                                       }
+                               }
+
                                _ACCOUNT_FREE(p_tmpid);
                        }
                        g_slist_free(account_id_list);
index c6cd44b627e490de901ef6250a6d27478182a4e0..078a804b2444f019a8a947ca6458be5b23e3a992 100644 (file)
@@ -1,6 +1,6 @@
 Name:       account-common
 Summary:    Account common library
-Version:    0.1.7
+Version:    0.1.8
 Release:    1
 Group:      Social & Content/API
 License:    Apache-2.0