25 #include <StringLoader.h> |
25 #include <StringLoader.h> |
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> |
31 |
32 |
32 #include "ChangeConnectionDlg.h" |
33 #include "ChangeConnectionDlg.h" |
33 #include "ActiveCChangeConnectionDlg.h" |
34 #include "ActiveCChangeConnectionDlg.h" |
34 #include "ConnectionDialogsLogger.h" |
35 #include "ConnectionDialogsLogger.h" |
35 #include "ExpiryTimer.h" |
36 #include "ExpiryTimer.h" |
36 |
37 |
37 // CONSTANTS |
38 // CONSTANTS |
38 |
39 |
|
40 // ROM folder |
|
41 _LIT( KDriveZ, "z:" ); |
|
42 |
|
43 // Name of the MBM file containing icons |
|
44 _LIT( KFileIcons, "ApSettings.mbm" ); |
|
45 |
39 #if defined(_DEBUG) |
46 #if defined(_DEBUG) |
40 _LIT( KErrNullPointer, "NULL pointer" ); |
47 _LIT( KErrNullPointer, "NULL pointer" ); |
41 #endif |
48 #endif |
|
49 |
|
50 LOCAL_D const TInt KIconsGranularity = 4; |
42 |
51 |
43 |
52 |
44 // ================= MEMBER FUNCTIONS ======================= |
53 // ================= MEMBER FUNCTIONS ======================= |
45 |
54 |
46 // Constructor |
55 // Constructor |
50 TDes& aConnectionName ) |
59 TDes& aConnectionName ) |
51 : CAknListQueryDialog( &aIndex ), |
60 : CAknListQueryDialog( &aIndex ), |
52 iIAPId( aIAPId ), |
61 iIAPId( aIAPId ), |
53 iConnectionName( aConnectionName ), |
62 iConnectionName( aConnectionName ), |
54 iIsWLANFeatureSupported( EFalse ), |
63 iIsWLANFeatureSupported( EFalse ), |
55 iActiveDlg( aActiveDlg ), |
64 iActiveDlg( aActiveDlg ) |
56 iExpiryTimer( NULL ) |
|
57 { |
65 { |
58 } |
66 } |
59 |
67 |
60 |
68 |
61 // Destructor |
69 // Destructor |
156 |
164 |
157 SetOwnershipType( ELbmOwnsItemArray ); |
165 SetOwnershipType( ELbmOwnsItemArray ); |
158 SetItemTextArray( iActiveDlg->ActIAPs() ); |
166 SetItemTextArray( iActiveDlg->ActIAPs() ); |
159 SetOwnershipType( ELbmDoesNotOwnItemArray ); |
167 SetOwnershipType( ELbmDoesNotOwnItemArray ); |
160 |
168 |
|
169 SetIconsL(); |
|
170 |
161 // Timer not in use due the unresolved crash |
171 // Timer not in use due the unresolved crash |
162 //iExpiryTimer = CExpiryTimer::NewL( *this ); |
172 //iExpiryTimer = CExpiryTimer::NewL( *this ); |
163 //iExpiryTimer->Start(); |
173 //iExpiryTimer->Start(); |
164 CLOG_LEAVEFN( "CChangeConnectionDlg::PreLayoutDynInitL " ); |
174 CLOG_LEAVEFN( "CChangeConnectionDlg::PreLayoutDynInitL " ); |
165 |
175 |
184 CLOG_LEAVEFN( "CChangeConnectionDlg::RefreshDialogL " ); |
194 CLOG_LEAVEFN( "CChangeConnectionDlg::RefreshDialogL " ); |
185 |
195 |
186 } |
196 } |
187 |
197 |
188 |
198 |
|
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 |
189 // ---------------------------------------------------------------------------- |
260 // ---------------------------------------------------------------------------- |
190 // void CChangeConnectionDlg::HandleResourceChange( TInt aType ) |
261 // void CChangeConnectionDlg::HandleResourceChange( TInt aType ) |
191 // Handle resource change events. |
262 // Handle resource change events. |
192 // ---------------------------------------------------------------------------- |
263 // ---------------------------------------------------------------------------- |
193 // |
264 // |