classicui_plat/aiw_provider_utility_api/tsrc/inc/testdomaiwpro.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 aiw_provider_utility_api
       
    15  *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 
       
    21 #ifndef C_TESTDOMAIWPRO_H
       
    22 #define C_TESTDOMAIWPRO_H
       
    23 
       
    24 //  INCLUDES
       
    25 #include <stiflogger.h>
       
    26 #include <testscripterinternal.h>
       
    27 #include <stiftestmodule.h>
       
    28 #include <testclassassert.h>
       
    29 #include <coemain.h>
       
    30 #include <coeaui.h>
       
    31 
       
    32 // MACROS
       
    33 #define TEST_CLASS_VERSION_MAJOR 0
       
    34 #define TEST_CLASS_VERSION_MINOR 0
       
    35 #define TEST_CLASS_VERSION_BUILD 0
       
    36 
       
    37 // Logging path
       
    38 _LIT( KtestdomaiwproLogPath, "\\logs\\testframework\\testdomaiwpro\\" );
       
    39 // Log file
       
    40 _LIT( KtestdomaiwproLogFile, "testdomaiwpro.txt" );
       
    41 _LIT( KtestdomaiwproLogFileWithTitle, "testdomaiwpro_[%S].txt" );
       
    42 
       
    43 _LIT( KResourcePath, "C:\\resource\\testdomaiwpro.rsc" );
       
    44 
       
    45 // FORWARD DECLARATIONS
       
    46 class CTestDOMAIWPro;
       
    47 class CAiwMenuPane;
       
    48 
       
    49 /**
       
    50  *  CTestDOMAIWPro test class for STIF Test Framework TestScripter.
       
    51  *
       
    52  *  @since S60 5.0
       
    53  */
       
    54 NONSHARABLE_CLASS( CTestDOMAIWPro ):public CScriptBase
       
    55     {
       
    56 public: // Constructors and destructor
       
    57 
       
    58     /**
       
    59      * Two-phased constructor.
       
    60      */
       
    61     static CTestDOMAIWPro* NewL( CTestModuleIf& aTestModuleIf );
       
    62 
       
    63     /**
       
    64      * Destructor.
       
    65      */
       
    66     virtual ~CTestDOMAIWPro();
       
    67 
       
    68 public: // Functions from base classes
       
    69 
       
    70     /**
       
    71      * From CScriptBase Runs a script line.
       
    72      * @since S60 5.0
       
    73      * @param aItem Script line containing method name and parameters
       
    74      * @return Symbian OS error code
       
    75      */
       
    76     virtual TInt RunMethodL( CStifItemParser& aItem );
       
    77 
       
    78 private:
       
    79 
       
    80     /**
       
    81      * C++ default constructor.
       
    82      */
       
    83     CTestDOMAIWPro( CTestModuleIf& aTestModuleIf );
       
    84 
       
    85     /**
       
    86      * By default Symbian 2nd phase constructor is private.
       
    87      */
       
    88     void ConstructL();
       
    89 
       
    90     /**
       
    91      * Frees all resources allocated from test methods.
       
    92      * @since S60 5.0
       
    93      */
       
    94     void Delete();
       
    95 
       
    96     /**
       
    97      * Method used to log version of test class
       
    98      */
       
    99     void SendTestClassVersion();
       
   100 
       
   101     /**
       
   102      * Turn off ScreenSaver
       
   103      * @since S60 5.0
       
   104      * @return Symbian OS error code.
       
   105      */
       
   106     void TurnOffScreenSaver();
       
   107     
       
   108     /**
       
   109      * Restore ScreenSaver
       
   110      * @since S60 5.0
       
   111      * @return Symbian OS error code.
       
   112      */
       
   113     void RestoreScreenSaver();
       
   114 
       
   115     //[TestMethods]
       
   116 
       
   117 private: // Test AiwMenu.h
       
   118     /**
       
   119      * TestAMConstructor test function for testing the Constructor function
       
   120      * @since S60 5.0
       
   121      * @param aItem never used
       
   122      * @return Symbian OS error code.
       
   123      */
       
   124     virtual TInt TestAMConstructorL( CStifItemParser& /*aItem*/ );
       
   125 
       
   126     /**
       
   127      * TestAMAddMenuItemL test function for testing the AddMenuItemL function
       
   128      * @since S60 5.0
       
   129      * @param aItem never used
       
   130      * @return Symbian OS error code.
       
   131      */
       
   132     virtual TInt TestAMAddMenuItemL( CStifItemParser& /*aItem*/ );
       
   133 
       
   134     /**
       
   135      * TestAMAddMenuItemLTextL test function for testing the AddMenuItemL function
       
   136      * @since S60 5.0
       
   137      * @param aItem never used
       
   138      * @return Symbian OS error code.
       
   139      */
       
   140     virtual TInt TestAMAddMenuItemLTextL( CStifItemParser& /*aItem*/ );
       
   141 
       
   142     /**
       
   143      * TestAMAddMenuItemsL test function for testing the AddMenuItemsL function
       
   144      * @since S60 5.0
       
   145      * @param aItem never used
       
   146      * @return Symbian OS error code.
       
   147      */
       
   148     virtual TInt TestAMAddMenuItemsL( CStifItemParser& /*aItem*/ );
       
   149 
       
   150     /**
       
   151      * TestAMAddMenuItemsLFileNameL test function for testing the AddMenuItemsL function
       
   152      * @since S60 5.0
       
   153      * @param aItem never used
       
   154      * @return Symbian OS error code.
       
   155      */
       
   156     virtual TInt TestAMAddMenuItemsLFileNameL( CStifItemParser& /*aItem*/ );
       
   157 
       
   158     /**
       
   159      * TestAMMenuCmdIdL test function for testing the MenuCmdId function
       
   160      * @since S60 5.0
       
   161      * @param aItem never used
       
   162      * @return Symbian OS error code.
       
   163      */
       
   164     virtual TInt TestAMMenuCmdIdL( CStifItemParser& /*aItem*/ );
       
   165 
       
   166     /**
       
   167      * TestAMDynCmdIdL test function for testing the DynCmdId function
       
   168      * @since S60 5.0
       
   169      * @param aItem never used
       
   170      * @return Symbian OS error code.
       
   171      */
       
   172     virtual TInt TestAMDynCmdIdL( CStifItemParser& /*aItem*/ );
       
   173 
       
   174     /**
       
   175      * TestAMServiceCmdIdL test function for testing the ServiceCmdId function
       
   176      * @since S60 5.0
       
   177      * @param aItem never used
       
   178      * @return Symbian OS error code.
       
   179      */
       
   180     virtual TInt TestAMServiceCmdIdL( CStifItemParser& /*aItem*/ );
       
   181 
       
   182     /**
       
   183      * TestAMAddTitleItemL test function for testing the AddTitleItemL function
       
   184      * @since S60 5.0
       
   185      * @param aItem never used
       
   186      * @return Symbian OS error code.
       
   187      */
       
   188     virtual TInt TestAMAddTitleItemL( CStifItemParser& /*aItem*/ );
       
   189 
       
   190 private: // Data
       
   191 
       
   192     /**
       
   193      * ScreenSaver Property
       
   194      */
       
   195     TInt iOldScreenSaverProperty;
       
   196     
       
   197     // Resource file offset
       
   198     TInt iOffset;
       
   199     };
       
   200 
       
   201 #endif      // C_TESTDOMAIWPRO_H
       
   202 // End of File