supl/locationomasuplprotocolhandler/protocolhandlerver1/inc/epos_comasuplsession.h
branchRCL_3
changeset 55 ea98413ce11f
parent 49 10852b179f64
equal deleted inserted replaced
49:10852b179f64 55:ea98413ce11f
    93 *  @since S60 v3.1u
    93 *  @since S60 v3.1u
    94 */
    94 */
    95 
    95 
    96 class COMASuplSession : public CSuplSessionBase,
    96 class COMASuplSession : public CSuplSessionBase,
    97 						public MOMASuplConnObserver,
    97 						public MOMASuplConnObserver,
       
    98                         public MOMASuplUICompletionObserver,
    98 						public MCompleteSelfRequest,
    99 						public MCompleteSelfRequest,
    99 						public MOMASuplMsgStateObserver,
   100 						public MOMASuplMsgStateObserver,
   100 						public MOMASuplObserver,
   101 						public MOMASuplObserver,
   101 						public MOMASuplPrivacyObserver,
   102 						public MOMASuplPrivacyObserver,
   102 						public MOMASuplTimeOutNotifier,
   103 						public MOMASuplTimeOutNotifier,
   103                         public MOMASuplEtelCompletionObserver,
   104                         public MOMASuplEtelCompletionObserver,
   104                         public MOMASuplIapChangeNotifierObserver
   105                         public MOMASuplIapChangeNotifierObserver,
       
   106                         public MOMASuplDialogTimeOutNotifier
   105 {
   107 {
   106 
   108 
   107   public:  // Constructors and destructor
   109   public:  // Constructors and destructor
   108     
   110     
   109 	    // State Enums
   111 	    // State Enums
   205 	        * @param aErrorCode, Error code,if any
   207 	        * @param aErrorCode, Error code,if any
   206 	        * @return None
   208 	        * @return None
   207 	        */
   209 	        */
   208 			void GetPositionComplete(TInt aError);
   210 			void GetPositionComplete(TInt aError);
   209 			
   211 			
       
   212         	/** 
       
   213             * This callback method is used to notify the client about 
       
   214             * the completion of UI launch
       
   215             * @param aError - Error during Launch
       
   216             * @return None
       
   217             */
       
   218         	void SettingsUICompletedL(TInt aError);
       
   219 		
       
   220             /** 
       
   221             * This callback method is used to notify the client about 
       
   222             * the completion of UI
       
   223             * @return None
       
   224             */
       
   225 			void SettingsUsageUICompletedL(TInt aError);
       
   226 			
       
   227             /** 
       
   228             * This callback method is used to notify the client about 
       
   229             * the completion of UI 
       
   230             * @return None
       
   231             */
       
   232 			void SettingsTimeOutUICompletedL(TInt aError);
   210 			
   233 			
   211 	public: 			 
   234 	public: 			 
   212 			/**
   235 			/**
   213 			* InitializeL Method.
   236 			* InitializeL Method.
   214 			* @since S60 v3.1u
   237 			* @since S60 v3.1u
   230 			* @since S60 v3.1
   253 			* @since S60 v3.1
   231 			* @param aStatus, aSynchronous service request   
   254 			* @param aStatus, aSynchronous service request   
   232 			* @param aAllowedCapabilities, Capabilities of SET
   255 			* @param aAllowedCapabilities, Capabilities of SET
   233 			* @param aSessionIdSeed, seed value of session
   256 			* @param aSessionIdSeed, seed value of session
   234 			* @param aRequestID, Request Identification number.
   257 			* @param aRequestID, Request Identification number.
   235 			* @param aIsStaleCellId, indicates if this session is for a stale cell id conversion
       
   236 			* @param aLocationId , contains cell id parameters for which position is to be retrieved,ownership is transferred to this object
       
   237 			* @param aPrompt indicates if the user is to be prompted when making location requests
       
   238 			* @param aWlanOnly ,request to connect server using wlan connection only using OCC Api's
       
   239 			* @return None
   258 			* @return None
   240 			*/
   259 			*/
   241 			virtual void RunSuplSessionL(TRequestStatus& aStatus, TBool aFirstReq, const TDesC& aHslpAddress, TBool aFallBack, TInt aAllowedCapabilities, 
   260 			virtual void RunSuplSessionL(TRequestStatus& aStatus, TBool aFirstReq, const TDesC& aHslpAddress, TBool aFallBack, TInt aAllowedCapabilities, 
   242 										 TInt aSessionIdSeed, TInt aRequestID = 0,TBool aIsStaleCellId = EFalse,COMASuplLocationId* aLocationId = NULL,TBool aPrompt = EFalse,TBool aWlanOnly = EFalse);
   261 										 TInt aSessionIdSeed, TInt aRequestID = 0);
   243 										 
   262 										 
   244 			/**
   263 			/**
   245 			* RunSessionL, Starts the SUPL Sesssion for Terminal Initiated Location Request
   264 			* RunSessionL, Starts the SUPL Sesssion for Terminal Initiated Location Request
   246 			* @since S60 v3.1
   265 			* @since S60 v3.1
   247 			* @param       aStatus, 	  On completion, sets status of the request
   266 			* @param       aStatus, 	  On completion, sets status of the request
   904 			* @param None
   923 			* @param None
   905 			* @return None
   924 			* @return None
   906 			*/
   925 			*/
   907 			virtual void TimerExpiredL();
   926 			virtual void TimerExpiredL();
   908             
   927             
   909 			
   928 			/**
       
   929 			* Dialog Timeout Notifier Method.
       
   930 			* @since Series 60 9.1 TB
       
   931 			* @param None
       
   932 			* @return None
       
   933 			*/
       
   934             virtual void DialogTimerExpiredL();
   910     public:  // Usage dialog
   935     public:  // Usage dialog
   911             void SetSuplUsageFlag();
   936             void SetSuplUsageFlag();
   912             void ReSetSuplUsageFlag();
   937             void ReSetSuplUsageFlag();
   913             TBool GetSuplUsageFlag();
   938             TBool GetSuplUsageFlag();
   914             void StartUsageDialogLaunchL();
   939             void StartUsageDialogLaunchL();
   915             TBool IsEtelNotifySet();
   940             TBool IsEtelNotifySet();
   916             TBool IsEtelRoamingSet();
   941             TBool IsEtelRoamingSet();
   917             TBool HasMeLaunchedUsageDialog();
       
   918 			TUint GetPortNumUsed();
   942 			TUint GetPortNumUsed();
   919 	 private:
   943 	 private:
   920 	 
   944 	 
   921 	 	void StoreCurrentCellIDL(HPositionGenericInfo& aSuplPosInfo);		
   945 	 	void StoreCurrentCellIDL(HPositionGenericInfo& aSuplPosInfo);		
   922 	 	TInt ServerAddressCheckForSuplInitL();
   946 	 	TInt ServerAddressCheckForSuplInitL();
  1059 			TInt iNETErrorCode;
  1083 			TInt iNETErrorCode;
  1060             TInt iRequestId;
  1084             TInt iRequestId;
  1061 			
  1085 			
  1062 			//Timeout Timer
  1086 			//Timeout Timer
  1063 			COMASuplTimeoutTimer* iTimer;
  1087 			COMASuplTimeoutTimer* iTimer;
  1064 	
  1088 
       
  1089 			COMASuplDialogTimer* iDialogTimer;
  1065             //Roaming indicator
  1090             //Roaming indicator
  1066             TBool iRoaming;
  1091             TBool iRoaming;
  1067 
  1092 
  1068             //Previous request result
  1093             //Previous request result
  1069             TInt  iPrevUsageResult;
  1094             TInt  iPrevUsageResult;
  1108             TInt iSessionCompletionCode;
  1133             TInt iSessionCompletionCode;
  1109             TInt iNetworkType;
  1134             TInt iNetworkType;
  1110             
  1135             
  1111             COMASuplAsnHandlerBase* iOMASuplAsnHandlerBaseImpl; 
  1136             COMASuplAsnHandlerBase* iOMASuplAsnHandlerBaseImpl; 
  1112             
  1137             
  1113             // Network privacy handle.Ownership is with this object
       
  1114             CPosNetworkPrivacy* iNetworkPrivacy;
  1138             CPosNetworkPrivacy* iNetworkPrivacy;
  1115             //Stale cell id which for which position is to be retrieved.Ownership is with this object
       
  1116             COMASuplLocationId* iStaleLocationId;
       
  1117 			//indicates if this session is for a stale cell id conversion
       
  1118             TBool   iIsStaleLocIdPresent;
       
  1119 			//indicates if the user needs to be prompted when making a location request
       
  1120             TBool   iStaleLocIdPrompt;
       
  1121             TBool iIhaveLaunchedUsagedialog;
       
  1122 
  1139 
  1123             TUint iPortNum;
  1140             TUint iPortNum;
  1124             
       
  1125             //To indicate WLAN connection for OCC
       
  1126             TBool iWlanOnly; 
       
  1127     };
  1141     };
  1128 
  1142 
  1129 #endif      // C_COMASUPLSESSION_H
  1143 #endif      // C_COMASUPLSESSION_H
  1130             
  1144             
  1131 // End of File
  1145 // End of File