|
1 /* |
|
2 * Copyright (c) 2002-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: Constants to use for Call, Barring and Network settings |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef GSPHONESETTINGCONSTANTS_H |
|
20 #define GSPHONESETTINGCONSTANTS_H |
|
21 |
|
22 |
|
23 enum TGeneralSettingsPanic { |
|
24 EInvalidIndex, |
|
25 EInvalidCurrentItem, |
|
26 EInvalidDivertAction, |
|
27 ECFDefaultNumberCountError, |
|
28 EAIViewCompleteWithNullViewId, |
|
29 EAIViewCreateWithNonNullViewId |
|
30 }; |
|
31 |
|
32 // LOCAL FUNCTIONS |
|
33 GLDEF_C inline void Panic( TDesC aClassName, TGeneralSettingsPanic aPanic ) |
|
34 { |
|
35 User::Panic( aClassName, aPanic ); |
|
36 } |
|
37 |
|
38 // maximum string length for resource strings |
|
39 const TInt KGSMaxStringLength = 64; |
|
40 |
|
41 // barring pwd length |
|
42 const TInt KGSBarringPasswordLength = 4; |
|
43 |
|
44 // custom message id, when trying to activate view from phone |
|
45 const TInt KGSCustomActivateNetView = 9000; |
|
46 |
|
47 // on/off setting ON |
|
48 const TInt KGSSettingOn = 1; |
|
49 |
|
50 // on/off setting OFF |
|
51 const TInt KGSSettingOff = 0; |
|
52 |
|
53 // on/off setting's index 1 is OFF |
|
54 const TInt KGSIndexOff = 1; |
|
55 |
|
56 // on/off setting's index 0 is ON |
|
57 const TInt KGSIndexOn = 0; |
|
58 |
|
59 // manual select mode |
|
60 const TInt KGSManualSelectMode = 1; |
|
61 |
|
62 // automatic select mode |
|
63 const TInt KGSAutomaticSelectMode = 0; |
|
64 |
|
65 // CLIR values |
|
66 const TInt KGSCliDefault = 0; |
|
67 const TInt KGSCliOn = 1; |
|
68 const TInt KGSCliOff = 2; |
|
69 |
|
70 // ALS block values |
|
71 const TInt KGSAlsBlockOn = 0; |
|
72 const TInt KGSAlsBlockOff = 1; |
|
73 |
|
74 // array granularity |
|
75 const TInt KGSNetworkInfoArrayGranularity = 10; |
|
76 |
|
77 // Granularity of the arrays in Popup menus |
|
78 const TInt KGSCallPopupMenuItems = 4; |
|
79 const TInt KGSNetPopupMenuItems = 3; |
|
80 |
|
81 //Error note type ID - for Net view internal usage only |
|
82 const TInt KGSErrorNote = 5001; |
|
83 |
|
84 //Confirmation note type ID - for Net view internal usage only |
|
85 const TInt KGSConfirmationNote = 5002; |
|
86 |
|
87 //Information note type ID - for Net view internal usage only |
|
88 const TInt KGSInformationNote = 5003; |
|
89 |
|
90 // PIN query OK |
|
91 const TInt KGSPinQueryOk = 1; |
|
92 |
|
93 // MCN is active |
|
94 const TInt KGSMcnServiceOn = 1; |
|
95 |
|
96 // Single match for CF search. |
|
97 const TInt KCFSingleContact = 1; |
|
98 |
|
99 //Number of default CF numbers. |
|
100 const TInt KCFDefaultNumbers = 3; |
|
101 |
|
102 //Number of Delay times. |
|
103 const TInt KGSNrOfDelays = 6; |
|
104 |
|
105 //Increment of each delay step. |
|
106 const TInt KCFDelayStep = 5; //5,10,15,20,25,30 |
|
107 |
|
108 //Number has several '+''s in it. |
|
109 const TInt KCFErrIllegalNumber = 1; |
|
110 |
|
111 //No delay time is needed. |
|
112 const TInt KCFNoNeedToGetTimeValue = 1; |
|
113 |
|
114 //Divert to mailbox number. |
|
115 const TInt KCFDivertToMailBox = 0; |
|
116 |
|
117 //How many characters to use for CF match. |
|
118 const TInt KCFCharactersToMatch = 7; |
|
119 |
|
120 //Max. number of target items for CFs. |
|
121 const TInt KCFMaxNrOfTargets = 5; |
|
122 |
|
123 //If none of the four special characters are found from CF number, |
|
124 //this value is returned. KErrNotFound(-1)*4 = -4. |
|
125 const TInt KCFValidPhoneNumber = -4; |
|
126 |
|
127 //Invalid characters in the CF number. |
|
128 _LIT ( KCFInvalidChars, "*#pw" ); |
|
129 |
|
130 //Plus sign. |
|
131 _LIT ( KCFPlusSign, "+"); |
|
132 |
|
133 //Length of a setting item. |
|
134 const TInt KGSSettingItemLength = 128; |
|
135 |
|
136 //Typedef for setting items. |
|
137 typedef TBuf<KGSSettingItemLength> TSettingItem; |
|
138 |
|
139 //Length of short network name. |
|
140 const TInt KGSNwShortNameLength = 10; |
|
141 |
|
142 //Length of long network name. |
|
143 const TInt KGSNwLongNameLength = 20; |
|
144 |
|
145 //Network setting item typedef. |
|
146 typedef TBuf<KGSNwLongNameLength> TNetworkID; |
|
147 |
|
148 //Length of SMS txt editor. |
|
149 const TInt KGSSMSTxtEditorLength = 160; |
|
150 |
|
151 //Typedef for SMS txt editor. |
|
152 typedef TBuf<KGSSMSTxtEditorLength> TGSSMSTextEditor; |
|
153 |
|
154 //Empty space. |
|
155 _LIT( KGSEmptySpace, " " ); |
|
156 |
|
157 //unused parameter |
|
158 const TInt KGSNotUsed = -1; |
|
159 |
|
160 //Japanese replace prefix max length |
|
161 const TInt KGSReplacePrefixTextLength = 10; |
|
162 |
|
163 #endif //GSPHONESETTINGCONSTANTS_H |
|
164 //End of file |