Fix sample codes for notification_set/get_led
[platform/core/api/notification.git] / include / notification_setting_service.h
1 /*
2  * Copyright (c) 2000 - 2016 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 <notification.h>
21
22 #ifdef __cplusplus
23 extern "C" {
24 #endif
25
26 int notification_setting_db_set(const char *pkgname, const char *property, const char *value);
27 int notification_setting_db_get(const char *pkgname, const char *property, char **value);
28
29 int notification_setting_db_update(const char *package_name, int allow_to_notify, int do_not_disturb_except, int visibility_class);
30 int notification_setting_db_update_system_setting(int do_not_disturb, int visibility_class);
31
32 int noti_setting_service_get_setting_by_package_name(const char *package_name, notification_setting_h *setting);
33 int noti_setting_get_setting_array(notification_setting_h *setting_array, int *count);
34 int noti_system_setting_load_system_setting(notification_system_setting_h *system_setting);
35
36 #ifdef __cplusplus
37 }
38 #endif
39 #endif /* __NOTIFICATION_SETTING_SERVICE_H__ */
40