upload tizen1.0 source
[pkgs/o/oma-ds-service.git] / include / ServiceAdapter / ProtocolBinder / oma_ds_protocol_binder_definition.h
1 /*
2  * oma-ds-service
3  *
4  * Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.
5  *
6  * Contact: JuHak Park <juhaki.park@samsung.com>,
7  *          JuneHyuk Lee <junhyuk7.lee@samsung.com>,
8  *          SunBong Ha <sunbong.ha@samsung.com>
9  *
10  * Licensed under the Apache License, Version 2.0 (the "License");
11  * you may not use this file except in compliance with the License.
12  * You may obtain a copy of the License at
13  *
14  * http://www.apache.org/licenses/LICENSE-2.0
15  *
16  * Unless required by applicable law or agreed to in writing, software
17  * distributed under the License is distributed on an "AS IS" BASIS,
18  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19  * See the License for the specific language governing permissions and
20  * limitations under the License.
21  *
22  */
23
24
25
26
27
28 /*
29  * For any sort of issue you concern as to this software,
30  * you may use following point of contact.
31  * All resources contributed on this software
32  * are orinigally written by S-Core Inc., a member of Samsung Group.
33  *
34  * SeongWon Shim <seongwon.shim@samsung.com>
35  */
36
37 /**
38  *   @oma_ds_protocol_binder_definition.h
39  *   @version                                                                   0.1
40  *   @brief                                                                             This file is the header file for protocol binder definition
41  */
42
43 #ifndef OMA_DS_PROTOCOL_BINDER_DEFINITION_H_
44 #define OMA_DS_PROTOCOL_BINDER_DEFINITION_H_
45
46 #include "agent-framework/NetworkAssistant/protocol_binder/protocol_binder_definition.h"
47
48 #define INIT_ESTIMATE_DOC_SIZE  20
49
50 #define ELEMENT_SYNCHDR "SyncHdr"
51 #define ELEMENT_VERDTD "VerDTD"
52 #define ELEMENT_VERDRD_10 "1.0"
53 #define ELEMENT_VERDRD_11 "1.1"
54 #define ELEMENT_VERDRD_12 "1.2"
55 #define ELEMENT_VERPROTO "VerProto"
56 #define ELEMENT_VERPROTO_10 "SyncML/1.0"
57 #define ELEMENT_VERPROTO_11 "SyncML/1.1"
58 #define ELEMENT_VERPROTO_12 "SyncML/1.2"
59 #define ELEMENT_SESSIONID "SessionID"
60 #define ELEMENT_MSGID "MsgID"
61 #define ELEMENT_TARGET "Target"
62 #define ELEMENT_SOURCE "Source"
63 #define ELEMENT_LOCURI "LocURI"
64 #define ELEMENT_LOCNAME "LocName"
65 #define ELEMENT_RESPURI "RespURI"
66 #define ELEMENT_NORESP "NoResp"
67 #define ELEMENT_CRED "Cred"
68 #define ELEMENT_CHAL "Chal"
69 #define ELEMENT_META "Meta"
70 #define ELEMENT_FORMAT "Format"
71 #define ELEMENT_B64 "b64"
72 #define ELEMENT_NEXTNONCE "NextNonce"
73 #define ELEMENT_TYPE "Type"
74 #define ELEMENT_DATA "Data"
75 #define ELEMENT_MAXMSGSIZE "MaxMsgSize"
76 #define ELEMENT_MAXOBJSIZE "MaxObjSize"
77 #define ELEMENT_SYNCBODY "SyncBody"
78 #define ELEMENT_CMDID "CmdID"
79 #define ELEMENT_ITEM "Item"
80 #define ELEMENT_SIZE "Size"
81 #define ELEMENT_NUMBEROFCHANGES "NumberOfChanges"
82 #define ELEMENT_STATUS "Status"
83 #define ELEMENT_MSGREF "MsgRef"
84 #define ELEMENT_CMDREF "CmdRef"
85 #define ELEMENT_CMD "Cmd"
86 #define ELEMENT_ADD "Add"
87 #define ELEMENT_REPLACE "Replace"
88 #define ELEMENT_ALERT "Alert"
89 #define ELEMENT_SYNC "Sync"
90 #define ELEMENT_PUT "Put"
91 #define ELEMENT_SYNCML   "SyncML"
92 #define ELEMENT_SYNCHDR "SyncHdr"
93 #define ELEMENT_SYNCBODY "SyncBody"
94 #define ELEMENT_REPLACE "Replace"
95 #define ELEMENT_DELETE "Delete"
96 #define ELEMENT_MAP "Map"
97 #define ELEMENT_GET "Get"
98 #define ELEMENT_RESULTS "Results"
99 #define ELEMENT_TARGETREF "TargetRef"
100 #define ELEMENT_SOURCEREF "SourceRef"
101 #define ELEMENT_ANCHOR "Anchor"
102 #define ELEMENT_LAST "Last"
103 #define ELEMENT_NEXT "Next"
104 #define ELEMENT_MAPITEM "MapItem"
105 #define ELEMENT_MOREDATA "MoreData"
106 #define ELEMENT_DEVINF "DevInf"
107 #define ELEMENT_MAN "Man"
108 #define ELEMENT_MOD "Mod"
109 #define ELEMENT_OEM "OEM"
110 #define ELEMENT_FWV "FwV"
111 #define ELEMENT_SWV "SwV"
112 #define ELEMENT_HWV "HwV"
113 #define ELEMENT_DEVID "DevID"
114 #define ELEMENT_DEVTYP "DevTyp"
115 #define ELEMENT_PAGER "Pager"
116 #define ELEMENT_HANDHELD "handheld"
117 #define ELEMENT_PDA "pda"
118 #define ELEMENT_PHONE "phone"
119 #define ELEMENT_SMARTPHONE "smartphone"
120 #define ELEMENT_SERVER "server"
121 #define ELEMENT_WORKSTATION "workstation"
122 #define ELEMENT_UTC "UTC"
123 #define ELEMENT_SUPPORTLARGEOBJS "SupportLargeObjs"
124 #define ELEMENT_SUPPORTNUMBEROFCHANGES "SupportNumberOfChanges"
125 #define ELEMENT_DATASTORE "DataStore"
126 #define ELEMENT_DISPLAYNAME "DisplayName"
127 #define ELEMENT_MAXGUIDSIZE "MaxGUIDSize"
128 #define ELEMENT_RX_PREF "Rx-Pref"
129 #define ELEMENT_RX "Rx"
130 #define ELEMENT_TX_PREF "Tx-Pref"
131 #define ELEMENT_TX "Tx"
132 #define ELEMENT_CTCAP "CTCap"
133 #define ELEMENT_CTTYPE "CTType"
134 #define ELEMENT_VERCT "VerCT"
135 #define ELEMENT_FIELDLEVEL "FieldLevel"
136 #define ELEMENT_PROPERTY "Property"
137 #define ELEMENT_PROPNAME "PropName"
138 #define ELEMENT_DATATYPE "DataType"
139 #define ELEMENT_MAXOCCUR "MaxOccur"
140 #define ELEMENT_MAXSIZE "MaxSize"
141 #define ELEMENT_NOTRUNCATE "NoTruncate"
142 #define ELEMENT_VALENUM "ValEnum"
143 #define ELEMENT_DISPLAYNAME "DisplayName"
144 #define ELEMENT_PROPPARAM "PropParam"
145 #define ELEMENT_PARAMNAME "ParamName"
146 #define ELEMENT_DSMEM "DSMem"
147 #define ELEMENT_SUPPORTHIERARCHICALSYNC "SupportHierarchicalSync"
148 #define ELEMENT_SYNCCAP "SyncCap"
149 #define ELEMENT_SYNCTYPE "SyncType"
150 #define ELEMENT_SYNCTYPE_1 "1"
151 #define ELEMENT_SYNCTYPE_2 "2"
152 #define ELEMENT_SYNCTYPE_3 "3"
153 #define ELEMENT_SYNCTYPE_4 "4"
154 #define ELEMENT_SYNCTYPE_5 "5"
155 #define ELEMENT_SYNCTYPE_6 "6"
156 #define ELEMENT_SYNCTYPE_7 "7"
157 #define ELEMENT_FILTER_RX "Filter-Rx"
158 #define ELEMENT_FILTERCAP "FilterCap"
159
160
161
162
163 typedef enum {
164         PE_UNDEF = 0,
165         PE_ERROR,
166         PE_ADD,
167         PE_ALERT,
168         PE_ATOMIC_START,
169         PE_ATOMIC_END,
170         PE_COPY,
171         PE_DELETE,
172         PE_EXEC,
173         PE_GET,
174         PE_MAP,
175         PE_PUT_START,
176         PE_PUT_END,
177         PE_RESULTS_START,
178         PE_RESULTS_END,
179         PE_SEARCH,
180         PE_SEQUENCE_START,
181         PE_SEQUENCE_END,
182         PE_STATUS,
183         PE_SYNC_START,
184         PE_SYNC_END,
185         PE_REPLACE,
186         PE_HEADER,
187         PE_PUT_GET,
188         PE_CMD_GROUP,
189         PE_GENERIC,
190         PE_FINAL,
191         PE_DEVINF       ,
192         PE_SYNCML_START,
193         PE_SYNCML_END,
194         PE_BODY_START,
195         PE_BODY_END
196 } OMA_DS_Protocol_Element;
197
198 #endif /* OMA_DS_PROTOCOL_BINDER_DEFINITION_H_ */