connectionutilities/ConnectionDialogs/ConnectionUiUtilities/NotifSrc/ActiveOfflineWlanDisabledNote.cpp
equal
deleted
inserted
replaced
18 |
18 |
19 // INCLUDE FILES |
19 // INCLUDE FILES |
20 #include "ActiveOfflineWlanDisabledNote.h" |
20 #include "ActiveOfflineWlanDisabledNote.h" |
21 |
21 |
22 #include <connuiutilsnotif.rsg> |
22 #include <connuiutilsnotif.rsg> |
23 #include <AknGlobalNote.h> |
23 #include <hbdevicenotificationdialogsymbian.h> |
24 #include <StringLoader.h> |
24 #include <StringLoader.h> |
25 |
25 |
|
26 // CONSTANTS |
|
27 |
|
28 // Empty string |
|
29 _LIT( KEmpty, "" ); |
26 |
30 |
27 // ================= MEMBER FUNCTIONS ======================= |
31 // ================= MEMBER FUNCTIONS ======================= |
28 |
32 |
29 // --------------------------------------------------------- |
33 // --------------------------------------------------------- |
30 // CActiveOfflineWlanDisabledNote::CActiveOfflineWlanDisabledNote() |
34 // CActiveOfflineWlanDisabledNote::CActiveOfflineWlanDisabledNote() |
58 if( iStatus == KErrNone ) |
62 if( iStatus == KErrNone ) |
59 { |
63 { |
60 HBufC* stringLabel = StringLoader::LoadLC( R_OFFLINE_NOT_POSSIBLE ); |
64 HBufC* stringLabel = StringLoader::LoadLC( R_OFFLINE_NOT_POSSIBLE ); |
61 CleanupStack::PushL( stringLabel ); |
65 CleanupStack::PushL( stringLabel ); |
62 |
66 |
63 CAknGlobalNote* globalNote = CAknGlobalNote::NewLC(); |
67 CHbDeviceNotificationDialogSymbian::NotificationL( |
64 globalNote->ShowNoteL( EAknGlobalInformationNote, *stringLabel ); |
68 KEmpty, stringLabel->Des(), KEmpty); |
65 |
|
66 CleanupStack::PopAndDestroy( globalNote ); |
|
67 CleanupStack::PopAndDestroy( stringLabel ); |
69 CleanupStack::PopAndDestroy( stringLabel ); |
68 |
70 |
69 iNotif->SetCancelledFlag( ETrue ); |
71 iNotif->SetCancelledFlag( ETrue ); |
70 iNotif->CompleteL( KErrNone ); |
72 iNotif->CompleteL( KErrNone ); |
71 } |
73 } |