sapi_sysinfo/tsrc/testing/tsysbattery/inc/tsysbatterystrengthasync.h
changeset 0 14df0fbfcc4e
equal deleted inserted replaced
-1:000000000000 0:14df0fbfcc4e
       
     1 /*
       
     2 * Copyright (c) 2002 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 "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:   ?Description
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef __CTBATTERY_STRENGTH_ASYNC_H__
       
    20 #define __CTBATTERY_STRENGTH_ASYNC_H__
       
    21 
       
    22 //#include "watchtimer.h"
       
    23 #include "sysinfoservice.h"
       
    24 
       
    25 class CBatteryStrengthAsync : public CActive ,public ISystemObserver//, public MTimeOutCallBack
       
    26 {
       
    27 public:
       
    28 	static CBatteryStrengthAsync* NewL(CStifLogger* aLog);
       
    29 	~CBatteryStrengthAsync();
       
    30 	void Start();
       
    31 	TInt Result();
       
    32 
       
    33 	 void HandleResponseL(const TDesC& aEntity,const TDesC& aKey,
       
    34 	 					CSysData* aOutput, TInt32 aTransID, TSysRequest::TRequestType aType, TInt aError);
       
    35 	 
       
    36 	 void HandleTimeOut	();
       
    37 
       
    38 private:
       
    39 	void ConstructL();
       
    40 	CBatteryStrengthAsync(CStifLogger* aLog);
       
    41 	
       
    42 	virtual void DoCancel();
       
    43 	virtual void RunL();
       
    44 	
       
    45 	
       
    46 	void TestFuncL();
       
    47 
       
    48 private:	
       
    49 //CWatchTimer*			iTimer;
       
    50 	CActiveSchedulerWait* 	iWaitScheduler;
       
    51 	CSysInfoService*		iSysInfoService;
       
    52 	TInt 					iResult;
       
    53 	CStifLogger*			iLog;
       
    54 };
       
    55 
       
    56 #endif __CTBATTERY_STRENGTH_ASYNC_H__