phonebookui/Phonebook2/CommandsExtension/inc/CPbk2SendContactCmd.h
branchRCL_3
changeset 18 d4f567ce2e7c
parent 0 e686773b3f54
--- a/phonebookui/Phonebook2/CommandsExtension/inc/CPbk2SendContactCmd.h	Thu Jul 15 18:22:55 2010 +0300
+++ b/phonebookui/Phonebook2/CommandsExtension/inc/CPbk2SendContactCmd.h	Thu Aug 19 09:41:07 2010 +0300
@@ -20,6 +20,9 @@
 #define CPBK2SENDCONTACTCMD_H
 
 // INCLUDES
+
+#include "MPbk2CommandResourceRelease.h"
+
 #include <e32base.h>
 #include <MPbk2Command.h>
 #include <MVPbkSingleContactOperationObserver.h>
@@ -60,7 +63,8 @@
         public MPbk2Command,
         public MPbk2vCardConverterObserver,
         public MVPbkSingleContactOperationObserver,
-        private MPbk2ProcessDecoratorObserver
+        private MPbk2ProcessDecoratorObserver,
+        public MPbk2ResourceRelease
     {
     public: // Construction and destruction
         /**
@@ -81,7 +85,14 @@
         void AddObserver(
                 MPbk2CommandObserver& aObserver );
         void ResetUiControl(MPbk2ContactUiControl& aUiControl);
-
+        TAny* CommandExtension(TUid /*aExtensionUid*/);
+    public: // From MPbk2ResourceRelease
+        /*-
+         * Delete all temp files.
+         * @Remark It not return until finish deleting all files.
+         *         It is non-reentrant.  
+         */
+        void ReleaseResource();
     private: // From CActive
         void RunL();
         TInt RunError(
@@ -134,7 +145,7 @@
         void SendMsgUsingSendUI(
                 CMessageData* aMsgData );
         TBool IsMoreThanOneContact();
-
+        
     private: // Data structures
         /// Process states
         enum TState
@@ -143,7 +154,8 @@
             ERetrievingContact,
             ESelectingSentData,
             EStopping,
-            ECancelling
+            ECancelling,
+            EReleaseResource
             };
 
     private: // Data
@@ -185,6 +197,9 @@
         CPbk2ApplicationServices* iAppServices;
         /// Own: Send UI
         CSendUi* iSendUi;
+        /// Own:
+        CActiveSchedulerWait* iWaiter;
+       
     };
 
 #endif // CPBK2SENDCONTACTCMD_H