appinstaller/AppinstUi/startuplistupdater/tsrc/mt_startuplistupdater/inc/mt_startuplistupdater.h
branchRCL_3
changeset 26 8b7f4e561641
parent 25 7333d7932ef7
child 27 e8965914fac7
equal deleted inserted replaced
25:7333d7932ef7 26:8b7f4e561641
     1 /*
       
     2 * Copyright (c) 2010 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 "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:  Startup list updater test module.
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef MT_STARTUPLISTUPDATER_H
       
    19 #define MT_STARTUPLISTUPDATER_H
       
    20 
       
    21 #include <StifLogger.h>
       
    22 #include <TestScripterInternal.h>
       
    23 #include <StifTestModule.h>
       
    24 #include <TestclassAssert.h>
       
    25 
       
    26 #define TEST_CLASS_VERSION_MAJOR 1
       
    27 #define TEST_CLASS_VERSION_MINOR 0
       
    28 #define TEST_CLASS_VERSION_BUILD 0
       
    29 
       
    30 _LIT( KTestStartupListUpdaterLogPath, "\\logs\\testframework\\mt_startuplistupdater\\" );
       
    31 _LIT( KTestStartupListUpdaterLogFile, "mt_startuplistupdater.txt" );
       
    32 _LIT( KTestStartupListUpdaterLogFileWithTitle, "mt_startuplistupdater_[%S].txt" );
       
    33 
       
    34 
       
    35 class CTestStartupListUpdater : public CScriptBase
       
    36     {
       
    37     public:     // constructors and destructor
       
    38         static CTestStartupListUpdater* NewL( CTestModuleIf& aTestModuleIf );
       
    39         ~CTestStartupListUpdater();
       
    40 
       
    41     private:    // new functions
       
    42         CTestStartupListUpdater( CTestModuleIf& aTestModuleIf );
       
    43         void ConstructL();
       
    44         void SendTestClassVersion();
       
    45         void Delete();
       
    46         void Print( const TInt aPriority, TRefByValue<const TDesC> aFmt, ... );
       
    47 
       
    48     public:     // from CScriptBase
       
    49         TInt RunMethodL( CStifItemParser& aItem );
       
    50 
       
    51     private:    // test methods
       
    52         TInt InstallL( CStifItemParser& aItem );
       
    53         TInt RemoveL( CStifItemParser& aItem );
       
    54         TInt CheckStartListContainsL( CStifItemParser& aItem );
       
    55         TInt CheckStartListDoesNotContainL( CStifItemParser& aItem );
       
    56 
       
    57     private:    // new functions
       
    58         void GetStartupListL( RPointerArray<HBufC>& aStartupList );
       
    59     };
       
    60 
       
    61 #endif      // MT_STARTUPLISTUPDATER_H
       
    62