Tizen 2.0 Release
[framework/system/sync-agent.git] / include / event / oma_dm_api_common.h
1 /*
2  * sync-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 OMA_DM_API_COMMON_H_
19 #define OMA_DM_API_COMMON_H_
20
21 #ifdef __cplusplus
22 extern "C" {
23 #endif                          /* __cplusplus */
24
25 #define SYNC_AGENT_DM_API_RESULT_FAILURE        0
26 #define SYNC_AGENT_DM_API_RESULT_SUCCESS        1
27
28 /**
29  * @file        oma_dm_api_common.h
30  * @brief       Support to use framework event module for agent
31  */
32
33 /** @addtogroup event
34  *      @{
35  */
36
37 /* common */
38         typedef enum {
39                 UI_SYNC_AGENT_DM_FAIL = -1,     /**< response fail to app*/
40                 UI_SYNC_AGENT_DM_SUCCESS = 0
41                                         /**< response successful to app*/
42         } sync_agent_dm_error_e;
43
44         typedef enum {
45                 UI_SAMSUNG_FUMO_TYPE = 4,       /**< samsung fumo server type */
46                 UI_SAMSUNG_FMM_TYPE = 8,                /**< samsung fmm server type */
47                 UI_GCF_TYPE = 16,               /**< product server type */
48                 UI_NO_ENGINE_TYPE = 32          /**< none server type */
49         } sync_agent_dm_service_server_type_e;
50
51         typedef enum {
52                 UI_RESPONSE_TYPE_NONE = 0,      /**< none event value */
53                 UI_RESPONSE_TYPE_OK,                    /**< response event ok to dm agent */
54                 UI_RESPONSE_TYPE_CANCEL,                /**< response event cancel to dm agent */
55                 UI_RESPONSE_TYPE_TIMEOVER,      /**< response event timeout to dm agent */
56
57                 //Todo: add the response type if U need
58                 UI_RESPONSE_TYPE_REMINDER_INTERVAL_1_HOUR,
59                                                         /**< response event reminder interval 1 hour to dm agent */
60                 UI_RESPONSE_TYPE_REMINDER_INTERVAL_3_HOURS,
61                                                         /**< response event reminder interval 3 hours to dm agent */
62                 UI_RESPONSE_TYPE_REMINDER_INTERVAL_6_HOURS,
63                                                         /**< response event reminder interval 6 hours to dm agent */
64                 UI_RESPONSE_TYPE_REMINDER_INTERVAL_12_HOURS,
65                                                         /**< response event reminder interval 12 hours to dm agent */
66                 UI_RESPONSE_TYPE_REMINDER_INTERVAL_1_DAY,       /**< response event reminder interval 1 day to dm agent */
67
68                 UI_RESPONSE_TYPE_NUM                                                    /**< response event type num */
69         } sync_agent_dm_response_type_e;
70
71 /**
72  *      @}
73  */
74
75 #ifdef __cplusplus
76 }
77 #endif                          /* __cplusplus */
78 #endif                          /* OMA_DM_API_COMMON_H_ */