datasourcemodules/bluetoothgpspositioningmodule/btgpspsy/inc/Utils/btgpssimstubs.h
changeset 36 b47902b73a93
parent 0 9cfd9a3ee49c
equal deleted inserted replaced
35:a2efdd544abf 36:b47902b73a93
       
     1 // Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     2 // All rights reserved.
       
     3 // This component and the accompanying materials are made available
       
     4 // under the terms of "Eclipse Public License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 // LBS Bluetooth GPS PSY: Simulation stubs
       
    15 //
       
    16 
       
    17 #ifndef BTGPSSIMSTUBS_H
       
    18 #define BTGPSSIMSTUBS_H
       
    19 
       
    20 #ifdef	LBS_BTGPSPSY_SIM
       
    21 
       
    22 #include <e32base.h>
       
    23 #include "btgpsdiscovery.h"
       
    24 #include "btgpssim.h"
       
    25 
       
    26 
       
    27 void AddSimulatedPairedDevicesL(RBTDeviceArray* aDeviceArray);
       
    28 TInt GetSimSockAddr(TSockAddr& aSockAddr, TUint& aProtocol);
       
    29 
       
    30 
       
    31 /* SDP Agent simulator 
       
    32 
       
    33 @see CBTGPSDiscovery
       
    34 
       
    35 @internalComponent
       
    36 */
       
    37 class CSdpAgentSim : public CActive
       
    38 	{
       
    39 public:
       
    40 	static CSdpAgentSim* NewL(MSdpAgentNotifier& aObserver);
       
    41 	~CSdpAgentSim();
       
    42 
       
    43 	TInt GetChannelStart(const TBTDevAddr& aAddr, TInt& aChannel);
       
    44 	
       
    45 private:
       
    46 	CSdpAgentSim(MSdpAgentNotifier& aObserver);
       
    47 	void ConstructL();
       
    48 
       
    49 	void RunL();
       
    50 	void DoCancel();
       
    51 	
       
    52 private: 
       
    53 	MSdpAgentNotifier& iObserver;
       
    54 	RTimer iTimer;
       
    55 	};
       
    56 
       
    57 
       
    58 #endif // LBS_BTGPSPSY_SIM
       
    59 #endif // BTGPSSIMSTUBS_H