networkprotocolmodules/suplprotocolmodule/SuplProtocol/inc/suplmtlrstatehandler.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Wed, 23 Jun 2010 19:48:34 +0300
changeset 45 15a2125aa2f3
parent 0 9cfd9a3ee49c
permissions -rw-r--r--
Revision: 201025 Kit: 2010125

// Copyright (c) 2008-2009 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:
// This file defines the class for the state handler of a SUPL MO-LR procedure 
// 
//

/**
 @file
 @internalTechnology
 @deprecated
*/

#ifndef __CSUPLMTLRSTATEHANDLER_H__
#define __CSUPLMTLRSTATEHANDLER_H__

#include <e32base.h>
#include "suplstatehandlerbase.h"
#include <lbs/lbsnetcommon.h>

class CSuplFsmSessionBase;

/** Class that defines the MT-LR procedure state handler
This class implements pure virtual methods defined by CSuplStateHandlerBase
@see CSuplStateHandlerBase
*/
NONSHARABLE_CLASS(CSuplMtLrStateHandler) : public CSuplStateHandlerBase
	{
public:

	static CSuplMtLrStateHandler* NewL(CSuplFsmSessionBase& aMachine);
	virtual ~CSuplMtLrStateHandler();
	
	// CSuplStateHandlerBase methods
	
	TBool EntryActionsL();
	
protected:

	CSuplMtLrStateHandler(CSuplFsmSessionBase& aMachine);
	
private:
	
	TBool EntryActionsFromSuplInitReceived();
	TBool EntryActionsFromNetConnectionStarted();
	TBool EntryActionsFromPosInitSentStateL();

private:

	TBool BuildCapabilitiesL(TLbsNetPosCapabilities& aCapabilities, TLbsNetPosRequestQuality& aQuality);
	};

#endif // __CSUPLMTLRSTATEHANDLER_H__