Remove deprecated internal API service 69/60769/1 accepted/tizen/common/20160323.183817 accepted/tizen/ivi/20160321.114102 accepted/tizen/mobile/20160321.114008 accepted/tizen/tv/20160321.114019 accepted/tizen/wearable/20160321.114037 submit/tizen/20160315.050359 submit/tizen/20160321.052611 submit/tizen_common/20160316.154911
authorHyunho Kang <hhstark.kang@samsung.com>
Wed, 2 Mar 2016 06:23:03 +0000 (15:23 +0900)
committerHyunho Kang <hhstark.kang@samsung.com>
Wed, 2 Mar 2016 06:24:31 +0000 (15:24 +0900)
- set_noti_property
- get_noti_property

Change-Id: Ic3be67d20f1d9cccf0e30b8bc1e9c6be586c72e2
Signed-off-by: Hyunho Kang <hhstark.kang@samsung.com>
src/notification_service.c

index 14adacb..05ea85c 100755 (executable)
@@ -117,10 +117,6 @@ static void _noti_dbus_method_call_handler(GDBusConnection *conn,
                ret = notification_del_noti_single(parameters, &reply_body);
        else if (g_strcmp0(method_name, "del_noti_multiple") == 0)
                ret = notification_del_noti_multiple(parameters, &reply_body);
-       else if (g_strcmp0(method_name, "set_noti_property") == 0)
-               ret = notification_set_noti_property(parameters, &reply_body);
-       else if (g_strcmp0(method_name, "get_noti_property") == 0)
-               ret = notification_get_noti_property(parameters, &reply_body);
        else if (g_strcmp0(method_name, "get_noti_count") == 0)
                ret = notification_get_noti_count(parameters, &reply_body);
        else if (g_strcmp0(method_name, "update_noti_setting") == 0)
@@ -222,18 +218,6 @@ int notification_register_dbus_interface()
                        "          <arg type='a(v)' name='noti_list' direction='out'/>"
                        "        </method>"
 
-                       "        <method name='set_noti_property'>"
-                       "          <arg type='s' name='pkgname' direction='in'/>"
-                       "          <arg type='s' name='property' direction='in'/>"
-                       "          <arg type='s' name='value' direction='in'/>"
-                       "        </method>"
-
-                       "        <method name='get_noti_property'>"
-                       "          <arg type='s' name='pkgname' direction='in'/>"
-                       "          <arg type='s' name='property' direction='in'/>"
-                       "          <arg type='s' name='ret_value' direction='out'/>"
-                       "        </method>"
-
                        "        <method name='get_noti_count'>"
                        "          <arg type='i' name='type' direction='in'/>"
                        "          <arg type='s' name='pkgname' direction='in'/>"
@@ -778,58 +762,6 @@ int notification_del_noti_multiple(GVariant *parameters, GVariant **reply_body)
        return ret;
 }
 
-/* set_noti_property */
-int notification_set_noti_property(GVariant *parameters, GVariant **reply_body)
-{
-       int ret;
-       char *pkgname = NULL;
-       char *property = NULL;
-       char *value = NULL;
-
-       g_variant_get(parameters, "(&s&s&s)", &pkgname, &property, &value);
-
-       ret = notification_setting_db_set(pkgname, property, value);
-       if (ret != NOTIFICATION_ERROR_NONE) {
-               ErrPrint("failed to setting db set : %d\n", ret);
-               return ret;
-       }
-       *reply_body = g_variant_new("()");
-       if (*reply_body == NULL) {
-               ErrPrint("cannot make reply_body");
-               return NOTIFICATION_ERROR_OUT_OF_MEMORY;
-       }
-
-       DbgPrint("_set_noti_property_service done !! %d", ret);
-       return ret;
-}
-
-/* get_noti_property */
-int notification_get_noti_property(GVariant *parameters, GVariant **reply_body)
-{
-       int ret;
-       char *pkgname = NULL;
-       char *property = NULL;
-       char *value = NULL;
-
-       g_variant_get(parameters, "(&s&s)", &pkgname, &property);
-
-       ret = notification_setting_db_get(pkgname, property, &value);
-       if (ret != NOTIFICATION_ERROR_NONE) {
-               ErrPrint("failed to setting db get : %d\n", ret);
-               return ret;
-       }
-       *reply_body = g_variant_new("(s)", value);
-       free(value);
-
-       if (*reply_body == NULL) {
-               ErrPrint("cannot make reply_body");
-               return NOTIFICATION_ERROR_OUT_OF_MEMORY;
-       }
-
-       DbgPrint("_get_noti_property_service done !! %d", ret);
-       return ret;
-}
-
 /* get_noti_count */
 int notification_get_noti_count(GVariant *parameters, GVariant **reply_body)
 {