supl/locationomasuplprotocolhandler/protocolhandlerver2/inc/epos_comasupltriggerresponsestate.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Tue, 14 Sep 2010 22:09:33 +0300
branchRCL_3
changeset 22 fce0ae2e4223
parent 0 667063e416a2
permissions -rw-r--r--
Revision: 201033 Kit: 201035

/*
* Copyright (c) 2002-2005 Nokia Corporation and/or its subsidiary(-ies). 
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of "Eclipse Public License v1.0"
* which accompanies this distribution, and is available
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
*
* Initial Contributors:
* Nokia Corporation - initial contribution.
*
* Contributors:
*
* Description:   class for handling SUPL_RESPONSE message...
*
*/



#ifndef C_COMASUPLTRIGGERRESPONSESTATE_H
#define C_COMASUPLTRIGGERRESPONSESTATE_H

#include <e32base.h>

#include "epos_comasuplstate.h"

class COMASuplSETCapabilities;

/**
 *  COMASuplTriggerResponseState handles all SUPL_RESPONSE related processing.   
 *  @lib eposomasuplprotocolhandler.lib
 *  @since S60 v3.1u
 */


class COMASuplTriggerResponseState : public COMASuplState
{
	public :  // Constructor 
	
		/**
		* NewL Method.
		* @since S60 v3.1u
		* @param None
		* @return None
		* @return Instance of COMASuplTriggerResponseState
		*/ 
		static COMASuplTriggerResponseState* NewL();
		
		/**
		* Destructor.
		*/
		~COMASuplTriggerResponseState();
		
    public:		//COMASuplState
		
	 	/**
		* ProcessMessage Method,Process SUPL_RESPONSE message...
		* @since S60 v3.1u
		* @param aDecodedMessage,decoded ASN messagge.
		* @return system wide error
		*/ 
		virtual TInt ProcessMessageL(COMASuplAsnMessageBase* aDecodedMessage); 
		
		/**
		* GetPosMethod gives the positioning Method...
		* @since 
		* @param None.
		* @return TOMASuplPosMethod
		*/ 
		TOMASuplPosMethod GetPosMethod();

		/**
		* GetTriggerParamsFlag returns flag indicating whether trigger params
        * are present or not 
		* @since 
		* @param None.
		* @return TOMASuplPosMethod
		*/ 
	    TBool GetTriggerParamsFlag();	

		/**
		* GetTriggerParams returns trigger params
        * are present or not 
		* @since 
		* @param None.
		* @return TOMASuplPosMethod
		*/ 
        TOMASuplTriggerParams GetTriggerParams();
	protected : 
	
		//Constuctor
		COMASuplTriggerResponseState();
	
		/**
		* ConstructL Method, 2nd phase construction
		* @since S60 v3.1u
		* @param None
		* @return None
		*/
		void ConstructL();

	protected: //Data
	TOMASuplPosMethod iPosMethod;
    //Trigger parameters
    TOMASuplTriggerParams iTriggerParams;
    TOMASuplReportingMode iReportingMode;
    TOMASuplSuppNetworkInformation iSupportedNetInfo;

    // Flag to indicate whether trigger params present or not
    TBool   iTriggerParamsPresent;

    // Flag to indicate whether reporting mode params present or not
    TBool   iReportingModeParamsPresent;
		
    // Flag to indicate whether supported network info params present or not
    TBool   iSupportedNetInfoPresent;
};

#endif //C_COMASUPLTRIGGERRESPONSESTATE_H