Tizen 2.1 base
[platform/core/system/sync-agent.git] / include / device-manager / mdm_control_code.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 MDM_CONTROL_CODE_H_
19 #define MDM_CONTROL_CODE_H_
20
21 #ifdef __cplusplus
22 extern "C" {
23 #endif                          /* __cplusplus */
24
25 /**
26  * @file mdm_control_code.h
27  * @brief       Provides definition of mdm setting items enum and mdm policy event enum
28  */
29
30 /** @addtogroup device_manager
31  *      @{
32  */
33
34 /**
35  * Enumerations for the mdm setting items
36  */
37         typedef enum {
38                 SYNC_AGENT_DM_MDM_ALLOW_WIFI = 1,
39                                           /**< setting for the wifi permission on the device */
40                 SYNC_AGENT_DM_MDM_ALLOW_BT,
41                                     /**< setting for the bluetooth permission on the device */
42                 SYNC_AGENT_DM_MDM_ALLOW_CAMERA,
43                                         /**< setting for the camera permission on the device */
44                 SYNC_AGENT_DM_MDM_ALLOW_INTERNET_SHARING,
45                                                   /**< setting for the internet sharing permission on the device */
46                 SYNC_AGENT_DM_MDM_ALLOW_DESKTOP_SYNC,
47                                               /**< setting for the desktop sync permission on the device */
48                 SYNC_AGENT_DM_MDM_ALLOW_STORAGE_CARD,
49                                               /**< setting for the storage card permission on the device */
50                 SYNC_AGENT_DM_MDM_ALLOW_TEXT_MESSAGING,
51                                                 /**< setting for the text messaging permission on the device */
52                 SYNC_AGENT_DM_MDM_ALLOW_POP_IMAP,
53                                           /**< setting for the POP or IMAP permission on the device */
54                 SYNC_AGENT_DM_MDM_ALLOW_BROWSER,
55                                          /**< setting for the browser permission on the device */
56                 SYNC_AGENT_DM_MDM_ALLOW_IRDA,
57                                       /**< setting for the IRDA permission on the device */
58                 SYNC_AGENT_DM_MDM_ALLOW_DEVICE_ENCRYPTION,
59                                                    /**< setting for the device encryption permission on the device */
60                 SYNC_AGENT_DM_MDM_ALLOW_STORAGE_CARD_ENCRYPTION,
61                                                          /**< setting for the storage card encryption permission on the device */
62                 SYNC_AGENT_DM_MDM_PWD_QUALITY,
63                                        /**< setting for the quality of password on the device */
64                 SYNC_AGENT_DM_MDM_PWD_MIN_LENGTH,
65                                           /**< setting for the minimum length of password on the device */
66                 SYNC_AGENT_DM_MDM_PWD_MAX_FAILED_ATTEMPTS,
67                                                    /**< setting for the maximum number of failed password attempts on the device */
68                 SYNC_AGENT_DM_MDM_PWD_EXPIRARION,
69                                           /**< setting for the expiration of password on the device */
70                 SYNC_AGENT_DM_MDM_PWD_HISTORY,
71                                        /**< setting for the history of password on the device */
72                 SYNC_AGENT_DM_MDM_PWD_NUM_OF_COMPLEX_CHAR,
73                                                    /**< setting for number of complex character of the password on the device */
74                 SYNC_AGENT_DM_MDM_PWD_RECOVERY,
75                                         /**< setting for the recovery of password on the device */
76                 SYNC_AGENT_DM_MDM_MAX_INACTIVITY_TIME,
77                                                /**< setting for the maximum inactive time on the device */
78
79                 SYNC_AGENT_DM_MDM_PWD_POLICY,
80                                       /**< setting for the policy of password on the device */
81
82                 SYNC_AGENT_DM_MDM_EXE_ENFORCE_PWD_CHANGE = 100,
83                                                         /**< password change execution on the device */
84                 SYNC_AGENT_DM_MDM_EXE_SYSTEM_POPUP
85                                            /**< system popup execution on the device */
86         } sync_agent_dm_mdm_ctrl_e;
87
88 /**
89  * Enumerations for the mdm policy event
90  */
91         typedef enum {
92                 SYNC_AGENT_DM_MDM_EVENT_POLICY_ON_PASSWORD,
93                                                     /**< Password status changed */
94                 SYNC_AGENT_DM_MDM_EVENT_POLICY_ON_WIFI,
95                                                 /**< wifi not allowed */
96                 SYNC_AGENT_DM_MDM_EVENT_POLICY_ON_BT,
97                                               /**< bluetooth not allowed */
98                 SYNC_AGENT_DM_MDM_EVENT_POLICY_ON_CAMERA,
99                                                   /**< camera not allowed */
100                 SYNC_AGENT_DM_MDM_EVENT_POLICY_ON_ROAMING_SYNC,
101                                                         /**< roaming sync not allowed */
102                 SYNC_AGENT_DM_MDM_EVENT_POLICY_ON_LOCATION,
103                                                     /**< location service not allowed */
104                 SYNC_AGENT_DM_MDM_EVENT_POLICY_ON_MIC,
105                                                /**< microphone not allowed */
106                 SYNC_AGENT_DM_MDM_EVENT_POLICY_ON_MOBILE_AP,
107                                                      /**< mobile ap not allowed */
108                 SYNC_AGENT_DM_MDM_EVENT_POLICY_ON_KIES,
109                                                 /**< kies not allowed */
110                 SYNC_AGENT_DM_MDM_EVENT_POLICY_ON_MESSAGE,
111                                                    /**< message service not allowed */
112                 SYNC_AGENT_DM_MDM_EVENT_POLICY_ON_EMAIL,
113                                                  /**< email service not allowed */
114                 SYNC_AGENT_DM_MDM_EVENT_POLICY_ON_BROWSER,
115                                                    /**< browser not allowed */
116                 SYNC_AGENT_DM_MDM_EVENT_POLICY_NOTI_MAX
117         } sync_agent_dm_mdm_event_e;
118
119 /**
120  *      @}
121  */
122
123 #ifdef __cplusplus
124 }
125 #endif                          /* __cplusplus */
126 #endif                          /* MDM_CONTROL_CODE_H_ */