52
|
1 |
/*
|
|
2 |
* Copyright (c) 2005 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: Contains general data definitions for AspSyncUtil.
|
|
15 |
*
|
|
16 |
*/
|
|
17 |
|
|
18 |
|
|
19 |
#ifndef ASPDEFINES_H
|
|
20 |
#define ASPDEFINES_H
|
|
21 |
|
|
22 |
|
|
23 |
// INCLUDES
|
|
24 |
#include <e32base.h>
|
|
25 |
#include <AiwGenericParam.hrh>
|
|
26 |
|
|
27 |
|
|
28 |
|
|
29 |
// CONSTANTS
|
|
30 |
|
|
31 |
// resource files
|
|
32 |
_LIT( KResFileName, "z:aspsyncutil.rsc" );
|
|
33 |
_LIT( KBitmapFileName, "z:AspSyncUtil.mbm" );
|
|
34 |
|
|
35 |
|
|
36 |
_LIT(KHttpHeader, "http://");
|
|
37 |
|
|
38 |
// central repository uid for scheduled sync settings
|
|
39 |
const TUid KCRUidNSmlDSApp = { 0x101F9A1D };
|
|
40 |
|
|
41 |
//unicode value for clock icon
|
|
42 |
const TUint KClockCharacter = 0xF815 ;
|
|
43 |
|
|
44 |
// consumer app uids
|
|
45 |
const TUid KUidAppSync = { 0x101F6DE4 };
|
|
46 |
const TUid KUidAppPhonebook = { 0x101F4CCE };
|
|
47 |
const TUid KUidAppCalendar = { 0x10005901 };
|
|
48 |
const TUid KUidAppMessages = { 0x100058C5 };
|
|
49 |
const TUid KUidAppNotepad = { 0x10005907 };
|
|
50 |
const TUid KUidAppTest = { 0x0995CDE9 };
|
|
51 |
const TUid KUidAppMailEditor = { 0x101F4CD6 };
|
|
52 |
|
|
53 |
|
|
54 |
|
|
55 |
// medium type uids
|
|
56 |
const TUid KUidNSmlMediumTypeInternet = { 0x101F99F0 };
|
|
57 |
const TUid KUidNSmlMediumTypeBluetooth = { 0x101F99F1 };
|
|
58 |
const TUid KUidNSmlMediumTypeUSB = { 0x101F99F2 };
|
|
59 |
const TUid KUidNSmlMediumTypeIrDA = { 0x101F99F3 };
|
|
60 |
|
|
61 |
|
|
62 |
// medium type uids for convergence
|
|
63 |
//const TUid KUidNSmlMediumTypeInternet = { 0x10009F76 };
|
|
64 |
//const TUid KUidNSmlMediumTypeBluetooth = { 0x10009F79 };
|
|
65 |
//const TUid KUidNSmlMediumTypeUSB = { 0x10009FB5 };
|
|
66 |
//const TUid KUidNSmlMediumTypeIrDA = { 0x10009F78 };
|
|
67 |
//const TUid KUidNSmlMediumTypeWSP = { 0x10009F77 };
|
|
68 |
//const TUid KUidNSmlMediumTypeNSmlUSB = { 0x101F9A04 };
|
|
69 |
|
|
70 |
|
|
71 |
|
|
72 |
// sync adapder uids
|
|
73 |
const TUid KUidNSmlAdapterCalendar = { 0x101F6DDE };
|
|
74 |
const TUid KUidNSmlAdapterContact = { 0x101F6DDD };
|
|
75 |
const TUid KUidNSmlAdapterEMail = { 0x101F6DDF };
|
|
76 |
const TUid KUidNSmlAdapterNote = { 0x101F8612 };
|
|
77 |
const TUid KUidNSmlAdapterSms = { 0x10206B5C };
|
|
78 |
const TUid KUidNSmlAdapterMMS = { 0x101FB0E9 };
|
|
79 |
const TUid KUidNSmlAdapterBookmarks = { 0x102751BA };
|
|
80 |
const TUid KUidNsmlAdapterCntGrps = { 0x101FF972 };
|
|
81 |
const TUid KUidNsmlAdapterMedia = { 0x2001a9a1 };
|
|
82 |
|
|
83 |
// convergence sync adapder uids
|
|
84 |
//const TUid KUidNSmlAdapterCalendar = { 0x10009FD1 };
|
|
85 |
//const TUid KUidNSmlAdapterContact = { 0x10009FD3 };
|
|
86 |
|
|
87 |
|
|
88 |
// sync application uid
|
|
89 |
const TUid KUidSmlSyncApp = { 0x101F6DE4 };
|
|
90 |
|
|
91 |
// password editor constatnts
|
|
92 |
_LIT(KSecretEditorMask, "*");
|
|
93 |
const TInt KSecretEditorMaskLength = 4;
|
|
94 |
|
|
95 |
// string sizes
|
|
96 |
const TInt KBufSize = 128;
|
|
97 |
const TInt KBufSize255 = 255;
|
|
98 |
const TInt KBufSize16 = 16;
|
|
99 |
const TInt KBufSize64 = 64;
|
|
100 |
const TInt KBufSize32 = 32;
|
|
101 |
|
|
102 |
const TInt KDefaultArraySize = 10;
|
|
103 |
|
|
104 |
|
|
105 |
//
|
|
106 |
// text editor max sizes (from nsmlconstantdefs.h)
|
|
107 |
//
|
|
108 |
const TInt KAspMaxProfileNameLength = 50;
|
|
109 |
const TInt KAspMaxUsernameLength = 80;
|
|
110 |
const TInt KAspMaxPasswordLength = 22;
|
|
111 |
const TInt KAspMaxLocalNameLength = 255;
|
|
112 |
const TInt KAspMaxAdapterDisplayNameLength = 50;
|
|
113 |
const TInt KAspMaxServerIdLength = 150;
|
|
114 |
const TInt KAspMaxURILength = 144;
|
|
115 |
const TInt KAspMaxRemoteNameLength = 125;
|
|
116 |
|
|
117 |
// max number of profiles
|
|
118 |
const TInt KMaxProfileCount = 50;
|
|
119 |
|
|
120 |
// setting dialog listbox update delay after db event
|
|
121 |
const TInt KListBoxUpdateDelay = 250;
|
|
122 |
|
|
123 |
|
|
124 |
|
|
125 |
// DATA TYPES
|
|
126 |
|
|
127 |
enum TAspApplicationIds
|
|
128 |
{
|
|
129 |
EApplicationIdSync = 0,
|
|
130 |
EApplicationIdBookmarks = 1,//value not available in AiwGenericParam.hrh
|
|
131 |
EApplicationIdContact = EGenericParamContactItem, // 20
|
|
132 |
EApplicationIdCalendar = EGenericParamCalendarItem, // 21
|
|
133 |
EApplicationIdEmail = EGenericParamMessageItemEMail, // 31
|
|
134 |
EApplicationIdNote = EGenericParamNoteItem, // 23
|
|
135 |
EApplicationIdMms = EGenericParamMessageItemMMS, // 32
|
|
136 |
EApplicationIdSms = EGenericParamMessageItemSMS // 30
|
|
137 |
};
|
|
138 |
|
|
139 |
enum TASpSettingValue
|
|
140 |
{
|
|
141 |
EAspSettingDisabled = 0,
|
|
142 |
EAspSettingEnabled = 1
|
|
143 |
};
|
|
144 |
|
|
145 |
// NOTE: do not change these enums. They are also used in sync app
|
|
146 |
enum TAspDialogMode
|
|
147 |
{
|
|
148 |
EModeDialogWait = 3,
|
|
149 |
EModeDialogNoWait = 4
|
|
150 |
};
|
|
151 |
|
|
152 |
enum TDialogMode
|
|
153 |
{
|
|
154 |
EDialogModeEdit,
|
|
155 |
EDialogModeEditMandatory,
|
|
156 |
EDialogModeReadOnly,
|
|
157 |
EDialogModeSettingEnforcement
|
|
158 |
};
|
|
159 |
|
|
160 |
enum TAspMandatoryProfileData
|
|
161 |
{
|
|
162 |
EMandatoryOk,
|
|
163 |
EMandatoryNoProfileName,
|
|
164 |
EMandatoryNoHostAddress,
|
|
165 |
EMandatoryIncorrectBearerType,
|
|
166 |
EMandatoryIncorrectAccessPoint,
|
|
167 |
|
|
168 |
EMandatoryNoContent,
|
|
169 |
EMandatoryNoLocalDatabase,
|
|
170 |
EMandatoryNoRemoteDatabase,
|
|
171 |
EMandatoryNoSyncType
|
|
172 |
};
|
|
173 |
|
|
174 |
enum TAspSettingItemVisibility
|
|
175 |
{
|
|
176 |
EVisibilityNormal,
|
|
177 |
EVisibilityReadOnly,
|
|
178 |
EVisibilityHidden
|
|
179 |
};
|
|
180 |
|
|
181 |
enum TASpBearerType
|
|
182 |
{
|
|
183 |
EAspBearerInternet = 0,
|
|
184 |
EAspBearerUsb = 1,
|
|
185 |
EAspBearerBlueTooth = 2,
|
|
186 |
EAspBearerIrda = 3,
|
|
187 |
EAspBearerWsp = 4,
|
|
188 |
EAspBearerSmlUsb = 5,
|
|
189 |
EAspBearerLast = 6
|
|
190 |
};
|
|
191 |
|
|
192 |
|
|
193 |
|
|
194 |
//
|
|
195 |
// NOTE: this enum must match to resource r_asp_connection_dialog_setting_items
|
|
196 |
//
|
|
197 |
enum TAspConnectionSettingItem
|
|
198 |
{
|
|
199 |
EAspProfileName = 0,
|
|
200 |
EAspServerId = 1,
|
|
201 |
EAspConnType = 2,
|
|
202 |
EAspAccessPoint = 3,
|
|
203 |
EAspHostAddress = 4,
|
|
204 |
EAspPort = 5,
|
|
205 |
EAspUsername = 6,
|
|
206 |
EAspPassword = 7,
|
|
207 |
EAspServerAlert = 8,
|
|
208 |
EAspHttpsUsername = 9,
|
|
209 |
EAspHttpsPassword = 10,
|
|
210 |
EAspSyncDirection = 11,
|
|
211 |
EAspProtocolVersion = 12,
|
|
212 |
EAspSyncContent = 13,
|
|
213 |
EAspSchedulingSetting = 14,
|
|
214 |
EAspProfileSetting = 15
|
|
215 |
};
|
|
216 |
|
|
217 |
|
|
218 |
enum TAspContentSettingItem
|
|
219 |
{
|
|
220 |
EAspLocalDatabase = 0,
|
|
221 |
EAspRemoteDatabase = 1,
|
|
222 |
EAspUseFilters = 2
|
|
223 |
};
|
|
224 |
|
|
225 |
enum TAspAutoSyncSettingItem
|
|
226 |
{
|
|
227 |
EAspAutoSyncProfile = 0,
|
|
228 |
EAspAutoSyncContents,
|
|
229 |
EAspAutoSyncFrequency,
|
|
230 |
EAspAutoSyncPeakSchedule,
|
|
231 |
EAspAutoSyncOffPeakSchedule,
|
|
232 |
EAspAutoSyncScheduleTime,
|
|
233 |
EAspAutoSyncPeakStartTime,
|
|
234 |
EAspAutoSyncPeakEndTime,
|
|
235 |
EAspAutoSyncPeakDays,
|
|
236 |
EAspAutoSyncRoamingStatus
|
|
237 |
};
|
|
238 |
|
|
239 |
|
|
240 |
// NOTE: This enum must match with r_asp_sync_type
|
|
241 |
enum TAspSyncDirection
|
|
242 |
{
|
|
243 |
ESyncDirectionTwoWay,
|
|
244 |
ESyncDirectionOneWayFromDevice,
|
|
245 |
ESyncDirectionOneWayIntoDevice,
|
|
246 |
ESyncDirectionRefreshFromServer
|
|
247 |
};
|
|
248 |
|
|
249 |
// NOTE: This enum must match with r_asp_server_alert_type
|
|
250 |
enum TAspSASyncState
|
|
251 |
{
|
|
252 |
ESASyncStateEnable = 0,
|
|
253 |
ESASyncStateConfirm = 1,
|
|
254 |
ESASyncStateDisable = 2
|
|
255 |
};
|
|
256 |
|
|
257 |
|
|
258 |
|
|
259 |
// NOTE: this enum must match with property array described in
|
|
260 |
// SyncML_Sync_Agent_Client_API_Specification.doc.
|
|
261 |
|
|
262 |
// transport property setting ids
|
|
263 |
enum TAspTransportProperties
|
|
264 |
{
|
|
265 |
EPropertyIntenetAccessPoint = 0,
|
|
266 |
EPropertyHttpUsed = 5,
|
|
267 |
EPropertyHttpUserName = 6,
|
|
268 |
EPropertyHttpPassword = 7
|
|
269 |
};
|
|
270 |
|
|
271 |
/*
|
|
272 |
// transport property setting ids for convergence
|
|
273 |
enum TNSmlSyncTransportProperties
|
|
274 |
{
|
|
275 |
EPropertyIntenetAccessPoint = 3,
|
|
276 |
//EPropertyHttpUsed = 0,
|
|
277 |
EPropertyHttpUserName = 0,
|
|
278 |
EPropertyHttpPassword = 1
|
|
279 |
};
|
|
280 |
*/
|
|
281 |
|
|
282 |
enum TASpProtocolType
|
|
283 |
{
|
|
284 |
EAspProtocol_1_1 = 0,
|
|
285 |
EAspProtocol_1_2 = 1
|
|
286 |
};
|
|
287 |
|
|
288 |
// Roaming Settings
|
|
289 |
enum TRoamingSettings
|
|
290 |
{
|
|
291 |
ERoamingSettingAlwaysAsk = 0,
|
|
292 |
ERoamingSettingAlwaysAllow = 1,
|
|
293 |
ERoamingSettingNeverAllow = 2,
|
|
294 |
ERoamingSettingBlock = 3
|
|
295 |
};
|
|
296 |
|
|
297 |
|
|
298 |
|
|
299 |
|
|
300 |
enum TAdvanceSettingsItem
|
|
301 |
{
|
|
302 |
ERoamingSettings = 0
|
|
303 |
};
|
|
304 |
|
|
305 |
#endif // ASPDEFINES_H
|
|
306 |
|
|
307 |
// End of File
|