Add notification-ex feature
[platform/core/appfw/data-provider-master.git] / include / badge_service.h
1 /*
2  * Copyright 2016  Samsung Electronics Co., Ltd
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16
17 #include <gio/gio.h>
18 #include <sys/types.h>
19
20 #ifndef BADGE_SERVICE_H_
21 #define BADGE_SERVICE_H_
22
23 #ifdef __cplusplus
24 extern "C" {
25 #endif
26
27 int badge_service_init(void);
28 int badge_service_fini(void);
29
30 int badge_get_badge_existing(GVariant *parameters, GVariant **reply_body, uid_t uid);
31 int badge_get_badge_list(GVariant *parameters, GVariant **reply_body, uid_t uid);
32 int badge_insert(GVariant *parameters, GVariant **reply_body, uid_t uid);
33 int badge_delete(GVariant *parameters, GVariant **reply_body, uid_t uid, pid_t pid);
34 int badge_set_badge_count(GVariant *parameters, GVariant **reply_body, uid_t uid, pid_t pid);
35 int badge_get_badge_count(GVariant *parameters, GVariant **reply_body, uid_t uid);
36 int badge_set_display_option(GVariant *parameters, GVariant **reply_body, uid_t uid);
37 int badge_get_display_option(GVariant *parameters, GVariant **reply_body, const gchar *sender, uid_t uid);
38 int badge_update_badge_setting(GVariant *parameters, GVariant **reply_body, uid_t uid);
39 int badge_get_setting_by_appid(GVariant *parameters, GVariant **reply_body, uid_t uid);
40 int badge_get_setting_array(GVariant *parameters, GVariant **reply_body, uid_t uid);
41 int badge_set_setting_property(GVariant *parameters, GVariant **reply_body, uid_t uid);
42 int badge_get_setting_property(GVariant *parameters, GVariant **reply_body, uid_t uid);
43 int badge_init_display(GVariant *parameters, GVariant **reply_body, uid_t uid);
44 int badge_register_dbus_interface();
45
46 #ifdef __cplusplus
47 }
48 #endif
49
50 #endif // BADGE_SERVICE_H_