classicui_plat/indicator_plugin_api/tsrc/inc/testdomindiplugin.h
changeset 0 2f259fa3e83a
child 14 3320e4e6e8bb
equal deleted inserted replaced
-1:000000000000 0:2f259fa3e83a
       
     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 aknindicatorplugin.h
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef C_TESTDOMINDIPLUGIN_H
       
    21 #define C_TESTDOMINDIPLUGIN_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( KtestdomindipluginLogPath, "\\logs\\testframework\\testdomindiplugin\\" ); 
       
    36 // Log file
       
    37 _LIT( KtestdomindipluginLogFile, "testdomindiplugin.txt" ); 
       
    38 _LIT( KtestdomindipluginLogFileWithTitle, "testdomindiplugin_[%S].txt" );
       
    39 
       
    40 /**
       
    41 *  CTestDOMIndiPlugin test class for STIF Test Framework TestScripter.
       
    42 *  @since S60 5.0
       
    43 */
       
    44 NONSHARABLE_CLASS( CTestDOMIndiPlugin ) : public CScriptBase
       
    45     {
       
    46 public:  // Constructors and destructor
       
    47 
       
    48     /**
       
    49     * Two-phased constructor.
       
    50     */
       
    51     static CTestDOMIndiPlugin* NewL( CTestModuleIf& aTestModuleIf );
       
    52 
       
    53     /**
       
    54     * Destructor.
       
    55     */
       
    56     virtual ~CTestDOMIndiPlugin();
       
    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     CTestDOMIndiPlugin( 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     /**
       
   102     * test NewL method.
       
   103     * @since S60 5.0
       
   104     * @param aItem never used.
       
   105     * @return Symbian OS error code.
       
   106     */
       
   107     virtual TInt TestNewL( CStifItemParser& aItem );
       
   108 
       
   109     /**
       
   110     * test TextL method.
       
   111     * @since S60 5.0
       
   112     * @param aItem never used.
       
   113     * @return Symbian OS error code.
       
   114     */
       
   115     virtual TInt TestTextL( CStifItemParser& aItem );
       
   116 
       
   117     /**
       
   118     * test IconL method.
       
   119     * @since S60 5.0
       
   120     * @param aItem never used.
       
   121     * @return Symbian OS error code.
       
   122     */
       
   123     virtual TInt TestIconL( CStifItemParser& aItem );
       
   124 
       
   125     /**
       
   126     * test UpdateL method.
       
   127     * @since S60 5.0
       
   128     * @param aItem never used.
       
   129     * @return Symbian OS error code.
       
   130     */
       
   131     virtual TInt TestUpdateL( CStifItemParser& aItem );
       
   132 
       
   133 private:    // Data
       
   134 
       
   135     /**
       
   136      * ScreenSaver Property
       
   137      */
       
   138     TInt iOldScreenSaverProperty;
       
   139 
       
   140     };
       
   141 
       
   142 #endif      // C_TESTDOMINDIPLUGIN_H
       
   143 
       
   144 // End of File