|
1 /* |
|
2 * Copyright (c) 2007-2008 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: Constants for accountcreationengine |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef ACCOUNTCREATIONENGINECONSTANTS_H |
|
20 #define ACCOUNTCREATIONENGINECONSTANTS_H |
|
21 |
|
22 // UID of this engine. |
|
23 const TUid KAccountCreationEngineUid = { 0x2000BEF3 }; |
|
24 |
|
25 _LIT8( KXmlMimeType, "text/xml" ); |
|
26 _LIT8( KSisMimeType, "x-epoc/x-sisx-app" ); |
|
27 _LIT8( KIconMimeType, "image/png"); |
|
28 |
|
29 _LIT8( KActionMimeType, "application/vnd.wap.connectivity-wbxml" ); |
|
30 _LIT8( KSessionId, ";jsessionid=" ); |
|
31 |
|
32 const TInt KDefaultBufferSize = 256; |
|
33 const TUint KMaxElementLength = 128; |
|
34 const TUint KNameMaxLength = 256; |
|
35 const TUint KBufferSize = 2048; |
|
36 const TUint KMaxUriLength = 256; |
|
37 const TUint KMaxSessionIdString = 64; |
|
38 const TInt KBitsPerByte = 8; |
|
39 |
|
40 _LIT( KXmlFile, "\\data\\xmlfile.xml" ); |
|
41 _LIT( KSisFile, "\\data\\sisfile.sis" ); |
|
42 |
|
43 const TInt KFileBufferSize = 1024; |
|
44 |
|
45 // Constant node types. |
|
46 _LIT8( KServiceProvider, "Provider" ); // Element. |
|
47 _LIT8( KSis, "sis" ); // Element. |
|
48 |
|
49 // Constants strings (elements) for parsing. |
|
50 _LIT8( KProviderName, "providerName" ); |
|
51 _LIT8( KProviderDescription, "providerDescription" ); |
|
52 _LIT8( KProviderType, "providerType" ); |
|
53 _LIT8( KIconUrl, "iconUrl" ); |
|
54 _LIT8( KActivateUrl, "activateUrl" ); |
|
55 _LIT8( KCreateUrl, "createUrl" ); |
|
56 _LIT8( KSisUrl, "sisUrl" ); |
|
57 _LIT8( KReportUrl, "reportUrl" ); |
|
58 |
|
59 _LIT8( KUserAgent, "Account Creation Plugin 1.0" ); |
|
60 _LIT8( KAccept, "*/*" ); // Types to be accepted. |
|
61 |
|
62 // PhoneModule name |
|
63 _LIT( KPhoneModuleName, "Phonetsy.tsy" ); |
|
64 _LIT( KPhoneName, "DefaultPhone" ); |
|
65 |
|
66 // Common |
|
67 _LIT( KAmperSand, "&" ); |
|
68 _LIT( KQuestionMark, "?" ); |
|
69 _LIT( KPlacing, "=" ); |
|
70 _LIT( KCharacterTwo, "2" ); |
|
71 _LIT( KHyph, "-" ); |
|
72 _LIT8( KQuestionMark8, "?" ); |
|
73 |
|
74 // Parameter names |
|
75 _LIT( KMnc, "MNC" ); |
|
76 _LIT( KMcc, "MCC" ); |
|
77 _LIT( KNonce, "Nonce" ); |
|
78 _LIT( KKeyInfo, "Key" ); |
|
79 _LIT( KDeviceInfo, "deviceinfo" ); |
|
80 _LIT( KAction, "action" ); |
|
81 _LIT( KsType, "sType" ); |
|
82 _LIT( KcVersion, "cVersion" ); |
|
83 _LIT( KUsername, "username" ); |
|
84 _LIT( KPassword, "password" ); |
|
85 _LIT( KTempPassword, "temppass" ); |
|
86 _LIT( KImei, "imei" ); |
|
87 _LIT( KVariant, "variant" ); |
|
88 |
|
89 // Parameter action value |
|
90 _LIT( KValueCreate, "create" ); |
|
91 _LIT( KValueActivate, "activate" ); |
|
92 _LIT( KValueEmpty, "" ); |
|
93 _LIT( KValuecVersion, "email-0.1" ); |
|
94 |
|
95 // Max should be 3 for both in practically, just in case bigger values |
|
96 const TUint KMaxMCC = 4; |
|
97 const TUint KMaxMNC = 8; |
|
98 |
|
99 #endif // ACCOUNTCREATIONENGINECONSTANTS_H |
|
100 |
|
101 // End of file. |