connectionutilities/ConnectionDialogs/ConnectionUiUtilities/NotifSrc/SelectWLanDlgPlugin.cpp
equal
deleted
inserted
replaced
82 void CSelectWLanDlgPlugin::StartL( const TDesC8& aBuffer, TInt aReplySlot, |
82 void CSelectWLanDlgPlugin::StartL( const TDesC8& aBuffer, TInt aReplySlot, |
83 const RMessagePtr2& aMessage ) |
83 const RMessagePtr2& aMessage ) |
84 { |
84 { |
85 CLOG_ENTERFN( "CSelectWLanDlgPlugin::StartL " ); |
85 CLOG_ENTERFN( "CSelectWLanDlgPlugin::StartL " ); |
86 |
86 |
|
87 if ( ScreenSaverOn() || AutolockOn() ) |
|
88 { |
|
89 // Screen saver or Autolock is active. Cancel the dialog. |
|
90 aMessage.Complete( KErrCancel ); |
|
91 return; |
|
92 } |
|
93 |
87 TPckgBuf<TBool> asyncVersion; |
94 TPckgBuf<TBool> asyncVersion; |
88 asyncVersion.Copy( aBuffer ); |
95 asyncVersion.Copy( aBuffer ); |
89 |
96 |
90 iCancelled = EFalse; |
97 iCancelled = EFalse; |
91 |
98 |
101 |
108 |
102 if ( notesAllowed ) |
109 if ( notesAllowed ) |
103 { |
110 { |
104 aMessage.ReadL( aReplySlot, iNetworkPrefs ); |
111 aMessage.ReadL( aReplySlot, iNetworkPrefs ); |
105 |
112 |
106 TInt err( KErrNone ); |
113 TRAPD( err, iActivePlugin = CActiveSelectWLanDlgPlugin::NewL( this ) ); |
107 TRAP( err, iActivePlugin = CActiveSelectWLanDlgPlugin::NewL( this ) ); |
|
108 if ( err ) |
114 if ( err ) |
109 { |
115 { |
110 delete iActivePlugin; |
116 delete iActivePlugin; |
111 iActivePlugin = NULL; |
117 iActivePlugin = NULL; |
112 iCancelled = ETrue; |
118 iCancelled = ETrue; |