datasourcemodules/bluetoothgpspositioningmodule/btgpspsy/inc/Utils/btgpssimstubs.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Mon, 04 Oct 2010 02:39:19 +0300
changeset 62 a72da175c1b9
parent 0 9cfd9a3ee49c
permissions -rw-r--r--
Revision: 201039 Kit: 201039

// 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:
// LBS Bluetooth GPS PSY: Simulation stubs
//

#ifndef BTGPSSIMSTUBS_H
#define BTGPSSIMSTUBS_H

#ifdef	LBS_BTGPSPSY_SIM

#include <e32base.h>
#include "btgpsdiscovery.h"
#include "btgpssim.h"


void AddSimulatedPairedDevicesL(RBTDeviceArray* aDeviceArray);
TInt GetSimSockAddr(TSockAddr& aSockAddr, TUint& aProtocol);


/* SDP Agent simulator 

@see CBTGPSDiscovery

@internalComponent
*/
class CSdpAgentSim : public CActive
	{
public:
	static CSdpAgentSim* NewL(MSdpAgentNotifier& aObserver);
	~CSdpAgentSim();

	TInt GetChannelStart(const TBTDevAddr& aAddr, TInt& aChannel);
	
private:
	CSdpAgentSim(MSdpAgentNotifier& aObserver);
	void ConstructL();

	void RunL();
	void DoCancel();
	
private: 
	MSdpAgentNotifier& iObserver;
	RTimer iTimer;
	};


#endif // LBS_BTGPSPSY_SIM
#endif // BTGPSSIMSTUBS_H