phonebookui/Phonebook2/ccapplication/ccacommlauncherplugin/src/CCCAppCommLauncherPbkCmd.cpp
equal
deleted
inserted
replaced
31 #include <MPbk2Command.h> |
31 #include <MPbk2Command.h> |
32 #include <Pbk2MenuFilteringFlags.hrh> |
32 #include <Pbk2MenuFilteringFlags.hrh> |
33 #include <coemain.h> |
33 #include <coemain.h> |
34 #include <aknnotewrappers.h> |
34 #include <aknnotewrappers.h> |
35 #include <StringLoader.h> |
35 #include <StringLoader.h> |
|
36 #include <CPbk2CommandStore.h> |
36 |
37 |
37 _LIT(KPbk2CommandsDllResFileName, "Pbk2Commands.rsc"); |
38 _LIT(KPbk2CommandsDllResFileName, "Pbk2Commands.rsc"); |
38 _LIT(KPbk2UiControlsDllResFileName, "Pbk2UiControls.rsc"); |
39 _LIT(KPbk2UiControlsDllResFileName, "Pbk2UiControls.rsc"); |
39 _LIT(KPbk2CommonUiDllResFileName, "Pbk2CommonUi.rsc" ); |
40 _LIT(KPbk2CommonUiDllResFileName, "Pbk2CommonUi.rsc" ); |
40 |
41 |
942 // |
943 // |
943 CPbk2ApplicationServices& CCCAppCommLauncherPbkCmd::ApplicationServices() const |
944 CPbk2ApplicationServices& CCCAppCommLauncherPbkCmd::ApplicationServices() const |
944 { |
945 { |
945 return *iAppServices; |
946 return *iAppServices; |
946 } |
947 } |
|
948 |
|
949 // -------------------------------------------------------------------------- |
|
950 // CCCAppCommLauncherPbkCmd::DeleteAllRunningCmd |
|
951 // -------------------------------------------------------------------------- |
|
952 // |
|
953 void CCCAppCommLauncherPbkCmd::DeleteAllRunningCmd() |
|
954 { |
|
955 //Close all the pending pbk2commands launched from CCA |
|
956 if ( iPlugin.CommandState().IsRunning() ) |
|
957 { |
|
958 iPlugin.CommandState().SetNotRunning(); |
|
959 if ( iCommandHandler ) |
|
960 { |
|
961 CPbk2CommandStore* cmdStore( iCommandHandler->CommandStore() ); |
|
962 if ( cmdStore ) |
|
963 { |
|
964 cmdStore->DestroyAllCommands(); |
|
965 } |
|
966 } |
|
967 } |
|
968 } |
|
969 |