networkprotocolmodules/common/suplrrlpasn1/inc/suplresponse.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Wed, 13 Oct 2010 16:07:50 +0300
branchRCL_3
changeset 65 a796fdeeb33c
parent 0 9cfd9a3ee49c
permissions -rw-r--r--
Revision: 201035 Kit: 201041

// Copyright (c) 2007-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:
//

/**
 @file
 @internalTechnology
 
*/
#ifndef LBS_SUPL_RESPONSE_H
#define LBS_SUPL_RESPONSE_H

#include "suplmessagebase.h"
#include <lbs/lbsnetcommon.h>


/**
Encapsulation for received SUPL RESPONSE messages.

@internalTechnology
*/
NONSHARABLE_CLASS(CSuplResponse) : public CSuplMessageBase
	{
public:
	IMPORT_C static CSuplResponse* NewL();
		
public:
	virtual ~CSuplResponse();
	
public:
	
	/** Populates aMethod according to the INIT message */
	IMPORT_C TInt GetPosMethod(TLbsNetPosRequestMethod& aMethod);

	/** Returns ETrue if the SlpAddress parameter is present */
	IMPORT_C TBool SlpAddressPresent();

	/** Populates aAddress with the SLP address */
	IMPORT_C TInt GetSlpAddress(CSuplSlpAddress& aAddress);
	
private:
	/** Constructor */
	CSuplResponse();

	/** second stage constructor */
	void ConstructL();
	
	/** Prohibit copy constructor */
	CSuplResponse(const CSuplResponse&);

	/** Prohibit assigment operator */
	CSuplResponse& operator= (const CSuplResponse&);
	};

#endif // LBS_SUPL_RESPONSE_H