connectionutilities/ConnectionDialogs/ConnectionUiUtilities/NotifSrc/connectingviadiscreetpopup.cpp
equal
deleted
inserted
replaced
183 R_QTN_OCC_CONNECTING_DISCREET_POPUP_TEXT1); |
183 R_QTN_OCC_CONNECTING_DISCREET_POPUP_TEXT1); |
184 |
184 |
185 HBufC* stringText2 = NULL; |
185 HBufC* stringText2 = NULL; |
186 if (iConnectionName) |
186 if (iConnectionName) |
187 { |
187 { |
188 stringText2 = StringLoader::LoadLC( |
188 stringText2 = iConnectionName; |
189 R_QTN_OCC_CONNECTING_DISCREET_POPUP_TEXT2, |
|
190 *iConnectionName); |
|
191 } |
189 } |
192 else |
190 else |
193 { |
191 { |
194 stringText2 = _L("''").AllocLC(); |
192 stringText2 = KNullDesC().AllocLC(); |
195 } |
193 } |
196 |
194 |
197 CAknDiscreetPopup::ShowGlobalPopupL(*stringText1, // first text row |
195 CAknDiscreetPopup::ShowGlobalPopupL(*stringText1, // first text row |
198 *stringText2, // second text row |
196 *stringText2, // second text row |
199 KAknsIIDDefault, // icon skin id |
197 KAknsIIDDefault, // icon skin id |
203 iPopupFlags, // flags |
201 iPopupFlags, // flags |
204 0, // command id |
202 0, // command id |
205 NULL, // command observer |
203 NULL, // command observer |
206 KDiscreetPopupUid, // application to be launched |
204 KDiscreetPopupUid, // application to be launched |
207 KDiscreetPopupViewUid); // view to be activated |
205 KDiscreetPopupViewUid); // view to be activated |
208 CleanupStack::PopAndDestroy(2); |
206 |
|
207 if (!iConnectionName) |
|
208 { |
|
209 CleanupStack::PopAndDestroy( stringText2 ); |
|
210 } |
|
211 |
|
212 CleanupStack::PopAndDestroy( stringText1 ); |
209 } |
213 } |
210 |
214 |
211 // Cleanup |
215 // Cleanup |
212 iNotif->Cancel(); |
216 iNotif->Cancel(); |
213 } |
217 } |