|
1 /* |
|
2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: ?Description |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef IA_UPDATE_PROTOCOL_CONSTS_H |
|
21 #define IA_UPDATE_PROTOCOL_CONSTS_H |
|
22 |
|
23 /** |
|
24 * IAUpdateProtocolConsts |
|
25 * Gives constants that are used when details elements are interpreted |
|
26 * from the server responses. |
|
27 */ |
|
28 namespace IAUpdateProtocolConsts |
|
29 { |
|
30 // Node details elements and their possible values |
|
31 |
|
32 /** |
|
33 * Importance informs how important the node updata is. |
|
34 */ |
|
35 _LIT( KImportanceKey, "iaimportance" ); |
|
36 _LIT( KImportanceMandatory, "mandatory" ); |
|
37 _LIT( KImportanceCritical, "critical" ); |
|
38 _LIT( KImportanceRecommended, "recommended" ); |
|
39 _LIT( KImportanceNormal, "normal" ); |
|
40 _LIT( KImportanceHidden, "hidden" ); |
|
41 |
|
42 /** |
|
43 * Package type informs what kind of update package the node |
|
44 * content will provide. |
|
45 */ |
|
46 _LIT( KPackageTypeKey, "iatype" ); |
|
47 _LIT( KPackageTypeSA, "SA" ); |
|
48 _LIT( KPackageTypeSP, "SP" ); |
|
49 _LIT( KPackageTypePU, "PU" ); |
|
50 |
|
51 /** |
|
52 * Search criteria can be used to filter nodes. |
|
53 */ |
|
54 _LIT( KSearchCriteriaKey, "iasearchcriteria" ); |
|
55 |
|
56 |
|
57 // Firmware item related information that is given as normal |
|
58 // key-value-pairs is defined here. |
|
59 |
|
60 /** |
|
61 * Firmware version 1 key. |
|
62 */ |
|
63 _LIT( KFirmwareVersion1Key, "fwVersion1" ); |
|
64 |
|
65 /** |
|
66 * Firmware version 2 key. |
|
67 */ |
|
68 _LIT( KFirmwareVersion2Key, "fwVersion2" ); |
|
69 |
|
70 /** |
|
71 * Firmware version 3 key. |
|
72 */ |
|
73 _LIT( KFirmwareVersion3Key, "fwVersion3" ); |
|
74 |
|
75 /** |
|
76 * Reboot after install |
|
77 */ |
|
78 _LIT( KRebootAfterInstallKey, "rebootafterinstall" ); |
|
79 _LIT( KRebootAfterInstallNeeded, "1" ); |
|
80 |
|
81 |
|
82 |
|
83 // The actual dependency information is included into the value field |
|
84 // that corresponds to the details dependency key. |
|
85 |
|
86 /* |
|
87 * Dependency key, whose value contains all dependency information in |
|
88 * an xml format. |
|
89 */ |
|
90 _LIT( KDependencyKey, "iadependencies" ); |
|
91 |
|
92 |
|
93 // The dependency elements local names are defined here |
|
94 |
|
95 |
|
96 /** |
|
97 * This element does not have any local name, because this is data is |
|
98 * directly from the protocol details value field. |
|
99 */ |
|
100 _LIT8( KDependencies, "iaupdatedependencies" ); |
|
101 _LIT( KDependenciesPrefix, "<iaupdatedependencies>" ); |
|
102 _LIT( KDependenciesPostfix, "</iaupdatedependencies>" ); |
|
103 |
|
104 // Node related dependencies |
|
105 |
|
106 /** |
|
107 * Local name for the element that contains node depenendency elements. |
|
108 */ |
|
109 _LIT8( KNodeDependencies, "interDeps" ); |
|
110 |
|
111 /** |
|
112 * Local name for the node dependency element |
|
113 */ |
|
114 _LIT8( KNodeDependency, "interDep" ); |
|
115 |
|
116 /** |
|
117 * Local name for the node uid element. |
|
118 */ |
|
119 _LIT8( KNodeUid, "sisxUid" ); |
|
120 |
|
121 /** |
|
122 * Local name for the node embedded element. |
|
123 */ |
|
124 _LIT8( KNodeEmbedded, "embedded" ); |
|
125 |
|
126 // Node version infos |
|
127 _LIT8( KNodeVersionFrom, "versionFrom" ); |
|
128 _LIT8( KNodeVersionTo, "versionTo" ); |
|
129 |
|
130 |
|
131 // Platform related dependencies |
|
132 |
|
133 /** |
|
134 * This contains the platform dependency information |
|
135 */ |
|
136 _LIT8( KPlatformDependency, "swPlatformDep" ); |
|
137 |
|
138 |
|
139 /** |
|
140 * This is the platform tag. |
|
141 */ |
|
142 _LIT8( KPlatformDescription, "platform" ); |
|
143 |
|
144 /** |
|
145 * This is the only acceptable platform string for s60. |
|
146 */ |
|
147 _LIT8( KPlatformDescriptionValue, "S60" ); |
|
148 |
|
149 |
|
150 // Platform version infos |
|
151 _LIT8( KPlatformVersionFrom, "versionFrom" ); |
|
152 _LIT8( KPlatformVersionTo, "versionTo" ); |
|
153 _LIT8( KPlatformVersionDate, "date" ); |
|
154 _LIT8( KPlatformVersionDateYear, "year" ); |
|
155 _LIT8( KPlatformVersionDateWeek, "week" ); |
|
156 |
|
157 |
|
158 // Generally used constants |
|
159 |
|
160 // Version major, minor, and build are common |
|
161 // for all the versions. |
|
162 _LIT8( KVersionMajor, "major" ); |
|
163 _LIT8( KVersionMinor, "minor" ); |
|
164 _LIT8( KVersionBuild, "build" ); |
|
165 |
|
166 |
|
167 // IAD specific key values that are used in the |
|
168 // protocol requests. |
|
169 |
|
170 /** |
|
171 * The key of the key-value pair for the client role. |
|
172 * The value that will correspond the key will define |
|
173 * the role of this client. |
|
174 */ |
|
175 _LIT( KIAClientRole, "clientRole" ); |
|
176 |
|
177 |
|
178 // IAD specific MIME constants. |
|
179 // These are used to identify the type of the node |
|
180 // from the server defined MIME. |
|
181 |
|
182 /** |
|
183 * MIME for service pack. |
|
184 * |
|
185 * Pattern constant is used for MIME comparisons. |
|
186 * So, strings should be equal and only difference is |
|
187 * wildcard characters. The pattern is not exactly defined |
|
188 * in protocol but it is defined for convenience. |
|
189 */ |
|
190 _LIT( KMimeServicePack, "application/x-arrow-metapackage" ); |
|
191 _LIT( KMimeServicePackPattern, "application/x-arrow-metapackage*" ); |
|
192 |
|
193 /** |
|
194 * MIME for FOTA DP2 firmware update. |
|
195 */ |
|
196 _LIT( KMimeFotaDp2, "application/x-nokia-fota-dp2" ); |
|
197 |
|
198 /** |
|
199 * MIME for FOTA DP2 firmware update. |
|
200 */ |
|
201 _LIT( KMimeFotiNsu, "application/x-nokia-foti-nsu" ); |
|
202 |
|
203 } |
|
204 |
|
205 #endif // IA_UPDATE_PROTOCOL_CONSTS_H |