26 #include <featmgr.h> |
26 #include <featmgr.h> |
27 #include <WlanCdbCols.h> |
27 #include <WlanCdbCols.h> |
28 |
28 |
29 #include <data_caging_path_literals.hrh> |
29 #include <data_caging_path_literals.hrh> |
30 #include <ConnectionUiUtilities.rsg> |
30 #include <ConnectionUiUtilities.rsg> |
31 #include <apsettings.mbg> |
|
32 |
31 |
33 #include "ChangeConnectionDlg.h" |
32 #include "ChangeConnectionDlg.h" |
34 #include "ActiveCChangeConnectionDlg.h" |
33 #include "ActiveCChangeConnectionDlg.h" |
35 #include "ConnectionDialogsLogger.h" |
34 #include "ConnectionDialogsLogger.h" |
36 #include "ExpiryTimer.h" |
35 #include "ExpiryTimer.h" |
37 |
36 |
38 // CONSTANTS |
37 // CONSTANTS |
39 |
38 |
40 // ROM folder |
|
41 _LIT( KDriveZ, "z:" ); |
|
42 |
|
43 // Name of the MBM file containing icons |
|
44 _LIT( KFileIcons, "ApSettings.mbm" ); |
|
45 |
|
46 #if defined(_DEBUG) |
39 #if defined(_DEBUG) |
47 _LIT( KErrNullPointer, "NULL pointer" ); |
40 _LIT( KErrNullPointer, "NULL pointer" ); |
48 #endif |
41 #endif |
49 |
|
50 LOCAL_D const TInt KIconsGranularity = 4; |
|
51 |
42 |
52 |
43 |
53 // ================= MEMBER FUNCTIONS ======================= |
44 // ================= MEMBER FUNCTIONS ======================= |
54 |
45 |
55 // Constructor |
46 // Constructor |
164 |
155 |
165 SetOwnershipType( ELbmOwnsItemArray ); |
156 SetOwnershipType( ELbmOwnsItemArray ); |
166 SetItemTextArray( iActiveDlg->ActIAPs() ); |
157 SetItemTextArray( iActiveDlg->ActIAPs() ); |
167 SetOwnershipType( ELbmDoesNotOwnItemArray ); |
158 SetOwnershipType( ELbmDoesNotOwnItemArray ); |
168 |
159 |
169 SetIconsL(); |
|
170 |
|
171 // Timer not in use due the unresolved crash |
160 // Timer not in use due the unresolved crash |
172 //iExpiryTimer = CExpiryTimer::NewL( *this ); |
161 //iExpiryTimer = CExpiryTimer::NewL( *this ); |
173 //iExpiryTimer->Start(); |
162 //iExpiryTimer->Start(); |
174 CLOG_LEAVEFN( "CChangeConnectionDlg::PreLayoutDynInitL " ); |
163 CLOG_LEAVEFN( "CChangeConnectionDlg::PreLayoutDynInitL " ); |
175 |
164 |
194 CLOG_LEAVEFN( "CChangeConnectionDlg::RefreshDialogL " ); |
183 CLOG_LEAVEFN( "CChangeConnectionDlg::RefreshDialogL " ); |
195 |
184 |
196 } |
185 } |
197 |
186 |
198 |
187 |
199 // --------------------------------------------------------- |
|
200 // CChangeConnectionDlg::SetIconsL() |
|
201 // --------------------------------------------------------- |
|
202 // |
|
203 void CChangeConnectionDlg::SetIconsL() |
|
204 { |
|
205 CArrayPtr< CGulIcon >* icons = new( ELeave ) CAknIconArray( |
|
206 KIconsGranularity ); |
|
207 CleanupStack::PushL( icons ); |
|
208 |
|
209 MAknsSkinInstance* skinInstance = AknsUtils::SkinInstance(); |
|
210 |
|
211 TFileName iconsFileName; |
|
212 |
|
213 iconsFileName.Append( KDriveZ ); |
|
214 |
|
215 iconsFileName.Append( KDC_APP_BITMAP_DIR ); |
|
216 |
|
217 iconsFileName.Append( KFileIcons ); |
|
218 |
|
219 icons->AppendL( AknsUtils::CreateGulIconL( skinInstance, |
|
220 KAknsIIDQgnPropWmlGprs, |
|
221 iconsFileName, |
|
222 EMbmApsettingsQgn_prop_wml_gprs, |
|
223 EMbmApsettingsQgn_prop_wml_gprs_mask ) ); |
|
224 |
|
225 icons->AppendL( AknsUtils::CreateGulIconL( skinInstance, |
|
226 KAknsIIDQgnPropWmlCsd, |
|
227 iconsFileName, |
|
228 EMbmApsettingsQgn_prop_wml_csd, |
|
229 EMbmApsettingsQgn_prop_wml_csd_mask ) ); |
|
230 |
|
231 icons->AppendL( AknsUtils::CreateGulIconL( skinInstance, |
|
232 KAknsIIDQgnPropWmlHscsd, |
|
233 iconsFileName, |
|
234 EMbmApsettingsQgn_prop_wml_hscsd, |
|
235 EMbmApsettingsQgn_prop_wml_hscsd_mask ) ); |
|
236 |
|
237 if ( iIsWLANFeatureSupported ) |
|
238 { |
|
239 icons->AppendL( AknsUtils::CreateGulIconL( skinInstance, |
|
240 KAknsIIDQgnPropWlanEasy, |
|
241 iconsFileName, |
|
242 EMbmApsettingsQgn_prop_wlan_easy, |
|
243 EMbmApsettingsQgn_prop_wlan_easy_mask ) ); |
|
244 |
|
245 icons->AppendL( AknsUtils::CreateGulIconL( skinInstance, |
|
246 KAknsIIDQgnPropWlanBearer, |
|
247 iconsFileName, |
|
248 EMbmApsettingsQgn_prop_wlan_bearer, |
|
249 EMbmApsettingsQgn_prop_wlan_bearer_mask ) ); |
|
250 } |
|
251 |
|
252 SetIconArrayL( icons ); |
|
253 |
|
254 CleanupStack::Pop( icons ); |
|
255 } |
|
256 |
|
257 |
|
258 |
|
259 |
|
260 // ---------------------------------------------------------------------------- |
188 // ---------------------------------------------------------------------------- |
261 // void CChangeConnectionDlg::HandleResourceChange( TInt aType ) |
189 // void CChangeConnectionDlg::HandleResourceChange( TInt aType ) |
262 // Handle resource change events. |
190 // Handle resource change events. |
263 // ---------------------------------------------------------------------------- |
191 // ---------------------------------------------------------------------------- |
264 // |
192 // |