systemhealthmanagement/systemhealthmgr/test/tsysmon/src/sysmontesthelper.h
branchRCL_3
changeset 22 8cb079868133
parent 21 ccb4f6b3db21
equal deleted inserted replaced
21:ccb4f6b3db21 22:8cb079868133
     1 // Copyright (c) 2007-2010 Nokia Corporation and/or its subsidiary(-ies).
     1 // Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies).
     2 // All rights reserved.
     2 // All rights reserved.
     3 // This component and the accompanying materials are made available
     3 // This component and the accompanying materials are made available
     4 // under the terms of "Eclipse Public License v1.0"
     4 // under the terms of "Eclipse Public License v1.0"
     5 // which accompanies this distribution, and is available
     5 // which accompanies this distribution, and is available
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
    45 
    45 
    46 _LIT(KRegisterCountFile, "C:\\Register_ResultFile.txt");
    46 _LIT(KRegisterCountFile, "C:\\Register_ResultFile.txt");
    47 _LIT(KRestartCountFile, "C:\\Restart_ResultFile.txt");
    47 _LIT(KRestartCountFile, "C:\\Restart_ResultFile.txt");
    48 
    48 
    49 const TInt KMaxTestIdLength = 20; // TestId is of the format APPFWK-SYSMON-00xx
    49 const TInt KMaxTestIdLength = 20; // TestId is of the format APPFWK-SYSMON-00xx
    50 const TUid KTestSysMon={0x200086A8};    // Category value to be used to define restart P&S key 
       
    51 
    50 
    52 class CSysMonTestHelper : public CBase
    51 class CSysMonTestHelper : public CBase
    53 	{
    52 	{
    54 public:
    53 public:
    55 	IMPORT_C static TRecoveryMethod StringToRecoveryMethodL(const TDesC& aRecoveryMethodString);
    54 	IMPORT_C static TRecoveryMethod StringToRecoveryMethodL(const TDesC& aRecoveryMethodString);
    56 	IMPORT_C static void GetResultIntL(const TDesC& aTestId, TInt& aResult);
    55 	IMPORT_C static void GetResultIntL(const TDesC& aTestId, TInt& aResult);
    57 	IMPORT_C static void GetDeregResultIntL(const TDesC& aTestId, TInt& aResult);
    56 	IMPORT_C static void GetDeregResultIntL(const TDesC& aTestId, TInt& aResult);
    58 	IMPORT_C static TInt ReadRunCountL(const TDesC& aProcessFilename);
    57 	IMPORT_C static TInt ReadRunCountL(const TDesC& aProcessFilename);
    59 	IMPORT_C static void IncrementRunCountL(const TDesC& aProcessFilename);
    58 	IMPORT_C static void IncrementRunCountL(const TDesC& aProcessFilename);
    60 	IMPORT_C static TInt GetRestartCountL();
    59 	IMPORT_C static TInt GetRestartCountL();
    61 	IMPORT_C static TInt GetRegisterCount(TInt aKey);
    60 	IMPORT_C static TInt GetRegisterCountL();
    62 	
    61 	
    63 	IMPORT_C static CSysMonTestHelper* NewLC();
    62 	IMPORT_C static CSysMonTestHelper* NewLC();
    64 	IMPORT_C static CSysMonTestHelper* NewL();
    63 	IMPORT_C static CSysMonTestHelper* NewL();
    65 	IMPORT_C ~CSysMonTestHelper();
    64 	IMPORT_C ~CSysMonTestHelper();
    66 	
    65