17 |
17 |
18 |
18 |
19 // INCLUDE FILES |
19 // INCLUDE FILES |
20 #include <AknWaitDialog.h> |
20 #include <AknWaitDialog.h> |
21 #include <connuiutilsnotif.rsg> |
21 #include <connuiutilsnotif.rsg> |
22 #include <AknGlobalNote.h> |
22 #include <hbdevicenotificationdialogsymbian.h> |
23 #include <StringLoader.h> |
23 #include <StringLoader.h> |
24 #include <centralrepository.h> |
24 #include <centralrepository.h> |
25 #include <AknSgcc.h> |
25 #include <AknSgcc.h> |
26 #include <AknCapServerClient.h> |
26 #include <AknCapServerClient.h> |
27 //#include <aknnotewrappers.h> |
|
28 |
27 |
29 #include "ActiveSelectWLanDlgPlugin.h" |
28 #include "ActiveSelectWLanDlgPlugin.h" |
30 #include "SelectWLANDlg.h" |
29 #include "SelectWLANDlg.h" |
31 #include "ConnectionDialogsLogger.h" |
30 #include "ConnectionDialogsLogger.h" |
32 #include "ConnectionUiUtilitiesPrivateCRKeys.h" |
31 #include "ConnectionUiUtilitiesPrivateCRKeys.h" |
33 |
32 |
34 |
33 |
35 // CONSTANTS |
34 // CONSTANTS |
|
35 |
|
36 // Empty string |
|
37 _LIT( KEmpty, "" ); |
36 |
38 |
37 /** |
39 /** |
38 * For iPeriodic Timer, 10 seconds |
40 * For iPeriodic Timer, 10 seconds |
39 * The interval between refreshing available wlan networks. |
41 * The interval between refreshing available wlan networks. |
40 */ |
42 */ |
289 |
291 |
290 CleanupStack::PopAndDestroy( globalNote ); |
292 CleanupStack::PopAndDestroy( globalNote ); |
291 CleanupStack::PopAndDestroy( stringLabel ); |
293 CleanupStack::PopAndDestroy( stringLabel ); |
292 ***/ |
294 ***/ |
293 |
295 |
294 //// 3.1 solution: prevent deadlock, does not work in 3.0 because of avkon |
296 //// 10.1 solution: ditch avkon altogether |
|
297 CHbDeviceNotificationDialogSymbian::NotificationL( |
|
298 KEmpty, stringLabel->Des(), KEmpty); |
|
299 CleanupStack::PopAndDestroy( stringLabel ); |
|
300 |
|
301 /*** 3.1 solution: prevent deadlock, does not work in 3.0 because of avkon |
295 RAknUiServer* globalNote = CAknSgcClient::AknSrv(); |
302 RAknUiServer* globalNote = CAknSgcClient::AknSrv(); |
296 if ( globalNote->Handle() ) |
303 if ( globalNote->Handle() ) |
297 { |
304 { |
298 globalNote->ShowGlobalNoteL( *stringLabel, |
305 globalNote->ShowGlobalNoteL( *stringLabel, |
299 EAknGlobalInformationNote ); |
306 EAknGlobalInformationNote ); |
300 } |
307 } |
301 CleanupStack::PopAndDestroy( stringLabel ); |
308 CleanupStack::PopAndDestroy( stringLabel ); |
302 |
309 |
303 //// End of 3.1 solution |
310 *** End of 3.1 solution ***/ |
304 |
311 |
305 /*** 3.0 solution |
312 /*** 3.0 solution |
306 CAknInformationNote* myLocalGlobalNote = new ( ELeave ) |
313 CAknInformationNote* myLocalGlobalNote = new ( ELeave ) |
307 CAknInformationNote( EFalse ); |
314 CAknInformationNote( EFalse ); |
308 myLocalGlobalNote->ExecuteLD( *stringLabel ); |
315 myLocalGlobalNote->ExecuteLD( *stringLabel ); |