/vconf/include/vconf-keys.h

https://review.tizen.org/git/ · C Header · 276 lines · 60 code · 30 blank · 186 comment · 0 complexity · 1ac7e41bafad48aabc51d0572cb58f19 MD5 · raw file

  1. /*
  2. * libslp-setting
  3. *
  4. * Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.
  5. *
  6. * Contact: Hakjoo Ko <hakjoo.ko@samsung.com>
  7. *
  8. * Licensed under the Apache License, Version 2.0 (the "License");
  9. * you may not use this file except in compliance with the License.
  10. * You may obtain a copy of the License at
  11. *
  12. * http://www.apache.org/licenses/LICENSE-2.0
  13. *
  14. * Unless required by applicable law or agreed to in writing, software
  15. * distributed under the License is distributed on an "AS IS" BASIS,
  16. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  17. * See the License for the specific language governing permissions and
  18. * limitations under the License.
  19. *
  20. */
  21. #ifndef __VCONF_KEYS_H__
  22. #define __VCONF_KEYS_H__
  23. #include "vconf-internal-keys.h"
  24. /**
  25. * This file defines keys and values.
  26. *
  27. * @file vconf-keys.h
  28. * @defgroup vconf_key Definitions of shared Keys
  29. * @ingroup VCONF
  30. * @author Hyungdeuk Kim (hd3.kim@samsung.com)
  31. * @version 0.3
  32. * @brief This file has the definitions of shared keys.
  33. *
  34. * add keys(key name) and values(enum) here for shared keys....
  35. *
  36. */
  37. /* ========================== System Manager Notification ============================= */
  38. /**
  39. * @defgroup vconf_key_SystemManager System Manager Keys
  40. * @ingroup vconf_key
  41. * @addtogroup vconf_key_SystemManager
  42. * @{
  43. * @brief Maintainer : jinkun.jang@samsung.com
  44. */
  45. /**
  46. * @brief usbhost status
  47. *
  48. * 0 : Remove \n
  49. * 1 : Add \n
  50. * 3 : Over current \n
  51. */
  52. #define VCONFKEY_SYSMAN_USB_HOST_STATUS "memory/sysman/usbhost_status"
  53. enum {
  54. VCONFKEY_SYSMEN_USB_HOST_DISCONNECTED = 0,
  55. VCONFKEY_SYSMEN_USB_HOST_CONNECTED,
  56. VCONFKEY_SYSMEN_USB_HOST_CHANGED
  57. };
  58. /**
  59. * @brief mmc status
  60. *
  61. * 0 : Remove \n
  62. * 1 : mount \n
  63. * 2 : insert(not mount) \n
  64. */
  65. #define VCONFKEY_SYSMAN_MMC_STATUS "memory/sysman/mmc"
  66. enum {
  67. VCONFKEY_SYSMAN_MMC_REMOVED = 0,
  68. VCONFKEY_SYSMAN_MMC_MOUNTED,
  69. VCONFKEY_SYSMAN_MMC_INSERTED_NOT_MOUNTED
  70. };
  71. /**
  72. * @brief earkey status
  73. *
  74. * 0 : not press \n
  75. * 1 : press \n
  76. */
  77. #define VCONFKEY_SYSMAN_EARJACKKEY "memory/sysman/earjack_key"
  78. /**
  79. * @brief cradle status
  80. *
  81. * 0 : Remove \n
  82. * 1 : Add \n
  83. */
  84. #define VCONFKEY_SYSMAN_CRADLE_STATUS "memory/sysman/cradle_status"
  85. /**
  86. * @}
  87. */
  88. /* =============================== Wifi ====================================== */
  89. /**
  90. * @defgroup vconf_key_Wifi Wifi Keys
  91. * @ingroup vconf_key
  92. * @addtogroup vconf_key_Wifi
  93. * @{
  94. * @brief Maintainer : dwmax.lee@samsung.com
  95. */
  96. /**
  97. * @Wi-Fi Direct state
  98. *
  99. * 0: Power off \n
  100. * 1: Power on \n
  101. * 2: Discoverable mode \n
  102. * 3: Connected with peer as GC \n
  103. * 4: Connected with peer as GO
  104. */
  105. #define VCONFKEY_WIFI_DIRECT_STATE "memory/wifi_direct/state"
  106. enum {
  107. /** Power off */
  108. VCONFKEY_WIFI_DIRECT_DEACTIVATED = 0,
  109. /** Power on */
  110. VCONFKEY_WIFI_DIRECT_ACTIVATED,
  111. /** Discoverable mode */
  112. VCONFKEY_WIFI_DIRECT_DISCOVERING,
  113. /** Connected with peer as GC */
  114. VCONFKEY_WIFI_DIRECT_CONNECTED,
  115. /** Connected with peer as GO */
  116. VCONFKEY_WIFI_DIRECT_GROUP_OWNER
  117. };
  118. /**
  119. * @}
  120. */
  121. /* ================================= BT =====================================*/
  122. /**
  123. * @defgroup vconf_key_BT BT Keys
  124. * @ingroup vconf_key
  125. * @addtogroup vconf_key_BT
  126. * @{
  127. * @brief Maintainer : chanyeol.park@samsung.com
  128. */
  129. /** \
  130. * @brief Bluetooth status
  131. *
  132. * 0x0000 : Bluetooth OFF \n
  133. * 0x0001 : Bluetooth ON \n
  134. * 0x0002 : Discoverable mode \n
  135. * 0x0004 : In transfering \n
  136. */
  137. #define VCONFKEY_BT_STATUS "db/bluetooth/status"
  138. enum {
  139. /** Bluetooth OFF */
  140. VCONFKEY_BT_STATUS_OFF = 0x0000,
  141. /** Bluetooth ON */
  142. VCONFKEY_BT_STATUS_ON = 0x0001,
  143. /** Discoverable mode */
  144. VCONFKEY_BT_STATUS_BT_VISIBLE = 0x0002,
  145. /** In transfering */
  146. VCONFKEY_BT_STATUS_TRANSFER = 0x0004
  147. };
  148. /**
  149. * @brief Bluetooth Connected status
  150. *
  151. * 0x0000 : Not connected \n
  152. * 0x0004 : Headset connected \n
  153. * 0x0010 : A2DP headset connected \n
  154. * 0x0020 : SAP connected \n
  155. * 0x0040 : PBAP connected \n
  156. */
  157. #define VCONFKEY_BT_DEVICE "memory/bluetooth/device"
  158. enum {
  159. /** Not connected */
  160. VCONFKEY_BT_DEVICE_NONE = 0x0000,
  161. /** Headset connected */
  162. VCONFKEY_BT_DEVICE_HEADSET_CONNECTED = 0x0004,
  163. /** A2DP headset connected */
  164. VCONFKEY_BT_DEVICE_A2DP_HEADSET_CONNECTED = 0x0010,
  165. /** SAP connected */
  166. VCONFKEY_BT_DEVICE_SAP_CONNECTED = 0x0020,
  167. /** PBAP connected */
  168. VCONFKEY_BT_DEVICE_PBAP_CONNECTED = 0x0040
  169. };
  170. /* Media sound path for BT */
  171. enum {
  172. /** Media Player Select Speaker */
  173. VCONFKEY_BT_PLAYER_SELECT_SPEAKER = 0x00,
  174. /** Media Player Select Bluetooth */
  175. VCONFKEY_BT_PLAYER_SELECT_BLUETOOTH = 0x01,
  176. /** BT application Select Speaker */
  177. VCONFKEY_BT_APP_SELECT_SPEAKER = 0x02,
  178. /** BT application Select Bluetooth */
  179. VCONFKEY_BT_APP_SELECT_BLUETOOTH = 0x04
  180. };
  181. /**
  182. * @}
  183. */
  184. /* =========================== IDLE lock =======================================*/
  185. /**
  186. * @defgroup vconf_key_idleLock idleLock Keys
  187. * @ingroup vconf_key
  188. * @addtogroup vconf_key_idleLock
  189. * @{
  190. * @brief Maintainer : seungtaek.chung@samsung.com, wonil22.choi@samsung.com hyoyoung.chang@samsung.com angelkim@samsung.com
  191. */
  192. /**
  193. * @brief lock screen status
  194. *
  195. * VCONFKEY_IDLE_UNLOCK : unlocked state \n
  196. * VCONFKEY_IDLE_LOCK : locked state \n
  197. */
  198. #define VCONFKEY_IDLE_LOCK_STATE "memory/idle_lock/state"
  199. enum {
  200. /** unlocked state */
  201. VCONFKEY_IDLE_UNLOCK = 0x00,
  202. /** locked state */
  203. VCONFKEY_IDLE_LOCK
  204. };
  205. /**
  206. * @brief wallpaper of lock screen
  207. *
  208. * Value : Wallpaper file path in the lock screen \n
  209. */
  210. #define VCONFKEY_IDLE_LOCK_BGSET "db/idle_lock/bgset"
  211. /**
  212. * @}
  213. */
  214. /* =========================== pwlock =======================================*/
  215. /**
  216. * @defgroup vconf_key_pwlock Lock application for password verification: phone, pin, sum, network, etc.
  217. * @ingroup vconf_key
  218. * @addtogroup vconf_key_pwlock
  219. * @{
  220. * @brief Maintainer : seungtaek.chung@samsung.com miju52.lee@samsung.com
  221. * Used module : pwlock
  222. *
  223. */
  224. /**
  225. * @brief mobex engine status
  226. *
  227. * VCONFKEY_PWLOCK_BOOTING_UNLOCK : unlocked state in boointg time \n
  228. * VCONFKEY_PWLOCK_BOOTING_LOCK : locked state in boointg time \n
  229. * VCONFKEY_PWLOCK_RUNNING_UNLOCK : unlocked state in running time \n
  230. * VCONFKEY_PWLOCK_RUNNING_LOCK : locked state in running time \n
  231. */
  232. #define VCONFKEY_PWLOCK_STATE "memory/pwlock/state"
  233. enum {
  234. /** unlocked state in boointg time */
  235. VCONFKEY_PWLOCK_BOOTING_UNLOCK = 0x00,
  236. /** locked state in boointg time */
  237. VCONFKEY_PWLOCK_BOOTING_LOCK,
  238. /** unlocked state in running time */
  239. VCONFKEY_PWLOCK_RUNNING_UNLOCK,
  240. /** locked state in running time */
  241. VCONFKEY_PWLOCK_RUNNING_LOCK
  242. };
  243. /**
  244. * @}
  245. */
  246. #endif /* __VCONF_KEYS_H__ */