lbs/lbstestutils/inc/ctlbsagpsmoduleeventlistener.h
branchSymbian2
changeset 1 8758140453c0
child 6 c108117318cb
equal deleted inserted replaced
0:e8c1ea2c6496 1:8758140453c0
       
     1 // Copyright (c) 2007-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 the License "Symbian Foundation License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.symbianfoundation.org/legal/sfl-v10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 //
       
    15 
       
    16 
       
    17 
       
    18 /**
       
    19  @file
       
    20  @internalTechnology
       
    21  @test
       
    22 */
       
    23 
       
    24 #ifndef __CT_LBS_AGPS_MODULE_EVENT_LISTENER_H__
       
    25 #define __CT_LBS_AGPS_MODULE_EVENT_LISTENER_H__
       
    26 
       
    27 #include "tlbsutils.h"
       
    28 #include <lbs/lbslocdatasourcegpsbase.h>
       
    29 #include <e32property.h>
       
    30 
       
    31 class MT_AgpsModuleEventHandler
       
    32 	{
       
    33 public:
       
    34 	virtual void OnSetGpsOptions(const TLbsGpsOptions& aGpsOptions) = 0;
       
    35 	};
       
    36 
       
    37 class CT_AgpsModuleEventListener : public CActive
       
    38 /**
       
    39  * This class listens to events published by the AGPS Module.
       
    40  * 
       
    41  * @internalComponent
       
    42 */
       
    43 	{
       
    44 public:
       
    45 	IMPORT_C static CT_AgpsModuleEventListener* NewL(MT_AgpsModuleEventHandler& aHandler);
       
    46 	IMPORT_C ~CT_AgpsModuleEventListener();
       
    47 	
       
    48 private:
       
    49 	CT_AgpsModuleEventListener(MT_AgpsModuleEventHandler& aHandler);
       
    50 	void ConstructL();
       
    51 	
       
    52 	void RunL();
       
    53 	void DoCancel();
       
    54 
       
    55 private:
       
    56 	/** The call back class */
       
    57 	MT_AgpsModuleEventHandler& iHandler;
       
    58 	/** The property that will subscribe to the AGPS Module mode changes key */
       
    59 	RProperty iModeChangesProperty;
       
    60 	};
       
    61 
       
    62 #endif