|
1 /* |
|
2 * Copyright (c) 2003 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: Service Settings UI definitions |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef CWVSETTINGSDEFS_H |
|
21 #define CWVSETTINGSDEFS_H |
|
22 |
|
23 #include "CWVSettingsUI.hrh" |
|
24 #include "WVSettingsSharedDataNG.h" |
|
25 #include <ApEngineConsts.h> |
|
26 |
|
27 _LIT( KPanicText, "WVSETTINGSVIEW" ); |
|
28 // KEmptyDesC is needed in listboxes as empty value |
|
29 // KNullDesC cannot be used instead, because it messes |
|
30 // up the layout |
|
31 _LIT( KEmptyDesC, " " ); |
|
32 _LIT( KCompulsoryChar, "*" ); |
|
33 _LIT( KResourceName, "CWVSettingsUING.RSC" ); |
|
34 // The Variation resource file which contains the CommonUi's Feature/Variation flags |
|
35 _LIT( KIMCUVariationResourceName, "IMConnectionUIVariationNG.RSC" ); |
|
36 |
|
37 _LIT( KBitmapFile, "apsettings.mbm" ); |
|
38 |
|
39 _LIT( KServerNameFormatTrailer, "\t" ); |
|
40 _LIT( KFirstIconFormat, "\t0" ); |
|
41 _LIT( KAt, "@" ); |
|
42 |
|
43 _LIT( KDot, "." ); |
|
44 _LIT( KTwoDots, ".." ); |
|
45 _LIT( KWV, "wv:" ); |
|
46 _LIT( KSlash, "/" ); |
|
47 _LIT( KPlus, "+" ); |
|
48 _LIT( KTabulator, "\t" ); |
|
49 |
|
50 _LIT( KAtEnc, "%40" ); |
|
51 _LIT( KSlashEnc, "%2F" ); |
|
52 _LIT( KPlusEnc, "%2B" ); |
|
53 _LIT( KTabulatorEnc, "%09" ); |
|
54 _LIT( KEmptyDesCEnc, "%20" ); |
|
55 |
|
56 _LIT( KWVSettingsDefaultConnStart, "12:00" ); |
|
57 _LIT( KWVSettingsDefaultConnEnd, "12:00" ); |
|
58 _LIT( KWVSettingsDefaultMemoryDrive, "C:\\" ); |
|
59 |
|
60 _LIT( KTimeFormat, "%02d:%02d" ); |
|
61 |
|
62 _LIT( KIMPSIconIndex, "\t\t0" ); |
|
63 |
|
64 _LIT( KModuleId, "IMApp" ); |
|
65 _LIT( KDirSeparator, "\\" ); |
|
66 _LIT( KRelativeBrandPath, "\\system\\data\\branding\\" ); |
|
67 _LIT( KBitmapFileServerList, "logo.mbm" ); |
|
68 |
|
69 |
|
70 const TInt KDefaultStartHour = 12; |
|
71 const TInt KDefaultEndHour = 12; |
|
72 const TInt KDefaultMinute = 0; |
|
73 const TInt KTimeValueLength = 2; |
|
74 |
|
75 const TInt KWVSettingsBitmapFileNameLength = 30; |
|
76 |
|
77 const TInt KWVSettingsServerNameGeneratedPartMaxLength = 4; |
|
78 |
|
79 const TInt KWVSettingsServerNameMaxLength = 50; |
|
80 const TInt KWVSettingsServerSAPMaxLength = 50; |
|
81 const TInt KWVSettingsServerUserNameMaxLength = 50; |
|
82 const TInt KWVSettingsServerWVUserIdMaxLength = 50; |
|
83 const TInt KWVSettingsServerPasswordMaxLength = 50; |
|
84 const TInt KWVSettingsServerHttpProxyMaxLength = 50; |
|
85 const TInt KWVSettingsServerURLMaxlength = 255; |
|
86 |
|
87 const TInt KWVSettingsConnDaysTextMaxLength = 50; |
|
88 const TInt KWVSettingsConnHoursTextMaxLength = 50; |
|
89 |
|
90 // when all day bits are on then the integer value is 127 |
|
91 const TInt KWVSettingsConnDaysAllSelected = 127; |
|
92 |
|
93 const TInt KWVSettingsDefaultIMLoginType = EWVSettingsChatLoginManual; |
|
94 |
|
95 // Server memory size estimate for low disk handling |
|
96 const TInt KWVSettingsServerSizeEstimate = |
|
97 KWVSettingsServerNameMaxLength + |
|
98 KWVSettingsServerSAPMaxLength + |
|
99 KWVSettingsServerUserNameMaxLength + |
|
100 KWVSettingsServerWVUserIdMaxLength + |
|
101 KWVSettingsServerPasswordMaxLength + |
|
102 KWVSettingsServerHttpProxyMaxLength + |
|
103 KWVSettingsServerURLMaxlength + |
|
104 KWVSettingsConnDaysTextMaxLength + |
|
105 KWVSettingsConnHoursTextMaxLength + |
|
106 50; // Add some buffer |
|
107 |
|
108 const TInt KWVSettingsLeaveBase = -19000; |
|
109 |
|
110 enum TWVSettingsViewLeaveCodes |
|
111 { |
|
112 EFriendsArrayMissingContactInterface = KWVSettingsLeaveBase - 1, |
|
113 EServersArrayMissingServerList = KWVSettingsLeaveBase - 2, |
|
114 EServersArrayReplacelingModelWithNULL = KWVSettingsLeaveBase - 3, |
|
115 EServerDialogUnknownItemType = KWVSettingsLeaveBase - 4, |
|
116 EIncorrectListBoxItemIndex = KWVSettingsLeaveBase - 5 |
|
117 }; |
|
118 |
|
119 enum TWVSettingsDialogLoginSettings |
|
120 { |
|
121 EWVSettingsViewLoginPec, |
|
122 EWVSettingsViewLoginIm |
|
123 }; |
|
124 |
|
125 _LIT( KWVSettingsViewServerNameTrailerDecorationStart, "(" ); |
|
126 _LIT( KWVSettingsViewServerNameTrailerDecorationEnd, ")" ); |
|
127 const TUint KWVSettingsViewServerNameTrailerMinNumber = 1; //start number --> (01) |
|
128 const TUint KWVSettingsViewServerNameTrailerMaxNumber = 99; //end number --> (99) |
|
129 const TInt KWVSettingsViewServerNameTrailerNumberWidth = 2; //how many numbers places is reserved |
|
130 //for trailer number |
|
131 //NOTE!! This must be big enough to hold |
|
132 //KNameTrailerMaxNumber |
|
133 |
|
134 // Backslash unicode |
|
135 const TUint KBackSlash = 0x005C; |
|
136 |
|
137 |
|
138 //WLAN APN can not be used from IM Application |
|
139 // |
|
140 //const TInt KWVSettingsViewBearerTypes = EApBearerTypeAllBearers; |
|
141 //End |
|
142 const TInt KWVSettingsViewBearerTypes = EApBearerTypeCSD | EApBearerTypeGPRS | EApBearerTypeHSCSD | EApBearerTypeCDMA | EApBearerTypeLAN | EApBearerTypeLANModem; |
|
143 |
|
144 #endif // CWVSETTINGSDEFS_H |
|
145 |
|
146 // End of File |