inputmethods_pub/optical_character_recognition_api/tsrc/inc/testsdkocrecognition.h
changeset 0 eb1f2e154e89
equal deleted inserted replaced
-1:000000000000 0:eb1f2e154e89
       
     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 ocrsrv.h
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef C_TESTSDKOCRECOGNITION_H
       
    21 #define C_TESTSDKOCRECOGNITION_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( KtestsdkocrecognitionLogPath, "\\logs\\testframework\\testsdkocrecognition\\" ); 
       
    36 // Log file
       
    37 _LIT( KtestsdkocrecognitionLogFile, "testsdkocrecognition.txt" ); 
       
    38 _LIT( KtestsdkocrecognitionLogFileWithTitle, "testsdkocrecognition_[%S].txt" );
       
    39 
       
    40 /**
       
    41 *  CTestSDKOCRecognition test class for STIF Test Framework TestScripter.
       
    42 *  @since S60 5.0
       
    43 */
       
    44 NONSHARABLE_CLASS( CTestSDKOCRecognition ) : public CScriptBase
       
    45     {
       
    46 public:  // Constructors and destructor
       
    47 
       
    48     /**
       
    49     * Two-phased constructor.
       
    50     */
       
    51     static CTestSDKOCRecognition* NewL( CTestModuleIf& aTestModuleIf );
       
    52 
       
    53     /**
       
    54     * Destructor.
       
    55     */
       
    56     virtual ~CTestSDKOCRecognition();
       
    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     CTestSDKOCRecognition( 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: // Test ocrsrv.h
       
   100 /*                               class OCREngineFactory                       */
       
   101     /**
       
   102      * TestORCCreateOCREngineL test function for testing the 
       
   103      *     CreateOCREngineL function
       
   104      * @since S60 5.0
       
   105      * @param aItem never used
       
   106      * @return Symbian OS error code.
       
   107      */
       
   108     virtual TInt TestORCCreateOCREngineL( CStifItemParser& aItem );
       
   109     
       
   110     /**
       
   111      * TestORCReleaseOCREngineL test function for testing the 
       
   112      *     ReleaseOCREngine function
       
   113      * @since S60 5.0
       
   114      * @param aItem never used
       
   115      * @return Symbian OS error code.
       
   116      */
       
   117     virtual TInt TestORCReleaseOCREngineL( CStifItemParser& aItem );
       
   118 
       
   119 private:    // Data
       
   120 
       
   121     /**
       
   122      * ScreenSaver Property
       
   123      */
       
   124     TInt iOldScreenSaverProperty;
       
   125 
       
   126     };
       
   127 
       
   128 #endif      // C_TESTSDKOCRECOGNITION_H
       
   129 
       
   130 // End of File