Initialize Noti-ex
[platform/core/api/notification.git] / notification / include / notification_setting_service.h
1 /*
2  * Copyright (c) 2000 - 2017 Samsung Electronics Co., Ltd. All rights reserved.
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 #ifndef __NOTIFICATION_SETTING_SERVICE_H__
18 #define __NOTIFICATION_SETTING_SERVICE_H__
19
20 #include <sys/types.h>
21 #include <notification.h>
22
23 #ifdef __cplusplus
24 extern "C" {
25 #endif
26
27 int notification_setting_db_set(const char *pkgname, const char *property, const char *value);
28 int notification_setting_db_get(const char *pkgname, const char *property, char **value);
29
30 int notification_setting_db_update(const char *package_name, const char *app_id, int allow_to_notify, int do_not_disturb_except, int visibility_class,
31                                    int pop_up_notification, int lock_screen_content_level, uid_t uid);
32 int notification_setting_db_update_system_setting(int do_not_disturb, int visibility_class,
33                                         int dnd_schedule_enabled, int dnd_schedule_day,
34                                         int dnd_start_hour, int dnd_start_min,
35                                         int dnd_end_hour, int dnd_end_min,
36                                         int lock_screen_content_level, uid_t uid);
37 int notification_setting_db_update_do_not_disturb(int do_not_disturb, uid_t uid);
38
39 int noti_setting_service_get_setting_by_app_id(const char *app_id, notification_setting_h *setting, uid_t uid);
40 int noti_setting_get_setting_array(notification_setting_h *setting_array, int *count, uid_t uid);
41 int noti_system_setting_load_system_setting(notification_system_setting_h *system_setting, uid_t uid);
42 int noti_system_setting_get_do_not_disturb(int *do_not_disturb, uid_t uid);
43 int notification_system_setting_get_dnd_schedule_enabled_uid(uid_t **uids, int *count);
44 int notification_get_dnd_and_allow_to_notify(const char *app_id, int *do_not_disturb, int *do_not_disturb_except, int *allow_to_notify, uid_t uid);
45 int notification_system_setting_load_dnd_allow_exception(dnd_allow_exception_h *dnd_allow_exception, int *count, uid_t uid);
46 int notification_system_setting_update_dnd_allow_exception(int type, int value, uid_t uid);
47 int notification_setting_db_update_app_disabled(const char *app_id, bool value, uid_t uid);
48 int notification_setting_db_update_pkg_disabled(const char *pkg_id, bool value, uid_t uid);
49
50 #ifdef __cplusplus
51 }
52 #endif
53 #endif /* __NOTIFICATION_SETTING_SERVICE_H__ */
54