email/email/pop/inc/T_StartRamUsageTimer.h
branchSymbian2
changeset 1 8758140453c0
child 6 c108117318cb
equal deleted inserted replaced
0:e8c1ea2c6496 1:8758140453c0
       
     1 /*
       
     2 * Copyright (c) 2007-2009 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 "Symbian Foundation License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.symbianfoundation.org/legal/sfl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:
       
    15 * @file 
       
    16 * This is the header file for CT_StartRamUsageTimer
       
    17 * 
       
    18 *
       
    19 */
       
    20 
       
    21 
       
    22 
       
    23 
       
    24 
       
    25 
       
    26 
       
    27 #ifndef _T_START_RAM_USAGE_TIMER_
       
    28 #define _T_START_RAM_USAGE_TIMER_
       
    29 
       
    30 
       
    31 // User includes 
       
    32 #include "T_MsgAsyncStepPOP.h"
       
    33 
       
    34 // Literals used 
       
    35 _LIT(KStartRamUsageTimer,"StartRamUsageTimer");
       
    36 
       
    37 /**
       
    38 Implement a wrapper class over HAL APIs and 
       
    39 setting the periodic Timer to monitor the RAM usage
       
    40  */
       
    41 class CT_StartRamUsageTimer : public CT_MsgAsyncStepPOP
       
    42 	{
       
    43 public:
       
    44 	CT_StartRamUsageTimer(CT_MsgSharedDataPop& aSharedDataPOP);	
       
    45 	~CT_StartRamUsageTimer();
       
    46 
       
    47 	static TInt RamUsage(TAny* aObject);
       
    48 	void DoRamUsage();
       
    49 
       
    50 private:
       
    51      void ProgressL(TBool aFinal);
       
    52      void CancelStep();
       
    53      
       
    54 	// CTestStep implementation 
       
    55 	virtual TVerdict	doTestStepL();	
       
    56 	};
       
    57 
       
    58 
       
    59 #endif // _T_START_RAM_USAGE_TIMER_