homescreensrv_plat/menu_sat_interface_api/tsrc/inc/menusatinterfacetest.h
changeset 0 79c6a41cd166
equal deleted inserted replaced
-1:000000000000 0:79c6a41cd166
       
     1 /*
       
     2 * Copyright (c) 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 "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:
       
    15 *
       
    16 */
       
    17 #ifndef TESTCLASS_H
       
    18 #define TESTCLASS_H
       
    19 
       
    20 //  INCLUDES
       
    21 #include <StifParser.h>
       
    22 #include <Stiftestinterface.h>
       
    23 #include <StifLogger.h>
       
    24 #include <TestScripterInternal.h>
       
    25 #include <StifTestModule.h>
       
    26 #include <e32property.h>
       
    27 
       
    28 
       
    29 #include <mcsdef.h>
       
    30 
       
    31 // CLASS DECLARATION
       
    32 
       
    33 /**
       
    34 *  CMenuSatInterfaceTest test class for STIF Test Framework TestScripter.
       
    35 *  Class for testing CMenuSATInterface.
       
    36 *
       
    37 *  @lib ?library
       
    38 *  @since ?Series60_version
       
    39 */
       
    40 NONSHARABLE_CLASS(CMenuSatInterfaceTest) : public CScriptBase
       
    41     {
       
    42     public:  // Constructors and destructor
       
    43         
       
    44         /**
       
    45         * Two-phased constructor.
       
    46         */
       
    47         static CMenuSatInterfaceTest* NewL( CTestModuleIf& aTestModuleIf );
       
    48        
       
    49         /**
       
    50         * Destructor.
       
    51         */
       
    52         virtual ~CMenuSatInterfaceTest();
       
    53 
       
    54     public: // Functions from base classes
       
    55 
       
    56         /**
       
    57         * From CScriptBase Runs a script line.
       
    58         * @since ?Series60_version
       
    59         * @param aItem Script line containing method name and parameters
       
    60         * @return Symbian OS error code
       
    61         */
       
    62         virtual TInt RunMethodL( CStifItemParser& aItem );
       
    63                 
       
    64     private:
       
    65 
       
    66         /**
       
    67         * C++ default constructor.
       
    68         */
       
    69         CMenuSatInterfaceTest( CTestModuleIf& aTestModuleIf );
       
    70 
       
    71         /**
       
    72         * By default Symbian 2nd phase constructor is private.
       
    73         */
       
    74         void ConstructL();
       
    75         
       
    76         /**
       
    77         * Test methods are listed below. 
       
    78         */
       
    79         TInt Test_SatUiVisibleL(CStifItemParser& /*aItem*/ );
       
    80         TInt Test_SatUiVisibleIconIdL(CStifItemParser& /*aItem*/ );
       
    81         TInt Test_SatInterfaceConstructL(CStifItemParser& /*aItem*/ );
       
    82         
       
    83         /**
       
    84         * Utility methods are listed below. 
       
    85         */
       
    86         void WaitL(TInt aMicroSec);
       
    87         
       
    88     private:    // Data
       
    89         /**
       
    90         * Data tosave enviroment statebefore testing. 
       
    91         */
       
    92     	TInt iIconId;
       
    93         
       
    94     };
       
    95 
       
    96 #endif      // TESTCLASS_H
       
    97             
       
    98 // End of File