lbs/lbsclient/inc/ctlbsclientgetlkpao.h
branchSymbian2
changeset 1 8758140453c0
child 6 c108117318cb
equal deleted inserted replaced
0:e8c1ea2c6496 1:8758140453c0
       
     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 the License "Symbian Foundation License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.symbianfoundation.org/legal/sfl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:
       
    15 * This contains the header file for Get last known position 
       
    16 * 
       
    17 *
       
    18 */
       
    19 
       
    20 
       
    21 
       
    22 
       
    23 
       
    24 /**
       
    25  @file ctlbsclientgetlastknownposao.h
       
    26 */
       
    27 #if (!defined __CT_LBS_CLIENT_LAST_KNOWN_POS_AO_H__)
       
    28 #define __CT_LBS_CLIENT_LAST_KNOWN_POS_AO_H__
       
    29 
       
    30 #include <e32base.h>
       
    31 #include <lbs.h>
       
    32 
       
    33 class MT_GetLastKnownPosObserver
       
    34 	{
       
    35 	public:
       
    36 	virtual void GetLastKnownPositionCallback(TRequestStatus& aStatus) = 0;	
       
    37 	};
       
    38 
       
    39 
       
    40 class CT_LbsClientGetLastKnownPosAO: public CActive
       
    41 	{
       
    42 public:
       
    43 	~CT_LbsClientGetLastKnownPosAO();
       
    44 	static CT_LbsClientGetLastKnownPosAO* NewL(MT_GetLastKnownPosObserver& aUser);
       
    45 	// wrapper for async positioner function GetLastKnownPosition()
       
    46 	void GetLastKnownPosL(RPositioner& aPositioner, TPositionInfo& aPosInfo);
       
    47 	
       
    48 protected:
       
    49 //	CActive:
       
    50 	// Redeclares the base class CActive::DoCancel(). 
       
    51 	virtual void DoCancel();
       
    52 	// Redeclares the base class CActive::RunL(). 
       
    53 	virtual void RunL();
       
    54 	// Redeclares the base class CActive::RunError(). 
       
    55 	virtual TInt RunError(TInt aError);
       
    56 	
       
    57 private:
       
    58 	// our status, so we know when request completes:
       
    59 	// positioner currently in use:
       
    60 	RPositioner iPositioner;
       
    61 	// type of request outstanding:
       
    62 	TInt		iRequestId;
       
    63 	// caller
       
    64 	MT_GetLastKnownPosObserver& iCaller;
       
    65 	
       
    66 	CT_LbsClientGetLastKnownPosAO(MT_GetLastKnownPosObserver& aCaller);
       
    67 	};
       
    68 
       
    69 #endif // _CT_LBS_CLIENT_LAST_KNOWN_POS_AO_H_