classicui_plat/custom_cursors_api/tsrc/inc/testdomcustomcursors.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 AknCustomCursorSupport.h
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef C_TESTDOMCUSTOMCURSORS_H
       
    21 #define C_TESTDOMCUSTOMCURSORS_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( KtestdomcustomcursorsLogPath, "\\logs\\testframework\\testdomcustomcursors\\" ); 
       
    36 // Log file
       
    37 _LIT( KtestdomcustomcursorsLogFile, "testdomcustomcursors.txt" ); 
       
    38 _LIT( KtestdomcustomcursorsLogFileWithTitle, "testdomcustomcursors_[%S].txt" );
       
    39 
       
    40 /**
       
    41 *  CTestDOMCustomCursors test class for STIF Test Framework TestScripter.
       
    42 *  @since S60 5.0
       
    43 */
       
    44 NONSHARABLE_CLASS( CTestDOMCustomCursors ) : public CScriptBase
       
    45     {
       
    46 public:  // Constructors and destructor
       
    47 
       
    48     /**
       
    49     * Two-phased constructor.
       
    50     */
       
    51     static CTestDOMCustomCursors* NewL( CTestModuleIf& aTestModuleIf );
       
    52 
       
    53     /**
       
    54     * Destructor.
       
    55     */
       
    56     virtual ~CTestDOMCustomCursors();
       
    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     CTestDOMCustomCursors( 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 AknCustomCursorSupport.h
       
   100 /*                         class AknCustomCursorSupport                  */
       
   101     /**
       
   102      * TestCCSCustomBidiTextCursorId test function for testing the 
       
   103      *     CustomBidiTextCursorId function
       
   104      * @since S60 5.0
       
   105      * @param aItem never used
       
   106      * @return Symbian OS error code.
       
   107      */
       
   108     virtual TInt TestCCSCustomBidiTextCursorId( CStifItemParser& aItem );
       
   109     
       
   110     /**
       
   111      * TestCCSGetBidiTextCursorFromFontSpec test function for testing the 
       
   112      *     GetBidiTextCursorFromFontSpec function
       
   113      * @since S60 5.0
       
   114      * @param aItem never used
       
   115      * @return Symbian OS error code.
       
   116      */
       
   117     virtual TInt TestCCSGetBidiTextCursorFromFontSpec( CStifItemParser& aItem );
       
   118 
       
   119 private:    // Data
       
   120 
       
   121     /**
       
   122      * ScreenSaver Property
       
   123      */
       
   124     TInt iOldScreenSaverProperty;
       
   125 
       
   126     };
       
   127 
       
   128 #endif      // C_TESTDOMCUSTOMCURSORS_H
       
   129 
       
   130 // End of File