[Internal: merge oma-dm-agent]
[framework/system/oma-dm-agent.git] / include / framework / ui-event-handler / ipc_common.h
1 /*
2  * oma-dm-agent
3  * Copyright (c) 2012 Samsung Electronics Co., Ltd.
4  *
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
8  *
9  *     http://www.apache.org/licenses/LICENSE-2.0
10  *
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.
16  */
17
18 #ifndef IPC_COMMON_H_
19 #define IPC_COMMON_H_
20
21 typedef enum {
22         EVENT_UNKNOWN = 0,
23         /* Fumo, Noti UI Event */
24         EVENT_SOFTWARE_UPDATE = 1,      // Type 1, sync
25         EVENT_CANCEL,           // Type 1, sync
26         EVENT_DOWNLOAD,         // Type 1, sync
27         EVENT_INSTALL,          // Type 1, sync
28         EVENT_SET_INTERVAL,     // Type 1, sync
29         EVENT_ACCOUNT_REGISTRATION,     // Type 1, sync
30
31         EVENT_GET_FUMO_CONFIG = 7,      // Type 1, sync
32         EVENT_SET_FUMO_CONFIG,  // Type 1, sync
33
34         /* Admin UI Event */
35         EVENT_GET_PROFILE = 9,  // Type 1, sync
36         EVENT_SET_PROFILE,      // Type 1, sync
37         EVENT_SET_RESET_PROFILE,        // Type 1, sync
38
39         /*ALERT UI */
40         EVENT_UIC_ALERT = 12,   // Type 3, response of noti
41
42         /* CP UI Event */
43         EVENT_CHECK_PIN_CODE,   // Type 1
44
45         EVENT_ADD_DMACC,
46         EVENT_REMOVE_DMACC,
47
48         EVENT_NUM
49 } EVENT_ID;
50
51 typedef enum {
52         NOTI_UNKNOWN = 0,
53         NOTI_DOWNLOAD = 1,                              // Type 0
54         NOTI_INSTALL,                      // Type 0
55         NOTI_DOWNLOAD_INFO,                // Type 0
56
57         NOTI_ENGINE_START = 4,                          // Type 0
58         NOTI_ENGINE_FAIL,                                               // Type 0
59         NOTI_WIFI_ONLY_DOWNLOAD_FAIL,           // Type 0
60         NOTI_MEMORY_FULL,                                               // Type 0
61         NOTI_OVER_BIG_SIZE,                                     // Type 0
62         NOTI_LOW_BATTERY,                                               // Type 0
63
64         NOTI_ALERT_DISPLAY = 10,                                // Type 0, response event
65         NOTI_ALERT_CONFIRMATION,                                // Type 0, response event
66         NOTI_ALERT_INPUTTEXT,                           // Type 0, response event
67         NOTI_ALERT_SINGLE_CHOICE,                       // Type 0, response event
68         NOTI_ALERT_MULTIPLE_CHOICE,                     // Type 0, response event
69
70         NOTI_POLL_INTERACTION = 15,
71         NOTI_UPDATE_RESULT,                                     // Type 0
72         NOTI_NUM
73 } NOTI_ID;
74
75 typedef enum {
76         PUSH_TYPE_NONE = -1,
77         PUSH_NOT_SPECIFIED = 0,
78         PUSH_BACKGROUND,
79         PUSH_INFORMATIVE,
80         PUSH_INTERACTION,
81         POLL_INTERACTION
82 } PUSH_TYPE;
83
84 typedef enum {
85         IPC_EVENT_TYPE_0 = 0,
86         IPC_EVENT_TYPE_1,
87         IPC_EVENT_TYPE_2,
88         IPC_EVENT_TYPE_3,
89
90 } IPC_EVENT_TYPE;
91
92 typedef enum {
93         IPC_NOTI_TYPE_0 = 0,
94         IPC_NOTI_TYPE_1,
95         IPC_NOTI_TYPE_2,
96
97 } IPC_NOTI_TYPE;
98
99 typedef enum {
100         PARAM_TYPE_NULL,
101         PARAM_TYPE_INT,
102         PARAM_TYPE_STR,
103 } PARAM_TYPE;
104
105 typedef enum {
106         CONNECTION_STATUS_FAILURE,
107         CONNECTION_STATUS_SUCCESS,
108         CONNECTION_STATUS_UPTODATA,
109         CONNECTION_STATUS_FAILURE_AUTHENTICATION
110 } CONNECTION_STATUS;
111
112 typedef enum {
113         RESPONSE_TYPE_NONE = 0,
114         RESPONSE_TYPE_OK,
115         RESPONSE_TYPE_CANCEL,
116         RESPONSE_TYPE_TIMEOVER,
117         //Todo: add the response type if U need
118
119         //RESPONSE_TYPE_REMINDER_INTERVAL_NONE,
120         RESPONSE_TYPE_REMINDER_INTERVAL_1_HOUR,
121         RESPONSE_TYPE_REMINDER_INTERVAL_3_HOURS,
122         RESPONSE_TYPE_REMINDER_INTERVAL_6_HOURS,
123         RESPONSE_TYPE_REMINDER_INTERVAL_12_HOURS,
124         RESPONSE_TYPE_REMINDER_INTERVAL_1_DAY,
125         //RESPONSE_TYPE_REMINDER_INTERVAL_7_DAYS,
126
127         RESPONSE_TYPE_NUM
128 } RESPONSE_TYPE;
129
130 typedef enum {
131
132         /*for EVENT_CONNECT_TO_SERVER */
133
134         NO_REPLY_SUCCESS = 0,   // success in the case of no reply
135         NO_REPLY_FAILURE,       // failusre in the case of no reply
136
137         REPLY_FAIL_TO_CONNECT,  // failure to connect
138
139         REPLY_SUCCESS_TO_CONNECT,       // success to connect
140
141         REPLY_NEW_UPDATE_EXISTS,        // success to connect
142         REPLY_NO_UPDATE_EXISTS, // success to connect
143
144         REPLY_POSTPONE_STATUS,  // success to connect
145         REPLY_NO_POSTPONE_STATUS,       // success to connect
146
147         REPLY_ALL_MEMORYCARD_FULL,      // success to connect
148         REPLY_NOT_ALL_MEMORYCARD_FULL,  // success to connect
149
150         //Todo Other replies...
151
152 } REPLY_TYPE;
153
154 typedef enum {
155         FOTA_COMMON_UI,
156         FOTA_NOTI_UI,
157         FOTA_BACKGROUND_UI,
158         ADMIN_UI,
159         ALERT_UI,
160         CP_UI
161 } UI_TYPE;
162
163 //2012.11.20
164 typedef enum {
165         EVENT_RESPONSE_FAIL = 0,
166         EVENT_RESPONSE_OK = 1
167 } EVENT_RESPONSE;
168
169 //2012.11.29
170 typedef enum _uic_type {
171         UIC_NONE_TYPE,
172         UIC_DISPLAY_TYPE,
173         UIC_CONFIRMATION_TYPE,
174         UIC_INPUT_TEXT_TYPE,
175         UIC_SINGLE_CHOICE_TYPE,
176         UIC_MULTIPLE_CHOICE_TYPE
177 } uic_type;
178
179 #endif                          /* IPC_COMMON_H_ */