2 * Copyright (c) 2009-2015 Samsung Electronics Co., Ltd All Rights Reserved
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
8 * http://www.apache.org/licenses/LICENSE-2.0
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.
19 #ifndef __QP_PREFERENCE_H_
20 #define __QP_PREFERENCE_H_
22 #define PREF_LEN_VALUE_MAX 256
24 #define PREF_SECTION "quickpanel"
25 #define PREF_BRIGHTNESS_KEY "brightness"
26 #define PREF_QUICKSETTING_ORDER_KEY "quicksetting_order"
27 #define PREF_QUICKSETTING_FEATURED_NUM_KEY "quicksetting_featured_num"
28 #define PREF_SHORTCUT_ENABLE_KEY "shortcut_enable"
29 #define PREF_SHORTCUT_EARPHONE_ORDER_KEY "shortcut_earphone"
31 #define PREF_BRIGHTNESS PREF_SECTION":"PREF_BRIGHTNESS_KEY
32 #define PREF_QUICKSETTING_ORDER PREF_SECTION":"PREF_QUICKSETTING_ORDER_KEY
33 #define PREF_QUICKSETTING_FEATURED_NUM PREF_SECTION":"PREF_QUICKSETTING_FEATURED_NUM_KEY
34 #define PREF_SHORTCUT_ENABLE PREF_SECTION":"PREF_SHORTCUT_ENABLE_KEY
35 #define PREF_SHORTCUT_EARPHONE_ORDER PREF_SECTION":"PREF_SHORTCUT_EARPHONE_ORDER_KEY
37 extern int quickpanel_preference_get(const char *key, char *value);
38 extern const char *quickpanel_preference_default_get(const char *key);
39 extern int quickpanel_preference_set(const char *key, char *value);