connectionutilities/ConnectionDialogs/ConnectionUiUtilities/NotifSrc/ActiveWLANNetworkUnavailableNote.cpp
changeset 66 ed07dcc72692
parent 47 cb7afde124a3
equal deleted inserted replaced
64:84c6623982f6 66:ed07dcc72692
    18 
    18 
    19 // INCLUDE FILES
    19 // INCLUDE FILES
    20 #include "ActiveWLANNetworkUnavailableNote.h"
    20 #include "ActiveWLANNetworkUnavailableNote.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 
    26 
    27 // CONSTANTS
    27 // CONSTANTS
       
    28 
       
    29 // Empty string
       
    30 _LIT( KEmpty, "" );
       
    31 
    28 
    32 
    29 // ================= MEMBER FUNCTIONS =======================
    33 // ================= MEMBER FUNCTIONS =======================
    30 
    34 
    31 
    35 
    32 // ---------------------------------------------------------
    36 // ---------------------------------------------------------
    68             {
    72             {
    69             stringLabel =  StringLoader::LoadLC( 
    73             stringLabel =  StringLoader::LoadLC( 
    70                                    R_WLAN_NETWORK_UNAVAILABLE );
    74                                    R_WLAN_NETWORK_UNAVAILABLE );
    71             }
    75             }
    72                                           
    76                                           
    73         CAknGlobalNote* globalNote = CAknGlobalNote::NewLC();
    77         CHbDeviceNotificationDialogSymbian::NotificationL(
    74         globalNote->ShowNoteL( EAknGlobalErrorNote, *stringLabel );
    78                 KEmpty, stringLabel->Des(), KEmpty);
    75 
       
    76         CleanupStack::PopAndDestroy( globalNote );
       
    77         CleanupStack::PopAndDestroy( stringLabel );                    
    79         CleanupStack::PopAndDestroy( stringLabel );                    
    78         }
    80         }
    79     
    81     
    80     iNotif->SetCancelledFlag( ETrue );
    82     iNotif->SetCancelledFlag( ETrue );
    81     iNotif->CompleteL( KErrNone );
    83     iNotif->CompleteL( KErrNone );