upload tizen1.0 source
[pkgs/o/oma-ds-service.git] / include / ServiceAdapter / SA_DevInf_Internal.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  *   @SA_DevInf_Internal.h
39  *   @version                                                                   0.1
40  *   @brief                                                                             This file is the header file that structure which is available in SA is defined
41  *                                                                                                      about device information(DevInf)
42  */
43
44 #ifndef SA_DEVINF_INTERNAL_H_
45 #define SA_DEVINF_INTERNAL_H_
46
47 #include "ServiceAdapter/SA_Define.h"
48
49 #define DEFINE_DEVICE_TYPE_PAGER "pager"
50 #define DEFINE_DEVICE_TYPE_HANDHELD "handheld"
51 #define DEFINE_DEVICE_TYPE_PDA "pda"
52 #define DEFINE_DEVICE_TYPE_PHONE "phone"
53 #define DEFINE_DEVICE_TYPE_SMARTPHONE "smartphone"
54 #define DEFINE_DEVICE_TYPE_SERVER "server"
55 #define DEFINE_DEVICE_TYPE_WORKSTATION "workstation"
56
57 struct DevInf {
58         DevInfVersion version;
59
60         DevInfDevTyp devtyp;
61         char *manufacturer;
62         char *model;
63         char *oem;
64         char *softwareVersion;
65         char *hardwareVersion;
66         char *firmwareVersion;
67         char *devid;
68
69         int supportsUTC;
70         int supportsLargeObjs;
71         int supportsNumberOfChanges;
72
73         GList *datastores;                                                      /*containing DevInfDataStore structure*/
74 };
75
76 struct DevInfDataStore {
77         int supportsHierarchicalSync;
78
79         char *sourceref;
80         char *displayname;
81         unsigned int maxGUIDSize;
82
83         DevInfContentType *rxPref;
84         DevInfContentType *txPref;
85
86         GList *filter_rx;                       /*need to be considered filter_rx,filterCap*/
87         GList *filterCap;
88
89         GList *rx;
90         GList *tx;
91
92         int sharedMem;
93         unsigned int maxid;
94         unsigned int maxmem;
95
96         unsigned int synccap;
97
98         GList *ctcaps;                                                          /*containing DevInfCTCap structure*/
99 };
100
101 struct DevInfContentType {
102         char *cttype;
103         char *verct;
104 };
105
106 struct DevInfCTCap {
107         DevInfContentType *ct;
108         GList *properties;                                      /*containing DevInfProperty structure*/
109 };
110
111 struct DevInfProperty {
112         char *propName;
113         char *dataType;
114         unsigned int maxOccur;
115         unsigned int maxSize;
116 /*      unsigned int propSize;*/
117         int noTruncate;
118         char *displayName;
119         GList *valEnums;                                        /*containing char* */
120         GList *propParams;                              /*containing DevInfPropParam structure*/
121 };
122
123 struct DevInfPropParam {
124         char *paramName;
125         char *dataType;
126         char *displayName;
127         GList *valEnums;
128 };
129
130 struct FilterCap {
131         char *cttype;
132         char *verct;
133         GList *filterKeyword;
134         GList *propName;
135 };
136
137 #endif /* SA_DEVINF_INTERNAL_H_ */