27 #include <MPbk2ContactUiControl.h> |
27 #include <MPbk2ContactUiControl.h> |
28 #include <CPbk2FieldPropertyArray.h> |
28 #include <CPbk2FieldPropertyArray.h> |
29 #include <MPbk2ContactNameFormatter.h> |
29 #include <MPbk2ContactNameFormatter.h> |
30 #include <MPbk2CommandObserver.h> |
30 #include <MPbk2CommandObserver.h> |
31 #include <Pbk2ProcessDecoratorFactory.h> |
31 #include <Pbk2ProcessDecoratorFactory.h> |
32 #include <pbk2usimuires.rsg> |
32 #include <Pbk2USimUIRes.rsg> |
33 #include <CPbk2StorePropertyArray.h> |
33 #include <CPbk2StorePropertyArray.h> |
34 #include <CPbk2StoreProperty.h> |
34 #include <CPbk2StoreProperty.h> |
35 #include <CPbk2ApplicationServices.h> |
35 #include <CPbk2ApplicationServices.h> |
36 #include <MPbk2AppUi.h> |
36 #include <MPbk2AppUi.h> |
37 #include <pbk2commonui.rsg> |
37 #include <Pbk2CommonUi.rsg> |
38 |
38 |
39 // Virtual Phonebook |
39 // Virtual Phonebook |
40 #include <MVPbkContactStoreProperties.h> |
40 #include <MVPbkContactStoreProperties.h> |
41 #include <CVPbkContactManager.h> |
41 #include <CVPbkContactManager.h> |
42 #include <MVPbkContactStore.h> |
42 #include <MVPbkContactStore.h> |
297 TInt CPsu2CopyToSimCmd::RunError(TInt aError) |
297 TInt CPsu2CopyToSimCmd::RunError(TInt aError) |
298 { |
298 { |
299 PBK2_DEBUG_PRINT( PBK2_DEBUG_STRING |
299 PBK2_DEBUG_PRINT( PBK2_DEBUG_STRING |
300 ( "CPsu2CopyToSimCmd::RunError %d" ), aError ); |
300 ( "CPsu2CopyToSimCmd::RunError %d" ), aError ); |
301 CCoeEnv::Static()->HandleError(aError); |
301 CCoeEnv::Static()->HandleError(aError); |
302 |
|
303 // If the copy operation is cancelled due to error occurred, update the |
|
304 // ui control and reset the command pointer before it is destructed. |
|
305 if ( iNameListUiControl ) |
|
306 { |
|
307 iNameListUiControl->UpdateAfterCommandExecution(); |
|
308 } |
|
309 if ( iCommandObserver ) |
302 if ( iCommandObserver ) |
310 { |
303 { |
311 iCommandObserver->CommandFinished(*this); |
304 iCommandObserver->CommandFinished(*this); |
312 } |
305 } |
313 return KErrNone; |
306 return KErrNone; |