syncmlfw/ds/hostserver/dshostserverbase/inc/Nsmldshostsession.h
branchRCL_3
changeset 61 b183ec05bd8c
parent 14 9e9792ae22e3
child 62 19bba8228ff0
equal deleted inserted replaced
59:13d7c31c74e0 61:b183ec05bd8c
    30 #include "nsmldshostconstants.h"
    30 #include "nsmldshostconstants.h"
    31 #include "nsmldshostitem.h"
    31 #include "nsmldshostitem.h"
    32 #include "nsmldsitemmodificationset.h"
    32 #include "nsmldsitemmodificationset.h"
    33 #include "Nsmldsasyncrequesthandler.h"
    33 #include "Nsmldsasyncrequesthandler.h"
    34 #include "Nsmldsdataproviderarray.h"
    34 #include "Nsmldsdataproviderarray.h"
    35 #include "Nsmldshostsessioncanceleventhandler.h"
    35 
    36 #include "Nsmldshostsessioncancel.h"
       
    37 // ------------------------------------------------------------------------------------------------
    36 // ------------------------------------------------------------------------------------------------
    38 // Class forwards
    37 // Class forwards
    39 // ------------------------------------------------------------------------------------------------
    38 // ------------------------------------------------------------------------------------------------
    40 class CSyncMLFilter;
    39 class CSyncMLFilter;
    41 class CSmlDataProvider;
    40 class CSmlDataProvider;
    47 // ------------------------------------------------------------------------------------------------
    46 // ------------------------------------------------------------------------------------------------
    48 // class CNSmlDSHostSession
    47 // class CNSmlDSHostSession
    49 //
    48 //
    50 // @lib nsmldshostserver.lib
    49 // @lib nsmldshostserver.lib
    51 // ------------------------------------------------------------------------------------------------
    50 // ------------------------------------------------------------------------------------------------
    52 class CNSmlDSHostSession : public CSession2,
    51 class CNSmlDSHostSession : public CSession2
    53                            public MNSmlDsHostSessionCancelEventHandler
       
    54 	{
    52 	{
    55 private:	//DATA TYPES and INNER CLASSES
    53 private:	//DATA TYPES and INNER CLASSES
    56 	typedef CNSmlDSAsyncCallBack::TCallBackOperation TCallBackOperation;
    54 	typedef CNSmlDSAsyncCallBack::TCallBackOperation TCallBackOperation;
    57 	
    55 	
    58 	// ------------------------------------------------------------------------------------------------
    56 	// ------------------------------------------------------------------------------------------------
   252 	* @param aMessage. message to service.
   250 	* @param aMessage. message to service.
   253 	*/
   251 	*/
   254 public:	//Functions from base classes.
   252 public:	//Functions from base classes.
   255 
   253 
   256 	void ServiceL( const RMessage2 &aMessage );
   254 	void ServiceL( const RMessage2 &aMessage );
   257     /**
   255 	
   258     * Called when user canceled the operation
       
   259     * @none.
       
   260     */
       
   261 	void HandleCancelEventL();
       
   262 private:	// New methods
   256 private:	// New methods
   263 	
   257 	
   264     /**
   258     /**
   265 	* Checks the message, then calls the correct method to service the message.
   259 	* Checks the message, then calls the correct method to service the message.
   266 	* @param aMessage. Message to dispatch. 
   260 	* @param aMessage. Message to dispatch. 
   693 	* @param aMemPtr. pointer to chunk
   687 	* @param aMemPtr. pointer to chunk
   694 	* @param aSb. contains data to copy
   688 	* @param aSb. contains data to copy
   695 	*/
   689 	*/
   696     void StreamBufferToChunkL( TMemPtr& aMemPtr, TStreamBuffers* aSb );
   690     void StreamBufferToChunkL( TMemPtr& aMemPtr, TStreamBuffers* aSb );
   697     
   691     
   698     /**
       
   699     * Called when DeleteAll request is finished
       
   700     * @param aDSAO. pointer to asynchronous request handler
       
   701     * @param aOperation. callback operation.
       
   702     */
       
   703     TInt DeleteAllFinishedL( CNSmlDSAsyncCallBack* aDSAO, TCallBackOperation aOperation );
       
   704        
       
   705 private:	//Data
   692 private:	//Data
   706 
   693 
   707 	TMemPtr iMemPtr;
   694 	TMemPtr iMemPtr;
   708 	CNSmlDSHostServer& iServer;
   695 	CNSmlDSHostServer& iServer;
   709     RNSmlDSDataProviderArray iDataProviders;
   696     RNSmlDSDataProviderArray iDataProviders;
   710     RStringPool iStringPool;
   697     RStringPool iStringPool;
   711     CNSmlHostSessionCancel* iCancelEventHandler;
       
   712     CNSmlDSAsyncCallBack* iDsoDeleteAll;
       
   713 
       
   714 	};
   698 	};
   715 	
   699 	
   716 #include "Nsmldshostsession.inl"
   700 #include "Nsmldshostsession.inl"
   717 #endif // __NSMLDSHOSTSERVERSESSION_H__
   701 #endif // __NSMLDSHOSTSERVERSESSION_H__
   718 
   702