diff options
author | Son seungha <seungha.son@samsung.com> | 2016-11-30 21:05:41 -0800 |
---|---|---|
committer | Son seungha <seungha.son@samsung.com> | 2016-11-30 21:05:41 -0800 |
commit | c830a6becb41b3d9d1586ca6c4997f04ae638685 (patch) | |
tree | 94627cf05e4b149d7d2a8b351c053a43f0dc77af /include | |
parent | e70a62a7fdce3e30eb446c2d25e767b9e4a60b58 (diff) | |
download | badge-c830a6becb41b3d9d1586ca6c4997f04ae638685.tar.gz badge-c830a6becb41b3d9d1586ca6c4997f04ae638685.tar.bz2 badge-c830a6becb41b3d9d1586ca6c4997f04ae638685.zip |
Revert "Adds APIs for Application detail setting"submit/tizen_3.0/20161201.050955accepted/tizen/3.0/wearable/20161201.075417accepted/tizen/3.0/tv/20161201.075412accepted/tizen/3.0/mobile/20161201.075407accepted/tizen/3.0/ivi/20161201.075426accepted/tizen/3.0/common/20161201.135608
This reverts commit e70a62a7fdce3e30eb446c2d25e767b9e4a60b58.
Change-Id: I7f04a7d05cd2ca4ccb1d21d815a564c5fd7d0488
Diffstat (limited to 'include')
-rwxr-xr-x | include/badge.h | 2 | ||||
-rwxr-xr-x | include/badge_db.h | 5 | ||||
-rwxr-xr-x | include/badge_ipc.h | 9 | ||||
-rw-r--r-- | include/badge_setting.h | 65 | ||||
-rw-r--r-- | include/badge_setting_service.h | 56 |
5 files changed, 0 insertions, 137 deletions
diff --git a/include/badge.h b/include/badge.h index 2eaf7d2..45a961b 100755 --- a/include/badge.h +++ b/include/badge.h @@ -324,8 +324,6 @@ typedef void (*badge_change_cb)(unsigned int action, const char *app_id, unsigned int count, void *user_data); /** * @brief Registers a callback function to receive badge change event. - * @remarks Should be used in the homescreen.\n - * Prospective Clients : Homescreen. * @since_tizen @if MOBILE 2.4 @elseif WEARABLE 3.0 @endif * @privlevel public * @privilege %http://tizen.org/privilege/notification diff --git a/include/badge_db.h b/include/badge_db.h index b8ad800..69564ae 100755 --- a/include/badge_db.h +++ b/include/badge_db.h @@ -22,17 +22,12 @@ #include <stdbool.h> #include <sqlite3.h> #include <sys/types.h> -#include <gio/gio.h> -#include <tzplatform_config.h> #include <badge_error.h> #ifdef __cplusplus extern "C" { #endif -#define BADGE_DB_PATH tzplatform_mkpath(TZ_SYS_DB, ".badge.db") -#define BADGE_SETTING_DB_TABLE "badge_setting" - int badge_db_insert(const char *pkgname, const char *writable_pkg, const char *caller, uid_t uid); int badge_db_delete(const char *pkgname, const char *caller_pkg, uid_t uid); int badge_db_set_count(const char *pkgname, const char *caller_pkg, unsigned int count, uid_t uid); diff --git a/include/badge_ipc.h b/include/badge_ipc.h index 29c3d8f..0d61147 100755 --- a/include/badge_ipc.h +++ b/include/badge_ipc.h @@ -19,9 +19,7 @@ #define __BADGE_IPC_H__ #include <badge.h> -#include <badge_setting.h> #include <sys/types.h> -#include <glib.h> #define BADGE_ADDR "/tmp/.badge.service" @@ -48,13 +46,6 @@ int badge_ipc_del_deferred_task(void (*badge_add_deferred_task)(void *data)); int badge_ipc_request_get_list(badge_foreach_cb callback, void *data, uid_t uid); int badge_ipc_request_is_existing(const char *pkgname, bool *existing, uid_t uid); -int badge_ipc_request_update_setting(badge_setting_h setting, uid_t uid); -int badge_ipc_request_get_setting_by_appid(badge_setting_h *setting, const char *appid, uid_t uid); -int badge_ipc_init_badge(uid_t uid); - -GVariant *badge_ipc_make_gvariant_from_setting(badge_setting_h setting); -int badge_ipc_make_setting_from_gvariant(badge_setting_h setting, GVariant *variant); - #ifdef __cplusplus } #endif diff --git a/include/badge_setting.h b/include/badge_setting.h deleted file mode 100644 index 73010b6..0000000 --- a/include/badge_setting.h +++ /dev/null @@ -1,65 +0,0 @@ -/* - * Copyright (c) 2016 Samsung Electronics Co., Ltd. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the License); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an AS IS BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ - -#ifndef __BADGE_SETTING_H__ -#define __BADGE_SETTING_H__ - -#include <stdbool.h> -#include <sys/types.h> -#include "badge_error.h" - -#ifdef __cplusplus -extern "C" { -#endif /* __cplusplus */ - -/** - * @file badge_setting.h - * @brief This file contains the badge APIs. - */ - -/** - * @addtogroup BADGE_MODULE - * @{ - */ - -typedef struct badge_setting *badge_setting_h; - -struct badge_setting { - char *pkgname; - char *appid; - int allow_to_display; -}; - -int badge_setting_get_pkgname(badge_setting_h setting, char **pkgname); -int badge_setting_get_appid(badge_setting_h setting, char **appid); -int badge_setting_set_allow_to_display(badge_setting_h setting, bool value); -int badge_setting_get_allow_to_display(badge_setting_h setting, bool *value); -int badge_setting_update_setting(badge_setting_h setting); -int badge_setting_update_setting_for_uid(badge_setting_h setting, uid_t uid); -int badge_setting_get_setting_by_appid(badge_setting_h *setting, const char *appid); -int badge_setting_get_setting_by_appid_for_uid(badge_setting_h *setting, const char *appid, uid_t uid); -int badge_setting_free_setting(badge_setting_h setting); - -/** - * @} - */ - -#ifdef __cplusplus -} -#endif /* __cplusplus */ - -#endif /* __BADGE_SETTING_H__ */ diff --git a/include/badge_setting_service.h b/include/badge_setting_service.h deleted file mode 100644 index de97921..0000000 --- a/include/badge_setting_service.h +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Copyright (c) 2016 Samsung Electronics Co., Ltd. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the License); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an AS IS BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ - -#ifndef __BADGE_SETTING_SERVICE_H__ -#define __BADGE_SETTING_SERVICE_H__ - -#include <stdbool.h> -#include <sys/types.h> -#include "badge_error.h" -#include "badge_setting.h" - -#ifdef __cplusplus -extern "C" { -#endif /* __cplusplus */ - -/** - * @file badge_setting_service.h - * @brief This file contains the badge APIs. - */ - -/** - * @addtogroup BADGE_MODULE - * @{ - */ - -int badge_db_get_setting_by_appid(const char *appid, badge_setting_h *setting, uid_t uid); -int badge_db_get_allow_to_display_by_appid(char *appid, int *allow_to_display, uid_t uid); -int badge_setting_insert_package_for_uid(const char *pkgname, uid_t uid); -int badge_setting_delete_package_for_uid(const char *pkgname, uid_t uid); -int badge_setting_refresh_setting_table(uid_t uid); -int badge_db_update_setting(char *pkgname, char *appid, int allow_to_display, uid_t uid); - -/** - * @} - */ - -#ifdef __cplusplus -} -#endif /* __cplusplus */ - -#endif /* __BADGE_SETTING_SERVICE_H__ */ - |