syncmlfw/common/sosserver/inc/nsmlsosthread.h
branchRCL_3
changeset 62 19bba8228ff0
parent 61 b183ec05bd8c
child 76 3cdbd92ee07b
equal deleted inserted replaced
61:b183ec05bd8c 62:19bba8228ff0
    17 
    17 
    18 
    18 
    19 #ifndef __NSMLTHREADSTART_H__
    19 #ifndef __NSMLTHREADSTART_H__
    20 #define __NSMLTHREADSTART_H__
    20 #define __NSMLTHREADSTART_H__
    21 
    21 
    22 #include <devicedialogsymbian.h>
    22 #include <SyncMLNotifierParams.h>
    23 #include <dmdevdialogclient.h>
    23 #include <SyncMLNotifier.h>
    24 #include <hbdevicedialogsymbian.h>
       
    25 #include <hbsymbianvariant.h>
       
    26 #include "nsmlsosserver.h"
    24 #include "nsmlsosserver.h"
    27 
       
    28 
    25 
    29 class CNSmlJob;
    26 class CNSmlJob;
    30 class CNSmlNotifierObserver;
    27 class CNSmlNotifierObserver;
    31 class CNSmlNotifierTimeOut;
    28 class CNSmlNotifierTimeOut;
    32 class CNSmlSOSHandler;
    29 class CNSmlSOSHandler;
    90 		
    87 		
    91 		~CNSmlThreadEngine();
    88 		~CNSmlThreadEngine();
    92 		
    89 		
    93 		void StartJobSessionL();
    90 		void StartJobSessionL();
    94 		void CancelJob();
    91 		void CancelJob();
    95 		TInt VerifyJobFromNotifierL(TBool aServerInitiated);
    92 		TInt VerifyJobFromNotifierL();
    96 		
    93 		
    97 		TInt FinishedStatus() 
    94 		TInt FinishedStatus() 
    98 			{
    95 			{
    99 			return iStatus.Int();
    96 			return iStatus.Int();
   100 			};
    97 			};
   123 		//Data Sync contents
   120 		//Data Sync contents
   124 		CArrayFix<TNSmlContentSpecificSyncType>* iContentArray;
   121 		CArrayFix<TNSmlContentSpecificSyncType>* iContentArray;
   125 		
   122 		
   126 		//used for server alert initiated job
   123 		//used for server alert initiated job
   127 		RTimer iTimeout;
   124 		RTimer iTimeout;
   128 //    	RNotifier iNotifier;
   125     	RNotifier iNotifier;
   129     	CNSmlNotifierObserver* iNotifierObserver;
   126     	CNSmlNotifierObserver* iNotifierObserver;
   130     	RLibrary iSessionLib;
   127     	RLibrary iSessionLib;
   131     	CNSmlDMAgent* iDMAgent;		
   128     	CNSmlDMAgent* iDMAgent;		
   132 		CNSmlDSAgent* iDSAgent;	
   129 		CNSmlDSAgent* iDSAgent;	
   133 		CNSmlCancelTimeOut* iCancelTimeout;
   130 		CNSmlCancelTimeOut* iCancelTimeout;
       
   131 		// Fix for cancel not happening when cancel key is pressed 
       
   132 		TBool iSyncCancelled;
   134 	};
   133 	};
   135 
   134 
   136 
   135 
   137 /**
   136 /**
   138 * CNSmlNotifierTimeOut class
   137 * CNSmlNotifierTimeOut class
   183 	public:
   182 	public:
   184 		CNSmlNotifierObserver( TRequestStatus& aStatus, CNSmlThreadParams& aParams );
   183 		CNSmlNotifierObserver( TRequestStatus& aStatus, CNSmlThreadParams& aParams );
   185 		~CNSmlNotifierObserver();
   184 		~CNSmlNotifierObserver();
   186 		void ConnectToNotifierL( const TSyncMLAppLaunchNotifParams& aParam );
   185 		void ConnectToNotifierL( const TSyncMLAppLaunchNotifParams& aParam );
   187 		void NotifierTimeOut();
   186 		void NotifierTimeOut();
   188 		TBool IsHbSyncmlNotifierEnabledL();
       
   189 		void HbNotifierObserverL(const TSyncMLAppLaunchNotifParams& aParam);
       
   190 	protected:
   187 	protected:
   191 		void DoCancel();
   188 		void DoCancel();
   192 		void RunL();
   189 		void RunL();
   193 	private:
   190 	private:
   194 		TRequestStatus& iCallerStatus;
   191 		TRequestStatus& iCallerStatus;
   195 		
   192 		
   196 //		RNotifier iNotifier;
   193 		RNotifier iNotifier;
   197 		TPckgBuf<TInt> iResBuf;
   194 		TSyncMLAppLaunchNotifRetValPckg iResBuf;
   198 	
   195 	
   199 		CNSmlThreadParams& iThreadParams;
   196 		CNSmlThreadParams& iThreadParams;
   200 		CNSmlNotifierTimeOut iNotifierTimeOut;
   197 		CNSmlNotifierTimeOut iNotifierTimeOut;
   201 		TBool iTimeOut;
   198 		TBool iTimeOut;
   202 
       
   203 		CHbDeviceDialogSymbian* iDevDialog;
       
   204             RProperty iProperty;
       
   205             TBool iHbSyncmlNotifierEnabled;
       
   206            RDmDevDialog iDmDevdialog;
       
   207 
       
   208 	};
   199 	};
   209 	
   200 	
   210 
   201 
   211 /**
   202 /**
   212 * TNSmlThreadLauncher class
   203 * TNSmlThreadLauncher class