phonebookui/Phonebook2/ccapplication/ccacommlauncherplugin/src/CCCAppCommLauncherPbkCmd.cpp
--- a/phonebookui/Phonebook2/ccapplication/ccacommlauncherplugin/src/CCCAppCommLauncherPbkCmd.cpp Wed Sep 01 12:29:52 2010 +0100
+++ b/phonebookui/Phonebook2/ccapplication/ccacommlauncherplugin/src/CCCAppCommLauncherPbkCmd.cpp Tue Sep 14 20:54:53 2010 +0300
@@ -33,6 +33,7 @@
#include <coemain.h>
#include <aknnotewrappers.h>
#include <StringLoader.h>
+#include <CPbk2CommandStore.h>
_LIT(KPbk2CommandsDllResFileName, "Pbk2Commands.rsc");
_LIT(KPbk2UiControlsDllResFileName, "Pbk2UiControls.rsc");
@@ -944,3 +945,25 @@
{
return *iAppServices;
}
+
+// --------------------------------------------------------------------------
+// CCCAppCommLauncherPbkCmd::DeleteAllRunningCmd
+// --------------------------------------------------------------------------
+//
+void CCCAppCommLauncherPbkCmd::DeleteAllRunningCmd()
+ {
+ //Close all the pending pbk2commands launched from CCA
+ if ( iPlugin.CommandState().IsRunning() )
+ {
+ iPlugin.CommandState().SetNotRunning();
+ if ( iCommandHandler )
+ {
+ CPbk2CommandStore* cmdStore( iCommandHandler->CommandStore() );
+ if ( cmdStore )
+ {
+ cmdStore->DestroyAllCommands();
+ }
+ }
+ }
+ }
+