equal
deleted
inserted
replaced
16 * |
16 * |
17 * |
17 * |
18 */ |
18 */ |
19 |
19 |
20 // SYSTEM INCLUDES |
20 // SYSTEM INCLUDES |
21 #include <rfs.rsg> |
21 |
22 #include <PSVariables.h> |
22 #include <PSVariables.h> |
23 #include <featmgr.h> |
23 #include <featmgr.h> |
24 #include <eikenv.h> |
24 #include <eikenv.h> |
25 #include <centralrepository.h> |
25 #include <centralrepository.h> |
26 #include <pdpcontextmanagerinternalcrkeys.h> |
26 #include <pdpcontextmanagerinternalcrkeys.h> |
27 #include <StringLoader.h> |
27 #include <StringLoader.h> |
|
28 #include <hbtextresolversymbian.h> |
28 |
29 |
29 |
30 |
30 |
31 |
31 // USER INCLUDES |
32 // USER INCLUDES |
32 #include "rfsConnectionObserver.h" |
33 #include "rfsConnectionObserver.h" |
222 // dismissed from within the RunL() |
223 // dismissed from within the RunL() |
223 iIsWaitForDialogExecuted = ETrue; |
224 iIsWaitForDialogExecuted = ETrue; |
224 // Start displaying the dialog which will then be closed form the RunL() |
225 // Start displaying the dialog which will then be closed form the RunL() |
225 // Here the code execution blocks and we will proceed further only when |
226 // Here the code execution blocks and we will proceed further only when |
226 // this dialog is canceled |
227 // this dialog is canceled |
227 |
228 |
228 HBufC* prompt = StringLoader::LoadLC( R_CLOSING_CONNECTIONS ); |
229 _LIT(Klocalisationfile, "control_panel_"); |
|
230 _LIT(KtsfilePath, "z:/resource/qt/translations/"); |
|
231 |
|
232 TBool result = HbTextResolverSymbian::Init(Klocalisationfile,KtsfilePath); |
|
233 _LIT(Kclosingconnections,"txt_cp_info_closing_connections"); |
|
234 HBufC* prompt = HbTextResolverSymbian::LoadL(Kclosingconnections); |
229 |
235 |
230 iDialog->SetTextL(*prompt); |
236 iDialog->SetTextL(*prompt); |
231 |
237 |
232 //observer interface is used since showl is aynchronous and we have to have callbacks |
238 //observer interface is used since showl is aynchronous and we have to have callbacks |
233 //if cancel is pressed or dialog is closed |
239 //if cancel is pressed or dialog is closed |
237 //a loop here and returns to start when dialog is cancelled or closed. |
243 //a loop here and returns to start when dialog is cancelled or closed. |
238 iWait = new (ELeave) CActiveSchedulerWait; |
244 iWait = new (ELeave) CActiveSchedulerWait; |
239 iWait->Start(); |
245 iWait->Start(); |
240 delete iWait; |
246 delete iWait; |
241 iWait=NULL; |
247 iWait=NULL; |
242 CleanupStack::PopAndDestroy( prompt ); |
248 |
243 |
|
244 return iAllConnectionClosed; |
249 return iAllConnectionClosed; |
245 } |
250 } |
246 |
251 |
247 void CRfsConnectionObserver::ProgressDialogCancelled(const CHbDeviceProgressDialogSymbian* iDialog) |
252 void CRfsConnectionObserver::ProgressDialogCancelled(const CHbDeviceProgressDialogSymbian* iDialog) |
248 { |
253 { |