lbstest/lbstestproduct/common/inc/ctlbsdox3p.h
changeset 0 9cfd9a3ee49c
equal deleted inserted replaced
-1:000000000000 0:9cfd9a3ee49c
       
     1 /**
       
     2 * Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 /**
       
    21  @file ctlbsdox3p.h
       
    22 */
       
    23 
       
    24 #ifndef __CT_LBS_DO_X3P_H__
       
    25 #define __CT_LBS_DO_X3P_H__
       
    26 
       
    27 
       
    28 #include <e32base.h>
       
    29 #include <lbs.h>
       
    30 #include <lbs/lbsx3p.h>
       
    31 
       
    32 
       
    33 //class CT_LbsX3PDoTransmitPos;
       
    34 _LIT(KCT_LbsDoX3P, "CT_LbsDoX3P");
       
    35 
       
    36 // Async callbacks
       
    37 class MT_LbsDoX3PObserver
       
    38 	{
       
    39 public:
       
    40 	virtual void MT_LbsDoX3PCallback(TInt aTransmitId, TRequestStatus& aStatus) = 0;
       
    41 	};
       
    42 	
       
    43 	
       
    44 class CT_LbsDoX3P: public CActive
       
    45 	{
       
    46 public:
       
    47 	~CT_LbsDoX3P();
       
    48 	static CT_LbsDoX3P* NewL(MT_LbsDoX3PObserver* aObserver, TInt aTransmitId = 0);
       
    49 
       
    50 	TInt SetOptions(const TLbsTransmitPositionOptions& aTransmitOptions);
       
    51 
       
    52 	void StartL(const TDesC& aDestinationID, TUint aTransmitPriority, TPositionInfo & aTransmittedPosInfo);
       
    53 	
       
    54 protected:
       
    55 	//	Functions from CActive:
       
    56 	virtual void DoCancel();
       
    57 	virtual void RunL();
       
    58 	virtual TInt RunError(TInt aError);
       
    59 	
       
    60 private:
       
    61 	CT_LbsDoX3P(MT_LbsDoX3PObserver* aObserver, TInt aTransmitId);
       
    62 	void CT_LbsDoX3P::ConstructL();
       
    63 	
       
    64 	// Caller.
       
    65 	MT_LbsDoX3PObserver* iObserver;
       
    66 	
       
    67 	// Transmit server.
       
    68 	RLbsTransmitPositionServer iServer;
       
    69 	RLbsTransmitPosition iTransmitter;
       
    70 
       
    71 	// Id to allow multiple X3P to be carried out.
       
    72 	TInt iTransmitId;
       
    73 	};
       
    74 
       
    75 #endif // __CT_LBS_DO_X3P_H__