inputmethods/inc/InputMethodSmokeTestModule.h
branchSymbian2
changeset 1 8758140453c0
child 6 c108117318cb
equal deleted inserted replaced
0:e8c1ea2c6496 1:8758140453c0
       
     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 the License "Symbian Foundation License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.symbianfoundation.org/legal/sfl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 * 
       
    14 * Description: STIF testclass declaration
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef INPUTMETHODSMOKETESTMODULE_H
       
    19 #define INPUTMETHODSMOKETESTMODULE_H
       
    20 
       
    21 //  INCLUDES
       
    22 #include <StifLogger.h>
       
    23 #include <TestScripterInternal.h>
       
    24 #include <StifTestModule.h>
       
    25 #include <TestclassAssert.h>
       
    26 
       
    27 // CONSTANTS
       
    28 //const ?type ?constant_var = ?constant;
       
    29 
       
    30 // MACROS
       
    31 //#define ?macro ?macro_def
       
    32 #define TEST_CLASS_VERSION_MAJOR 0
       
    33 #define TEST_CLASS_VERSION_MINOR 0
       
    34 #define TEST_CLASS_VERSION_BUILD 0
       
    35 
       
    36 // Logging path
       
    37 _LIT( KInputMethodSmokeTestModuleLogPath, "\\logs\\testframework\\InputMethodSmokeTestModule\\" ); 
       
    38 // Log file
       
    39 _LIT( KInputMethodSmokeTestModuleLogFile, "InputMethodSmokeTestModule.txt" ); 
       
    40 _LIT( KInputMethodSmokeTestModuleLogFileWithTitle, "InputMethodSmokeTestModule_[%S].txt" );
       
    41 
       
    42 // FUNCTION PROTOTYPES
       
    43 //?type ?function_name(?arg_list);
       
    44 
       
    45 // FORWARD DECLARATIONS
       
    46 //class ?FORWARD_CLASSNAME;
       
    47 class CInputMethodSmokeTestModule;
       
    48 class CPtiEngine;
       
    49 
       
    50 // DATA TYPES
       
    51 //enum ?declaration
       
    52 //typedef ?declaration
       
    53 //extern ?data_type;
       
    54 
       
    55 // CLASS DECLARATION
       
    56 
       
    57 /**
       
    58 *  CInputMethodSmokeTestModule test class for STIF Test Framework TestScripter.
       
    59 *  ?other_description_lines
       
    60 *
       
    61 *  @lib ?library
       
    62 *  @since ?Series60_version
       
    63 */
       
    64 NONSHARABLE_CLASS(CInputMethodSmokeTestModule) : public CScriptBase
       
    65     {
       
    66     public:  // Constructors and destructor
       
    67 
       
    68         /**
       
    69         * Two-phased constructor.
       
    70         */
       
    71         static CInputMethodSmokeTestModule* NewL( CTestModuleIf& aTestModuleIf );
       
    72 
       
    73         /**
       
    74         * Destructor.
       
    75         */
       
    76         virtual ~CInputMethodSmokeTestModule();
       
    77 
       
    78     public: // New functions
       
    79 
       
    80         /**
       
    81         * ?member_description.
       
    82         * @since ?Series60_version
       
    83         * @param ?arg1 ?description
       
    84         * @return ?description
       
    85         */
       
    86         //?type ?member_function( ?type ?arg1 );
       
    87 
       
    88     public: // Functions from base classes
       
    89 
       
    90         /**
       
    91         * From CScriptBase Runs a script line.
       
    92         * @since ?Series60_version
       
    93         * @param aItem Script line containing method name and parameters
       
    94         * @return Symbian OS error code
       
    95         */
       
    96         virtual TInt RunMethodL( CStifItemParser& aItem );
       
    97 
       
    98     protected:  // New functions
       
    99 
       
   100         /**
       
   101         * ?member_description.
       
   102         * @since ?Series60_version
       
   103         * @param ?arg1 ?description
       
   104         * @return ?description
       
   105         */
       
   106         //?type ?member_function( ?type ?arg1 );
       
   107 
       
   108     protected:  // Functions from base classes
       
   109 
       
   110         /**
       
   111         * From ?base_class ?member_description
       
   112         */
       
   113         //?type ?member_function();
       
   114 
       
   115     private:
       
   116 
       
   117         /**
       
   118         * C++ default constructor.
       
   119         */
       
   120         CInputMethodSmokeTestModule( CTestModuleIf& aTestModuleIf );
       
   121 
       
   122         /**
       
   123         * By default Symbian 2nd phase constructor is private.
       
   124         */
       
   125         void ConstructL();
       
   126 
       
   127         // Prohibit copy constructor if not deriving from CBase.
       
   128         // ?classname( const ?classname& );
       
   129         // Prohibit assigment operator if not deriving from CBase.
       
   130         // ?classname& operator=( const ?classname& );
       
   131 
       
   132         /**
       
   133         * Frees all resources allocated from test methods.
       
   134         * @since ?Series60_version
       
   135         */
       
   136         void Delete();
       
   137 
       
   138         /**
       
   139         * Test methods are listed below. 
       
   140         */
       
   141 
       
   142         /**
       
   143         * CreateOcrEngine test method.
       
   144         * @since ?Series60_version
       
   145         * @param aItem Script line containing parameters.
       
   146         * @return Symbian OS error code.
       
   147         */
       
   148         virtual TInt CreateOcrEngineL( CStifItemParser& aItem );
       
   149         
       
   150         /**
       
   151         * CreatePtiEngine test method.
       
   152         * @since ?Series60_version
       
   153         * @param aItem Script line containing parameters.
       
   154         * @return Symbian OS error code.
       
   155         */
       
   156         virtual TInt CreatePtiEngineL( CStifItemParser& aItem );
       
   157 
       
   158         /**
       
   159         * CreatePtiEngine test method.
       
   160         * @since ?Series60_version
       
   161         * @param aItem Script line containing parameters.
       
   162         * @return Symbian OS error code.
       
   163         */
       
   164         virtual TInt CreatePtiDictionaryL( CStifItemParser& aItem );
       
   165 
       
   166         /**
       
   167         * CreatePtiEngine test method.
       
   168         * @since ?Series60_version
       
   169         * @param aItem Script line containing parameters.
       
   170         * @return Symbian OS error code.
       
   171         */
       
   172         virtual TInt MultitapWordL( CStifItemParser& aItem );
       
   173         
       
   174         void PtiEngSimulateInput(CPtiEngine* aEngine, const TDesC& aKeys);
       
   175         
       
   176         /**
       
   177          * Method used to log version of test class
       
   178          */
       
   179         void SendTestClassVersion();
       
   180 
       
   181         //ADD NEW METHOD DEC HERE
       
   182         //[TestMethods] - Do not remove
       
   183 
       
   184     public:     // Data
       
   185         // ?one_line_short_description_of_data
       
   186         //?data_declaration;
       
   187 
       
   188     protected:  // Data
       
   189         // ?one_line_short_description_of_data
       
   190         //?data_declaration;
       
   191 
       
   192     private:    // Data
       
   193         
       
   194         // ?one_line_short_description_of_data
       
   195         //?data_declaration;
       
   196 
       
   197         // Reserved pointer for future extension
       
   198         //TAny* iReserved;
       
   199 
       
   200     public:     // Friend classes
       
   201         //?friend_class_declaration;
       
   202     protected:  // Friend classes
       
   203         //?friend_class_declaration;
       
   204     private:    // Friend classes
       
   205         //?friend_class_declaration;
       
   206 
       
   207     };
       
   208 
       
   209 #endif      // INPUTMETHODSMOKETESTMODULE_H
       
   210 
       
   211 // End of File