classicui_plat/initialization_api/tsrc/inc/testsdkinitialization.h
changeset 45 667edd0b8678
equal deleted inserted replaced
37:89c890c70182 45:667edd0b8678
       
     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 EIKCOLIB.H EIKCTLIB.H
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef C_TESTSDKINITIALIZATION_H
       
    21 #define C_TESTSDKINITIALIZATION_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( KtestsdkinitializationLogPath, "\\logs\\testframework\\testsdkinitialization\\" ); 
       
    36 // Log file
       
    37 _LIT( KtestsdkinitializationLogFile, "testsdkinitialization.txt" ); 
       
    38 _LIT( KtestsdkinitializationLogFileWithTitle, "testsdkinitialization_[%S].txt" );
       
    39 
       
    40 /**
       
    41 *  CTestSDKInitialization test class for STIF Test Framework TestScripter.
       
    42 *  @since S60 5.0
       
    43 */
       
    44 NONSHARABLE_CLASS( CTestSDKInitialization ) : public CScriptBase
       
    45     {
       
    46 public:  // Constructors and destructor
       
    47 
       
    48     /**
       
    49     * Two-phased constructor.
       
    50     */
       
    51     static CTestSDKInitialization* NewL( CTestModuleIf& aTestModuleIf );
       
    52 
       
    53     /**
       
    54     * Destructor.
       
    55     */
       
    56     virtual ~CTestSDKInitialization();
       
    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     CTestSDKInitialization( 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 private: // Test EIKCOLIB.H
       
    86 /*                                class CEikCoCtlLibrary                     */
       
    87     /**
       
    88      * TestCCLResourceFileL test function for testing the 
       
    89      *     ResourceFile function
       
    90      * @since S60 5.0
       
    91      * @param aItem never used
       
    92      * @return Symbian OS error code.
       
    93      */
       
    94     virtual TInt TestCCLResourceFile( CStifItemParser& aItem );
       
    95     
       
    96     /**
       
    97      * TestCCLControlFactory test function for testing the 
       
    98      *     ControlFactory function
       
    99      * @since S60 5.0
       
   100      * @param aItem never used
       
   101      * @return Symbian OS error code.
       
   102      */
       
   103     virtual TInt TestCCLControlFactory( CStifItemParser& aItem );
       
   104     
       
   105     /**
       
   106      * TestCCLButtonGroupFactory test function for testing the 
       
   107      *     ButtonGroupFactory function
       
   108      * @since S60 5.0
       
   109      * @param aItem never used
       
   110      * @return Symbian OS error code.
       
   111      */
       
   112     virtual TInt TestCCLButtonGroupFactory( CStifItemParser& aItem );
       
   113     
       
   114     /**
       
   115      * TestAUFCEikAppUiFactoryL test function for testing the 
       
   116      *     CEikAppUiFactory function
       
   117      * @since S60 5.0
       
   118      * @param aItem never used
       
   119      * @return Symbian OS error code.
       
   120      */
       
   121     virtual TInt TestAUFCEikAppUiFactoryL( CStifItemParser& aItem );
       
   122     
       
   123     /**
       
   124      * TestAUFTouchPaneL test function for testing the 
       
   125      *     TouchPane function
       
   126      * @since S60 5.0
       
   127      * @param aItem never used
       
   128      * @return Symbian OS error code.
       
   129      */
       
   130     virtual TInt TestAUFTouchPaneL( CStifItemParser& aItem );
       
   131     
       
   132     /**
       
   133      * TestAUFPopupToolbarL test function for testing the 
       
   134      *     PopupToolbar function
       
   135      * @since S60 5.0
       
   136      * @param aItem never used
       
   137      * @return Symbian OS error code.
       
   138      */
       
   139     virtual TInt TestAUFPopupToolbarL( CStifItemParser& aItem );
       
   140     
       
   141     /**
       
   142      * TestAUFCurrentPopupToolbarL test function for testing the 
       
   143      *     CurrentPopupToolbar function
       
   144      * @since S60 5.0
       
   145      * @param aItem never used
       
   146      * @return Symbian OS error code.
       
   147      */
       
   148     virtual TInt TestAUFCurrentPopupToolbarL( CStifItemParser& aItem );
       
   149     
       
   150     /**
       
   151      * TestAUFSetViewPopupToolbarL test function for testing the 
       
   152      *     SetViewPopupToolbar function
       
   153      * @since S60 5.0
       
   154      * @param aItem never used
       
   155      * @return Symbian OS error code.
       
   156      */
       
   157     virtual TInt TestAUFSetViewPopupToolbarL( CStifItemParser& aItem );
       
   158     
       
   159     /**
       
   160      * TestAUFCurrentFixedToolbarL test function for testing the 
       
   161      *     CurrentFixedToolbar function
       
   162      * @since S60 5.0
       
   163      * @param aItem never used
       
   164      * @return Symbian OS error code.
       
   165      */
       
   166     virtual TInt TestAUFCurrentFixedToolbarL( CStifItemParser& aItem );
       
   167     
       
   168     /**
       
   169      * TestAUFSetViewFixedToolbarL test function for testing the 
       
   170      *     SetViewFixedToolbar function
       
   171      * @since S60 5.0
       
   172      * @param aItem never used
       
   173      * @return Symbian OS error code.
       
   174      */
       
   175     virtual TInt TestAUFSetViewFixedToolbarL( CStifItemParser& aItem );
       
   176     
       
   177     /**
       
   178      * TestCLResourceFile test function for testing the 
       
   179      *     ResourceFile function
       
   180      * @since S60 5.0
       
   181      * @param aItem never used
       
   182      * @return Symbian OS error code.
       
   183      */
       
   184     virtual TInt TestCLResourceFile( CStifItemParser& aItem );
       
   185     
       
   186     /**
       
   187      * TestCLControlFactory test function for testing the 
       
   188      *     ControlFactory function
       
   189      * @since S60 5.0
       
   190      * @param aItem never used
       
   191      * @return Symbian OS error code.
       
   192      */
       
   193     virtual TInt TestCLControlFactory( CStifItemParser& aItem );
       
   194     
       
   195     /**
       
   196      * TestCLInitializeL test function for testing the 
       
   197      *     InitializeL function
       
   198      * @since S60 5.0
       
   199      * @param aItem never used
       
   200      * @return Symbian OS error code.
       
   201      */
       
   202     virtual TInt TestCLInitializeL( CStifItemParser& aItem );
       
   203     
       
   204     /**
       
   205      * TestCLButtonGroupFactory test function for testing the 
       
   206      *     ButtonGroupFactory function
       
   207      * @since S60 5.0
       
   208      * @param aItem never used
       
   209      * @return Symbian OS error code.
       
   210      */
       
   211     virtual TInt TestCLButtonGroupFactory( CStifItemParser& aItem );
       
   212 
       
   213 private:    // Data
       
   214 
       
   215     /**
       
   216      * ScreenSaver Property
       
   217      */
       
   218     TInt iOldScreenSaverProperty;
       
   219 
       
   220     };
       
   221 
       
   222 #endif      // C_TESTSDKINITIALIZATION_H
       
   223 
       
   224 // End of File