locationmgmt/agpslocationmgr/test/test_lbsgpsmodule/inc/LbsLocSourceTestChannel.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Thu, 19 Aug 2010 11:17:26 +0300
branchRCL_3
changeset 52 29dbbeac905d
parent 0 9cfd9a3ee49c
permissions -rw-r--r--
Revision: 201027 Kit: 201033

// 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:
// Header file for the api for talking to the stub AGPS Module
// 
//

/**
 @file
 @internalComponent
 @released
*/

#ifndef LBSAGPSMODULETESTAPI_H_
#define LBSAGPSMODULETESTAPI_H_

#include <e32base.h>
#include <e32property.h>


/**
@internalComponent
@released

The interface is unidirectional (from AGPS Module to a Test Suite)
and does not pass parameters.
*/
class RAgpsModuleTestChannel
	{
public:
	/**
	The message types correspond to methods of the CLbsLocationSourceGpsBase interface.
	*/
	enum TTestMsgType
		{
		ETestMsgUnknown 				= 0,
		ETestMsgNewL					= 1,
		ETestMsgRequestLocationUpdate	= 2,
		ETestMsgCancelLocationRequest	= 3,
		ETestMsgAdvisePowerMode			= 4,
		ETestMsgSetGpsOptions			= 5,
		ETestMsgAssistanceDataEvent		= 6,
		ETestMsgShutdownEvent			= 7
		};

	IMPORT_C RAgpsModuleTestChannel();
	
	IMPORT_C static void InitialiseL();
	IMPORT_C static void Shutdown();
	
	IMPORT_C void OpenL();
	IMPORT_C void Close();

	IMPORT_C void Subscribe(TRequestStatus &aRequest);
	IMPORT_C void Cancel();
	
	IMPORT_C TInt SetMsg(TTestMsgType aMsgType);
	IMPORT_C TInt GetMsg(TTestMsgType& aMsgType);

private:
	RProperty iPropFromModule;
	//RProperty iPropToMdoule;
	};
	
	
#endif // LBSAGPSMODULETESTAPI_H_