|
1 /* |
|
2 * Copyright (c) 2004 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: Common Agent constants |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef __NSMLCLIAGCONSTANTS_H |
|
20 #define __NSMLCLIAGCONSTANTS_H |
|
21 |
|
22 // INCLUDES |
|
23 #include <e32base.h> |
|
24 |
|
25 // CONSTANTS |
|
26 //maximum length of SyncML status code |
|
27 const TInt KNSmlAgentStatusCodeLength = 3; |
|
28 //maximum length of LUID |
|
29 const TInt KNSmlAgentLUIDLength = 64; |
|
30 //default port |
|
31 const TInt KNSmlDefaultPort = 80; |
|
32 //granularity in status container array |
|
33 const TInt KNSmlStatusArrayGranularity = 5; |
|
34 //granularity in results container array |
|
35 const TInt KNSmlResultsArrayGranularity = 5; |
|
36 //buffer size in Unicode/UTF8 conversion |
|
37 const TInt KNSmlConvBufferSize = 100; |
|
38 //Values to Cmd element |
|
39 const TInt KNSmlMaxCmdNameLength = 8; |
|
40 |
|
41 // MACROS |
|
42 // SyncML version |
|
43 //1.2 CHANGES: 1.1 and 1.2 version support |
|
44 _LIT8( KNSmlAgentVerDTD11, "1.1" ); |
|
45 _LIT8( KNSmlAgentVerDTD12, "1.2" ); |
|
46 //end changes |
|
47 //_LIT8( KNSmlAgentVerDTD, "1.2" ); |
|
48 // Constants for URI parsing |
|
49 _LIT(KNSmlHttpHeader, "http://"); |
|
50 _LIT(KNSmlHttpsHeader, "https://"); |
|
51 _LIT(KNSmlIMEIHeader, "IMEI:"); |
|
52 |
|
53 _LIT8( KNSmlAgentAdd, "Add" ); |
|
54 _LIT8( KNSmlAgentAlert, "Alert" ); |
|
55 _LIT8( KNSmlAgentAtomic, "Atomic" ); |
|
56 _LIT8( KNSmlAgentCopy, "Copy" ); |
|
57 _LIT8( KNSmlAgentDelete, "Delete" ); |
|
58 _LIT8( KNSmlAgentSoftDelete, "SoftDele" ); |
|
59 _LIT8( KNSmlAgentExec, "Exec" ); |
|
60 _LIT8( KNSmlAgentGet, "Get" ); |
|
61 _LIT8( KNSmlAgentMap, "Map" ); |
|
62 _LIT8( KNSmlAgentPut, "Put" ); |
|
63 _LIT8( KNSmlAgentReplace, "Replace" ); |
|
64 _LIT8( KNSmlAgentPartialReplace, "PartRepl" ); |
|
65 _LIT8( KNSmlAgentResults, "Results" ); |
|
66 _LIT8( KNSmlAgentSearch, "Search" ); |
|
67 _LIT8( KNSmlAgentMove, "Move" ); |
|
68 _LIT8( KNSmlAgentSequence, "Sequence" ); |
|
69 _LIT8( KNSmlAgentSync, "Sync" ); |
|
70 _LIT8( KNSmlAgentSyncHdr, "SyncHdr" ); |
|
71 // Display alert |
|
72 _LIT8( KNSmlAgentDisplayAlert, "100" ); |
|
73 |
|
74 // CmdID used to SyncHdr in Status commands |
|
75 _LIT8( KNSmlAgentSyncHdrCmdID, "0" ); |
|
76 // Uri Scheme for IMEI code. |
|
77 _LIT( KNSmlAgentImeiSchemePrefix, "IMEI:" ); |
|
78 // Relative URI prefix |
|
79 _LIT( KNSmlAgentRelativeURIPrefix, "./" ); |
|
80 //URI delimeter |
|
81 _LIT( KNSmlAgentURIDelimeter, "/" ); |
|
82 // Authentications |
|
83 _LIT8( KNSmlAgentAuthBasic, "syncml:auth-basic" ); |
|
84 _LIT8( KNSmlAgentAuthMD5, "syncml:auth-md5" ); |
|
85 // Format |
|
86 _LIT8( KNSmlAgentChrFormat, "chr" ); |
|
87 _LIT8( KNSmlAgentBase64Format, "b64" ); |
|
88 |
|
89 #endif // __NSMLCLIAGCONSTANTS_H |
|
90 |
|
91 // End of File |