lbstest/lbstestproduct/lbstestutils/inc/ctlbsasyncwaiter.h
changeset 0 9cfd9a3ee49c
equal deleted inserted replaced
-1:000000000000 0:9cfd9a3ee49c
       
     1 // Copyright (c) 2006-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 // @file ctlbsasyncwaiter.h
       
    15 // This is the header file for CT_LbsAsyncWaiter 
       
    16 // 
       
    17 //
       
    18 
       
    19 /**
       
    20  @file
       
    21  @internalTechnology
       
    22  @test
       
    23 */
       
    24 
       
    25 #ifndef __CT_LBS_ASYNC_WAITER_H__
       
    26 #define __CT_LBS_ASYNC_WAITER_H__
       
    27 
       
    28 //epoc includes
       
    29 #include <e32base.h>
       
    30 
       
    31 // Implements functions related to active objects
       
    32 class CT_LbsAsyncWaiter : public CActive
       
    33 	{
       
    34 public:
       
    35 	IMPORT_C static CT_LbsAsyncWaiter* NewL();
       
    36 	~CT_LbsAsyncWaiter();
       
    37 
       
    38 	IMPORT_C void StartAndWait();
       
    39 	IMPORT_C TInt Result() const;
       
    40 
       
    41 private:
       
    42 	CT_LbsAsyncWaiter();
       
    43 	// from CActive
       
    44 	virtual void RunL();
       
    45 	virtual void DoCancel();
       
    46 
       
    47 private:
       
    48 	TInt iError;
       
    49 	};
       
    50 
       
    51 #endif // __CT_LBS_ASYNC_WAITER_H__