syncmlfw/ds/hostserver/dshostserverbase/inc/Nsmldshostsession.h
branchRCL_3
changeset 12 9e9792ae22e3
parent 0 b497e44ab2fc
child 25 b183ec05bd8c
--- a/syncmlfw/ds/hostserver/dshostserverbase/inc/Nsmldshostsession.h	Fri Mar 12 15:46:48 2010 +0200
+++ b/syncmlfw/ds/hostserver/dshostserverbase/inc/Nsmldshostsession.h	Mon Mar 15 12:43:15 2010 +0200
@@ -32,7 +32,8 @@
 #include "nsmldsitemmodificationset.h"
 #include "Nsmldsasyncrequesthandler.h"
 #include "Nsmldsdataproviderarray.h"
-
+#include "Nsmldshostsessioncanceleventhandler.h"
+#include "Nsmldshostsessioncancel.h"
 // ------------------------------------------------------------------------------------------------
 // Class forwards
 // ------------------------------------------------------------------------------------------------
@@ -48,7 +49,8 @@
 //
 // @lib nsmldshostserver.lib
 // ------------------------------------------------------------------------------------------------
-class CNSmlDSHostSession : public CSession2
+class CNSmlDSHostSession : public CSession2,
+                           public MNSmlDsHostSessionCancelEventHandler
 	{
 private:	//DATA TYPES and INNER CLASSES
 	typedef CNSmlDSAsyncCallBack::TCallBackOperation TCallBackOperation;
@@ -252,7 +254,11 @@
 public:	//Functions from base classes.
 
 	void ServiceL( const RMessage2 &aMessage );
-	
+    /**
+    * Called when user canceled the operation
+    * @none.
+    */
+	void HandleCancelEventL();
 private:	// New methods
 	
     /**
@@ -689,12 +695,22 @@
 	*/
     void StreamBufferToChunkL( TMemPtr& aMemPtr, TStreamBuffers* aSb );
     
+    /**
+    * Called when DeleteAll request is finished
+    * @param aDSAO. pointer to asynchronous request handler
+    * @param aOperation. callback operation.
+    */
+    TInt DeleteAllFinishedL( CNSmlDSAsyncCallBack* aDSAO, TCallBackOperation aOperation );
+       
 private:	//Data
 
 	TMemPtr iMemPtr;
 	CNSmlDSHostServer& iServer;
     RNSmlDSDataProviderArray iDataProviders;
     RStringPool iStringPool;
+    CNSmlHostSessionCancel* iCancelEventHandler;
+    CNSmlDSAsyncCallBack* iDsoDeleteAll;
+
 	};
 	
 #include "Nsmldshostsession.inl"