locationmgmt/agpslocationmgr/test/test_lbsgpsmodule/inc/LbsLasDataSource.h
changeset 0 9cfd9a3ee49c
equal deleted inserted replaced
-1:000000000000 0:9cfd9a3ee49c
       
     1 // Copyright (c) 2005-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 //
       
    15 
       
    16 #ifndef LBSLASDATASOURCE_H
       
    17 #define LBSLASDATASOURCE_H
       
    18 
       
    19 //-----------------------------------------------------------------------------
       
    20 //System
       
    21 #include <e32base.h>
       
    22 
       
    23 class MLasDataSourceObserver 
       
    24 	{
       
    25 public:
       
    26 	virtual void HandleData(const TDesC8& aData, TInt aErr) = 0;
       
    27 	};
       
    28 
       
    29 //-----------------------------------------------------------------------------
       
    30 //   CLasDataSource
       
    31 //-----------------------------------------------------------------------------
       
    32 class CLasDataSource : public CBase
       
    33 	{
       
    34 public:
       
    35 	static CLasDataSource* NewL(MLasDataSourceObserver* aObserver);
       
    36 	virtual ~CLasDataSource();
       
    37 
       
    38 	virtual void OpenDataSource();
       
    39 	virtual void CloseDataSource();
       
    40 
       
    41 	virtual void MonitorDataSource();
       
    42 	virtual void CancelMonitor();
       
    43 	
       
    44 protected:
       
    45 	virtual void ConstructL();
       
    46 	CLasDataSource(MLasDataSourceObserver* aObserver);
       
    47 	};
       
    48 
       
    49 
       
    50 #endif // LBSLASDATASOURCE_H