uiresources_plat/graphic_configuration_api/tsrc/inc/testdomgraphiccfg.h
changeset 0 05e9090e2422
child 42 2398a337fa76
equal deleted inserted replaced
-1:000000000000 0:05e9090e2422
       
     1 /*
       
     2 * Copyright (c) 2002 - 2007 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:  test funtions for graphic_configuration_api
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef C_TESTDOMGRAPHICCFG_H
       
    21 #define C_TESTDOMGRAPHICCFG_H
       
    22 
       
    23 //  INCLUDES
       
    24 #include <stiflogger.h>
       
    25 #include <testscripterinternal.h>
       
    26 #include <stiftestmodule.h>
       
    27 #include <testclassassert.h>
       
    28 
       
    29 // MACROS
       
    30 #define TEST_CLASS_VERSION_MAJOR 0
       
    31 #define TEST_CLASS_VERSION_MINOR 0
       
    32 #define TEST_CLASS_VERSION_BUILD 0
       
    33 
       
    34 // Logging path
       
    35 _LIT( KtestdomgraphiccfgLogPath, "\\logs\\testframework\\testdomgraphiccfg\\" ); 
       
    36 // Log file
       
    37 _LIT( KtestdomgraphiccfgLogFile, "testdomgraphiccfg.txt" ); 
       
    38 _LIT( KtestdomgraphiccfgLogFileWithTitle, "testdomgraphiccfg_[%S].txt" );
       
    39 
       
    40 /**
       
    41 *  CTestDomGraphicCfg test class for STIF Test Framework TestScripter.
       
    42 *  @since S60 5.0
       
    43 */
       
    44 NONSHARABLE_CLASS( CTestDomGraphicCfg ) : public CScriptBase
       
    45     {
       
    46 public:  // Constructors and destructor
       
    47 
       
    48     /**
       
    49     * Two-phased constructor.
       
    50     */
       
    51     static CTestDomGraphicCfg* NewL( CTestModuleIf& aTestModuleIf );
       
    52 
       
    53     /**
       
    54     * Destructor.
       
    55     */
       
    56     virtual ~CTestDomGraphicCfg();
       
    57 
       
    58 public: // Functions from base classes
       
    59 
       
    60     /**
       
    61     * From CScriptBase Runs a script line.
       
    62     * @since S60 5.0
       
    63     * @param aItem Script line containing method name and parameters
       
    64     * @return Symbian OS error code
       
    65     */
       
    66     virtual TInt RunMethodL( CStifItemParser& aItem );
       
    67 
       
    68 private:
       
    69 
       
    70     /**
       
    71     * C++ default constructor.
       
    72     */
       
    73     CTestDomGraphicCfg( CTestModuleIf& aTestModuleIf );
       
    74 
       
    75     /**
       
    76     * By default Symbian 2nd phase constructor is private.
       
    77     */
       
    78     void ConstructL();
       
    79     
       
    80     /**
       
    81      * Method used to log version of test class
       
    82      */
       
    83     void SendTestClassVersion();
       
    84     
       
    85     /**
       
    86      * Turn off ScreenSaver
       
    87      * @since S60 5.0
       
    88      * @return Symbian OS error code.
       
    89      */
       
    90     void TurnOffScreenSaver();
       
    91 
       
    92     /**
       
    93      * Restore ScreenSaver
       
    94      * @since S60 5.0
       
    95      * @return Symbian OS error code.
       
    96      */
       
    97     void RestoreScreenSaver();
       
    98 
       
    99 private: // [TestMethods]
       
   100     /**
       
   101     * TestAICPreferredDisplayMode tests PreferredDisplayMode
       
   102     * of AknIconConfig in akniconconfig.h.
       
   103     * @since S60 5.0
       
   104     * @param aItem is not used.
       
   105     * @return Symbian OS error code.
       
   106     */
       
   107     virtual TInt TestAICPreferredDisplayMode( CStifItemParser& aItem );
       
   108 
       
   109     /**
       
   110     * TestAICCompressIfPreferredL tests CompressIfPreferred
       
   111     * of AknIconConfig in akniconconfig.h.
       
   112     * @since S60 5.0
       
   113     * @param aItem is not used.
       
   114     * @return Symbian OS error code.
       
   115     */
       
   116     virtual TInt TestAICCompressIfPreferredL( CStifItemParser& aItem );
       
   117 
       
   118     /**
       
   119     * TestAICCompressIfPreferredWithMaskL tests CompressIfPreferred
       
   120     * of AknIconConfig in akniconconfig.h.
       
   121     * @since S60 5.0
       
   122     * @param aItem is not used.
       
   123     * @return Symbian OS error code.
       
   124     */
       
   125     virtual TInt TestAICCompressIfPreferredWithMaskL( CStifItemParser& aItem );
       
   126 
       
   127     /**
       
   128     * TestAICEnableAknIconSrvCache tests EnableAknIconSrvCache
       
   129     * of AknIconConfig in akniconconfig.h.
       
   130     * @since S60 5.0
       
   131     * @param aItem is not used.
       
   132     * @return Symbian OS error code.
       
   133     */
       
   134     virtual TInt TestAICEnableAknIconSrvCache( CStifItemParser& aItem );
       
   135 
       
   136 private:    // Data
       
   137 
       
   138     /**
       
   139      * ScreenSaver Property
       
   140      */
       
   141     TInt iOldScreenSaverProperty;
       
   142     
       
   143     };
       
   144 
       
   145 #endif      // C_TESTDOMGRAPHICCFG_H
       
   146 
       
   147 // End of File