sapi_sysinfo/tsrc/testing/tsysmanualtest/inc/tsysbatterynot.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:   Tests battery notifications
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef __CTBATTERY_NOT_H__
       
    20 #define __CTBATTERY_NOT_H__
       
    21 
       
    22 #include "watchtimer.h"
       
    23 #include "sysinfoservice.h"
       
    24 
       
    25 class CBatteryNot : public CActive ,public ISystemObserver, public MTimeOutCallBack
       
    26 {
       
    27 public:
       
    28 	static CBatteryNot* NewL(CStifLogger* aLog);
       
    29 	~CBatteryNot();
       
    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 	CBatteryNot(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 					iChargingResult;
       
    53 	TInt                    iLevelResult;
       
    54 	TInt                    iStrengthResult;
       
    55 	TInt                    iError;
       
    56 	TInt                    iCallBackCounter;
       
    57 	TInt             		iCount ;
       
    58 	CStifLogger*			iLog;
       
    59 };
       
    60 
       
    61 #endif __CTBATTERY_NOT_H__