3 * Copyright (c) 2012 Samsung Electronics Co., Ltd.
5 * Licensed under the Apache License, Version 2.0 (the License);
6 * you may not use this file except in compliance with the License.
7 * You may obtain a copy of the License at
9 * http://www.apache.org/licenses/LICENSE-2.0
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
21 * @brief This file is the header file of defined common define and common enum type for using oma-dm-serice
24 #ifndef OMA_DM_COMMON_DEF_H_
25 #define OMA_DM_COMMON_DEF_H_
27 /*#define _OMA_DM_V11_*/
30 #define _OMA_DM_DEBUG_
32 #define _OMA_DM_TEST_DEBUG
39 #define LOG_TAG "OMA_DM"
43 //#define _DM_SCORE_TEST
45 #define _DM_BUNDANG_TEST
48 #define _SLP_SAMSUNG_DM_MO
51 * ==============================================
53 * ==============================================
56 /*#define OMA_DM_FUMO_APPID "3b74c3e0075a630e"*/
60 #define OMA_DM_FUMO_APPID "xxxxxxxxxx"
61 #define OMA_DM_FUMO_APPSECRETID "xxxxxxxxxxxxxxxxxxxxxxxxxxxx"
63 #define OMA_DM_LAWMO_APPID "xxxxxxxxxxxxxxxx"
64 #define OMA_DM_LAWMO_APPSECRETID "xxxxxxxxxxxxxxxxxxxxxxxxxxxx"
68 * ==============================================
70 * ==============================================
72 #define OMA_DM_AGENT_PKG "oma-dm-agent"
73 #define OMA_DM_FUMO_UI_PKG "com.samsung.oma-dm"
74 #define OMA_DM_FUMO_NOTI_UI_PKG "com.samsung.oma-dm-noti"
75 #define OMA_DM_ADMIN_UI_PKG "com.samsung.oma-dm-admin"
76 #define OMA_DM_ALERT_UI_PKG "com.samsung.oma-dm-alert"
77 #define OMA_DM_CP_UI_PKG "com.samsung.oma-dm-cp"
80 * ==============================================
82 * ==============================================
85 #define OMA_DM_MSG_PATH "/tmp/dm.txt"
88 * ==============================================
90 * ==============================================
93 #define OMADM_FUMO_UI_TYPE "omadm_fota_ui"
94 #define OMADM_FUMO_NOTI_UI_TYPE "omadm_noti_ui"
95 #define OMADM_FUMO_BACKGROUND_UI_TYPE "omadm_background_ui"
96 #define OMADM_ADMIN_UI_TYPE "omadm_admin_ui"
97 #define OMADM_ALERT_UI_TYPE "omadm_alert_ui"
98 #define OMADM_CP_UI_TYPE "omadm_cp_ui"
100 #define FUMO_ACCOUNT_FLAG "fumo_account_flag"
101 #define FUMO_ACCOUNT_ALARM "fumo_account_alarm"
102 #define FUMO_ENGINE "fumo_engine"
103 #define FUMO_INTERVAL "fumo_interval"
104 #define FUMO_WIFI_ONLY_CONFIG "fumo_wifi_only_config"
106 #define LAWMO_ENGINE "lawmo_engine"
107 #define LAWMO_ACCOUNT_FLAG "lawmo_account_flag"
108 #define LAWMO_ACCOUNT_ALARM "lawmo_account_alarm"
110 #define FOTA_POLLING_ALARM "fumo_polling_alarm"
111 #define LAWMO_TRACKING_START_ALARM "lawmo_tracking_start_alarm"
113 #define IPC_DS "/tmp/agent_fw_event_omads"
114 #define FOTA_DELTA_INTERNAL_STORAGE "/opt/usr/data/fota"
115 #define FOTA_DELTA_SD_INTERNAL_STORAGE "/opt/media"
116 #define FOTA_DELTA_SD_EXTERNAL_STORAGE "/opt/storage/sdcard"
119 #define VCONF_FOTA_DOWNLOADCONTYPE "db/SyncML/oma-dm-service/DownloadConType"
120 #define VCONF_FOTA_POLLING_TRIGER_TEST "db/SyncML/oma-dm-service/polling-triger"
125 INTERVAL_30MINUTES = 0,
129 INTERVAL_12HOURS = 4,
131 //INTERVAL_7DAYS = 5,
137 FUMO_INTERVAL_TYPE = 0, //alarm
138 FUMO_WIFI_ONLY_TYPE = 1,
139 FUMO_ACCOUNT_FLAG_TYPE = 2,
140 FUMO_ACCOUNT_ALARM_TYPE = 3, //alarm
141 LAWMO_ACCOUNT_FLAG_TYPE = 4,
142 LAWMO_ACCOUNT_ALARM_TYPE = 5, //alarm
143 FOTA_POLLING_ALARM_TYPE = 6,
144 LAWMO_TRACKING_START_ALARM_TYPE = 7
148 * ==============================================
149 * OMA DM ENGINE STATUS
150 * ==============================================
155 DM_BEFORE_BOOTSTRAP = 1,
156 DM_COMMON_PROCESSING = 2,
157 DM_GENERIC_ALERT = 3,
158 DM_SERVICE_ENGINE_PROCESSING = 4,
161 /*DM_FUMO_ENGINE_PROCESSING = 4,
162 DM_LAWMO_ENGINE_PROCESSING = 5,
163 DM_COMPLETE_FIRMWARE_UPDATE_WITH_GENERICALERT, */
175 * ==============================================
176 * SERVICE ENGINE STATUS
177 * ==============================================
181 DM_SERVICE_UNKNOWN = 0,
183 DM_GENERICALERT_ING = 2
184 /* DM_SERVICE_ALARM = 3,
185 DM_SERVICE_OTHER = 4*/
186 } SERVICE_ENGINE_STATUS;
189 * ==============================================
191 * ==============================================
199 //SERVICE_ENGINE = 4,
201 //sync_agent_dm_mo_type_e MAPPING
202 FUMO_SERVICE_ENGINE = 4,
203 LAWMO_SERVICE_ENGINE = 8,
204 //SCOMO_SERVICE_ENGINE = 16,
205 NO_SERVICE_ENGINE = 32
209 * ==============================================
211 * ==============================================
215 SAMSUNG_FUMO_TYPE = 4,
216 SAMSUNG_FMM_TYPE = 8,
219 } SERVICE_SERVER_TYPE;
222 * ==============================================
224 * ==============================================
229 OPER_SERVER_INITIATION_FROM_WAP,
230 OPER_SERVER_INITIATION_FROM_IP,
231 OPER_USER_INITIATION,
236 * ==============================================
238 * ==============================================
246 * ==============================================
247 * USER INTERACTION OPTION
248 * ==============================================
251 #define UI_OP_MINDT "MINDT="
252 #define UI_OP_MAXDT "MAXDT="
253 #define UI_OP_DR "DR="
254 #define UI_OP_MAXLEN "MAXLEN="
255 #define UI_OP_IT "IT="
256 #define UI_OP_ET "ET="
257 #define UI_OP_SEPARATOR "&"
258 #define UI_OP_EQUAL "="
261 * ==============================================
262 * RESUME STATES DOWNLOAD, INSTALL, LATER
263 * ==============================================
267 RESUME_STATUS_DONWLOAD_BEFORE = 0,
268 RESUME_STATUS_DOWNLOAD,
269 RESUME_STATUS_DOWNLOAD_LATER,
270 RESUME_STATUS_DOWNLOAD_IDLE,
271 RESUME_STATUS_INSTALL_BEFORE,
272 RESUME_STATUS_INSTALL,
273 RESUME_STATUS_INSTALL_LATER,
274 RESUME_STATUS_INSTALL_IDLE
277 #endif /* OMA_DM_COMMON_DEF_H_ */