|
1 /* |
|
2 * Copyright (c) 2002 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 the License "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: Setting item list class for Streaming setting list view.* |
|
15 */ |
|
16 |
|
17 |
|
18 // Version : %version: 2 % |
|
19 |
|
20 |
|
21 |
|
22 |
|
23 #ifndef MPSETTINGSSTREAMINGSETTINGITEMLIST_H |
|
24 #define MPSETTINGSSTREAMINGSETTINGITEMLIST_H |
|
25 |
|
26 // INCLUDES |
|
27 #include <aknsettingitemlist.h> |
|
28 |
|
29 // FORWARD DECLARATIONS |
|
30 class CMPSettingsModelForROP; |
|
31 |
|
32 // CONSTANTS |
|
33 const TInt KMaxApNameLength = 255; |
|
34 |
|
35 // CLASS DECLARATION |
|
36 |
|
37 /** |
|
38 * CMPSettingsStreamingSettingItemList |
|
39 * Setting item list class for Streaming setting list view. |
|
40 * |
|
41 */ |
|
42 class CMPSettingsStreamingSettingItemList : public CAknSettingItemList |
|
43 { |
|
44 public: // Constructors and destructor |
|
45 |
|
46 /** |
|
47 * C++ default constructor. |
|
48 */ |
|
49 CMPSettingsStreamingSettingItemList(CMPSettingsModelForROP* aModel); |
|
50 |
|
51 /** |
|
52 * 2nd-stage construction from resource id |
|
53 */ |
|
54 void ConstructFromResourceL(TInt aResourceId); |
|
55 |
|
56 /** |
|
57 * From CCoeControl, 2nd-stage construction from constructed resource reader |
|
58 */ |
|
59 void ConstructFromResourceL(TResourceReader& aReader); |
|
60 |
|
61 /** |
|
62 * Destructor. |
|
63 */ |
|
64 virtual ~CMPSettingsStreamingSettingItemList(); |
|
65 |
|
66 public: // Functions from base classes |
|
67 |
|
68 /** |
|
69 * From CAknSettingItemList |
|
70 */ |
|
71 void EditItemL(TInt aIndex, TBool aCalledFromMenu); |
|
72 |
|
73 protected: // Functions from base classes |
|
74 |
|
75 /** |
|
76 * From CAknSettingItemList |
|
77 */ |
|
78 CAknSettingItem* CreateSettingItemL(TInt aSettingId); |
|
79 |
|
80 private: //New |
|
81 |
|
82 /** |
|
83 * Sets Proxy host and Proxy port item visibility according to Proxy mode. |
|
84 */ |
|
85 void SetItemVisibilityL(); |
|
86 |
|
87 /** |
|
88 * Loads all setting values. |
|
89 */ |
|
90 void LoadAllL(); |
|
91 |
|
92 /** |
|
93 * Loads a specific setting value. |
|
94 * @param aSettingId ID of the setting to be loaded. |
|
95 */ |
|
96 void LoadSettingL(TInt aSettingId); |
|
97 |
|
98 /** |
|
99 * Stores a specific setting value. |
|
100 * @param aSettingId ID of the setting to be stored. |
|
101 */ |
|
102 void StoreSettingL(TInt aSettingId); |
|
103 |
|
104 /** |
|
105 * Launches the platform dialog for the connection selection. |
|
106 */ |
|
107 void LaunchConnectionSelectionL(); |
|
108 |
|
109 /** |
|
110 * Updates currently selected connection's name to setting item. |
|
111 */ |
|
112 void UpdateSelectedConnectionNameL(); |
|
113 |
|
114 /** |
|
115 * Sets proxy mode to disabled. |
|
116 */ |
|
117 void CheckProxyDisableL(); |
|
118 |
|
119 private: // From MEikListBoxObserver |
|
120 |
|
121 /** |
|
122 * Event handling section |
|
123 */ |
|
124 void HandleListBoxEventL( CEikListBox* aListBox, |
|
125 TListBoxEvent aListBoxEvent ); |
|
126 |
|
127 private: |
|
128 |
|
129 /** |
|
130 * ROP model. Not own. |
|
131 */ |
|
132 CMPSettingsModelForROP* iModel; |
|
133 |
|
134 /** |
|
135 * Proxy mode (on/off). |
|
136 */ |
|
137 TBool iProxyMode; |
|
138 |
|
139 /** |
|
140 * Proxy host. Own. |
|
141 */ |
|
142 HBufC* iProxyHost; |
|
143 |
|
144 /** |
|
145 * Pointer to Proxy host. |
|
146 */ |
|
147 TPtr iProxyHostPtr; |
|
148 |
|
149 /** |
|
150 * Proxy port number. |
|
151 */ |
|
152 TInt iProxyPort; |
|
153 |
|
154 /** |
|
155 * Connection timeout setting value. |
|
156 */ |
|
157 TInt iConnTimeout; |
|
158 |
|
159 /** |
|
160 * Server timeout setting value. |
|
161 */ |
|
162 TInt iSrvTimeout; |
|
163 |
|
164 /** |
|
165 * Access point id. |
|
166 */ |
|
167 TUint32 iDefaultAP; |
|
168 |
|
169 /** |
|
170 * Minimum UDP port number. |
|
171 */ |
|
172 TInt iMinUDPPort; |
|
173 |
|
174 /** |
|
175 * Maximum UDP port number. |
|
176 */ |
|
177 TInt iMaxUDPPort; |
|
178 |
|
179 /** |
|
180 * Name of selected access point. Own. |
|
181 */ |
|
182 TBuf<KMaxApNameLength> iSelectedApName; |
|
183 |
|
184 /** |
|
185 * Connection setting item. Not own. |
|
186 */ |
|
187 CAknTextSettingItem* iSettingConnectionItem; |
|
188 |
|
189 /** |
|
190 * Proxy mode item. Not own. |
|
191 */ |
|
192 CAknBinaryPopupSettingItem* iSettingProxyItem; |
|
193 |
|
194 }; |
|
195 |
|
196 #endif // MPSETTINGSSTREAMINGSETTINGITEMLIST_H |
|
197 |
|
198 // End of File |