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