Tizen 2.0 Release
[framework/system/oma-dm-agent.git] / include / serviceadapter / protocolbinder / syncml_def.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 SYNCML_DEFIINE_H_
19 #define SYNCML_DEFIINE_H_
20
21 /*
22  * Common Use Elements
23  */
24 #define ELEMENT_CHAL "Chal"
25 #define ELEMENT_CMD "Cmd"
26 #define ELEMENT_CMDID "CmdID"
27 #define ELEMENT_CMDREF "CmdRef"
28 #define ELEMENT_CRED "Cred"
29 #define ELEMENT_FINAL "Final"
30 #define ELEMENT_LOCNAME "LocName"
31 #define ELEMENT_LOCURI "LocURI"
32 #define ELEMENT_MOREDATA "MoreData"
33 #define ELEMENT_MSGID "MsgID"
34 #define ELEMENT_MSGREF "MsgRef"
35 #define ELEMENT_RESPURI "RespURI"
36 #define ELEMENT_SESSIONID "SessionID"
37 #define ELEMENT_SOURCE "Source"
38 #define ELEMENT_SOURCEREF "SourceRef"
39 #define ELEMENT_TARGET "Target"
40 #define ELEMENT_TARGETREF "TargetRef"
41 #define ELEMENT_VERDTD "VerDTD"
42 #define ELEMENT_VERPROTO "VerProto"
43 /*
44  *  Msg Container Elements
45  */
46 #define ELEMENT_SYNCML "SyncML"
47 #define ELEMENT_SYNCHDR "SyncHdr"
48 #define ELEMENT_SYNCBODY "SyncBody"
49 /*
50  * Data Description Elements
51   */
52 #define ELEMENT_DATA "Data"
53 #define ELEMENT_ITEM "Item"
54 #define ELEMENT_META "Meta"
55 #define ELEMENT_CORRELATOR "Correlator"
56 /*
57  * Meta Infomation Elements
58  */
59 #define ELEMENT_EMI "EMI"
60 #define ELEMENT_FORMAT "Format"
61 #define ELEMENT_MAXMSGSIZE "MaxMsgSize"
62 #define ELEMENT_MAXOBJSIZE "MaxObjSize"
63 #define ELEMENT_METAINF "MetaInf"
64 #define ELEMENT_NEXTNONCE "NextNonce"
65 #define ELEMENT_SIZE "Size"
66 #define ELEMENT_TYPE "Type"
67 /*
68  * Protocol Mangement Elements
69  */
70 #define ELEMENT_STATUS "Status"
71 /*
72  * Protocol Command Elements
73  */
74 #define ELEMENT_ADD "Add"
75 #define ELEMENT_ATOMIC "Atomic"
76 #define ELEMENT_COPY "Copy"
77 #define ELEMENT_DELETE "Delete"
78 #define ELEMENT_EXEC "Exec"
79 #define ELEMENT_GET "Get"
80 #define ELEMENT_REPLACE "Replace"
81 #define ELEMENT_SEQUENCE "Sequence"
82 #define ELEMENT_ALERT "Alert"
83 #define ELEMENT_RESULTS "Results"
84 /*
85  * VERDTD
86  * VERProto
87  */
88 #define ELEMENT_VERDTD_10 "1.0"
89 #define ELEMENT_VERDTD_11 "1.1"
90 #define ELEMENT_VERDTD_12 "1.2"
91 #define ELEMENT_VERPROTO_10 "DM/1.0"
92 #define ELEMENT_VERPROTO_11 "DM/1.1"
93 #define ELEMENT_VERPROTO_12 "DM/1.2"
94 /*
95  *Authentication
96  */
97 #define ELEMENT_AUTH_BASIC "syncml:auth-basic"
98 #define ELEMENT_AUTH_MD5 "syncml:auth-md5"
99 #define ELEMENT_AUTH_HMAC "syncml:auth-MAC"
100 #define ELEMENT_FORMAT_BASE64 "b64"
101 /*
102  * will delete
103  */
104 #define ELEMENT_NUMBEROFCHANGES "NumberOfChanges"
105 #define ELEMENT_LAST "Last"
106 #define ELEMENT_NEXT "Next"
107
108 #define ELEMENT_B64     "b64"
109 #define ELEMENT_BIN     "bin"
110 #define ELEMENT_BOOL    "bool"
111 #define ELEMENT_CHR     "chr"
112 #define ELEMENT_INT     "int"
113 #define ELEMENT_NULL    "null"
114 #define ELEMENT_XML     "xml"
115 #define ELEMENT_DATE    "date"
116 #define ELEMENT_TIME    "time"
117 #define ELEMENT_FLOAT "float"
118 #define ELEMENT_NODE     "node"
119
120 #define ELEMENT_TEXT_PLAIN      "text/plain"
121
122 typedef enum {
123         PE_UNDEF = 0,
124         PE_ERROR = 1,
125         PE_ADD = 2,
126         PE_ALERT = 3,
127         PE_ATOMIC_START = 4,
128         PE_ATOMIC_END = 5,
129         PE_COPY = 6,
130         PE_DELETE = 7,
131         PE_EXEC = 8,
132         PE_GET = 9,
133         PE_RESULTS_END = 10,
134         PE_RESULTS_START = 11,
135         PE_SEARCH = 12,
136         PE_SEQUENCE_START = 13,
137         PE_SEQUENCE_END = 14,
138         PE_STATUS = 15,
139         PE_SYNC_START = 16,
140         PE_SYNC_END = 17,
141         PE_REPLACE = 18,
142         PE_HEADER = 19,
143         PE_GENERIC = 20,
144         PE_FINAL = 21,
145         PE_SYNCML_START = 22,
146         PE_SYNCML_END = 23,
147         PE_BODY_START = 24,
148         PE_BODY_END = 25,
149         PE_SEQUENCE = 26,
150         PE_ATOMIC = 27
151 } OMA_DM_Protocol_Element;
152
153 #endif                          /* SYNCML_DEFIINE_H_ */