Initialize Tizen 2.3
[framework/telephony/libslp-tapi.git] / wearable / include / TelGps.h
1 /*
2  * libslp-tapi
3  *
4  * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
5  *
6  * Contact: Ja-young Gu <jygu@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 /**
22 * @open
23 * @ingroup      TelephonyAPI
24 * @addtogroup   GPS_TAPI        GPS
25 * @{
26 *
27 * @file TelNetwork.h
28
29      @brief This file serves as a "C" header file and defines structures for Tapi Network Services\n
30       It contains a sample set of constants, enums, structs that would be required by applications.
31  */
32
33 #ifndef _TEL_GPS_H_
34 #define _TEL_GPS_H_
35
36 #ifdef __cplusplus
37 extern "C"
38 {
39 #endif
40
41 #define TAPI_SMART_ASSISTANT_AREA_LIST_MAX      10              /**< Maximum smart assistant area list */
42
43 /**
44  * @enum TelSmartAssistantMode_t
45  *  This enumeration defines the smart assistant mode state.
46  */
47 typedef enum {
48         TAPI_SMART_ASSISTANT_SYNC = 1,
49         TAPI_SMART_ASSISTANT_DELETE = 2,
50         TAPI_SMART_ASSISTANT_ADD = 1,
51         TAPI_SMART_ASSISTANT_MODIFY = 2
52 } TelSmartAssistantOperationType_t;
53
54 /**
55  * @enum TelSmartAssistantMode_t
56  *  This enumeration defines the smart assistant mode state.
57  */
58 typedef enum {
59         TAPI_SMART_ASSISTANT_MODE_STATE_START = 1,
60         TAPI_SMART_ASSISTANT_MODE_STATE_STOP
61 } TelSmartAssistantModeState_t;
62
63 /**
64  *
65  * This structure defines the smart assistant area.
66  */
67 typedef struct {
68         unsigned int index; /**< Smart Assistant area ID */
69         TelSmartAssistantModeState_t mode_state; /**< Smart Assistant mode state */
70 } TelSmartAssistantArea_t;
71
72 /**
73  *
74  * This structure defines the smart assistant area list.
75  */
76 typedef struct {
77         unsigned int count; /**< Smart Assistant area count  */
78         TelSmartAssistantArea_t area[TAPI_SMART_ASSISTANT_AREA_LIST_MAX];
79 } TelSmartAssistantAreaList_t;
80
81
82 /**
83  * @enum TelSmartAssistantLppState_t
84  *  This enumeration defines the smart assistant mode state.
85  */
86 typedef enum {
87         TAPI_SMART_ASSISTANT_LPP_STATE_START = 1,
88         TAPI_SMART_ASSISTANT_LPP_STATE_STOP
89 } TelSmartAssistantLppState_t;
90
91 /**
92  *
93  * This structure defines the smart assistant info.
94  * AP(Application processor) let the CP(Modem) know the lpp state of Smart Assistant
95  */
96 typedef struct {
97         unsigned int index; /**< Smart Assistant area ID */
98         TelSmartAssistantLppState_t lpp_state; /**< Smart Assistant lpp state */
99 } TelSmartAssistantInfo_t;
100
101
102 /**
103  * @enum TelSmartAssistantInitStatus_t
104  *  This enumeration defines the smart assistant init status.
105  */
106 typedef enum {
107         TAPI_SMART_ASSISTANT_INIT_SUCCESS = 1,
108         TAPI_SMART_ASSISTANT_INIT_FAIL
109 } TelSmartAssistantInitStatus_t;
110
111 /**
112  * @enum TelSmartAssistantAreaStatus_t
113  *  This enumeration defines the smart assistant area status.
114  */
115 typedef enum {
116         TAPI_SMART_ASSISTANT_AREA_STATUS_IN = 1,
117         TAPI_SMART_ASSISTANT_AREA_STATUS_OUT
118 } TelSmartAssistantAreaStatus_t;
119
120
121 struct tel_noti_smart_assistant_area_status {
122         TelSmartAssistantAreaStatus_t area_status;
123         unsigned int index; /**< Smart Assistant area ID */
124 };
125
126 struct tel_noti_smart_assistant_sync_status {
127         TelSmartAssistantInitStatus_t init_status;
128         int init_fail_cause;
129 };
130
131
132 #ifdef __cplusplus
133 }
134 #endif
135
136 #endif // _TEL_GPS_H_
137
138 /**
139 * @}
140 */