classicui_pub/animation_api/tsrc/inc/testsdkanimation.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 AknBitmapAnimation.h
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef C_TESTSDKANIMATION_H
       
    21 #define C_TESTSDKANIMATION_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( KtestsdkanimationLogPath, "\\logs\\testframework\\testsdkanimation\\" ); 
       
    36 // Log file
       
    37 _LIT( KtestsdkanimationLogFile, "testsdkanimation.txt" ); 
       
    38 _LIT( KtestsdkanimationLogFileWithTitle, "testsdkanimation_[%S].txt" );
       
    39 
       
    40 // FORWARD DECLARATIONS
       
    41 class CTestSDKAnimation;
       
    42 
       
    43 /**
       
    44 *  CTestSDKAnimation test class for STIF Test Framework TestScripter.
       
    45 *  @since S60 5.0
       
    46 */
       
    47 NONSHARABLE_CLASS(CTestSDKAnimation) : public CScriptBase
       
    48     {
       
    49 public:  // Constructors and destructor
       
    50 
       
    51     /**
       
    52     * Two-phased constructor.
       
    53     */
       
    54     static CTestSDKAnimation* NewL( CTestModuleIf& aTestModuleIf );
       
    55 
       
    56     /**
       
    57     * Destructor.
       
    58     */
       
    59     virtual ~CTestSDKAnimation();
       
    60 
       
    61 public: // Functions from base classes
       
    62 
       
    63     /**
       
    64     * From CScriptBase Runs a script line.
       
    65     * @since S60 5.0
       
    66     * @param aItem Script line containing method name and parameters
       
    67     * @return Symbian OS error code
       
    68     */
       
    69     virtual TInt RunMethodL( CStifItemParser& aItem );
       
    70 
       
    71 private:
       
    72 
       
    73     /**
       
    74     * C++ default constructor.
       
    75     */
       
    76     CTestSDKAnimation( CTestModuleIf& aTestModuleIf );
       
    77 
       
    78     /**
       
    79     * By default Symbian 2nd phase constructor is private.
       
    80     */
       
    81     void ConstructL();
       
    82 
       
    83     /**
       
    84     * Frees all resources allocated from test methods.
       
    85     * @since S60 5.0
       
    86     */
       
    87     void Delete();
       
    88     
       
    89     /**
       
    90      * Method used to log version of test class
       
    91      */
       
    92     void SendTestClassVersion();
       
    93     
       
    94         /**
       
    95      * Turn off ScreenSaver
       
    96      * @since S60 5.0
       
    97      * @return Symbian OS error code.
       
    98      */
       
    99     void TurnOffScreenSaver();
       
   100 
       
   101     /**
       
   102      * Restore ScreenSaver
       
   103      * @since S60 5.0
       
   104      * @return Symbian OS error code.
       
   105      */
       
   106     void RestoreScreenSaver();
       
   107 
       
   108 private: // Test AknBitmapAnimation.h
       
   109 /*                               class CAknBitmapAnimation                  */
       
   110     /**
       
   111      * TestBANewL test function for testing the 
       
   112      *     NewL function
       
   113      * @since S60 5.0
       
   114      * @param aItem never used
       
   115      * @return Symbian OS error code.
       
   116      */
       
   117     virtual TInt TestBANewL( CStifItemParser& aItem );
       
   118     
       
   119     /**
       
   120      * TestBADeconstructorL test function for testing the 
       
   121      *     DeconstructorL function
       
   122      * @since S60 5.0
       
   123      * @param aItem never used
       
   124      * @return Symbian OS error code.
       
   125      */
       
   126     virtual TInt TestBADeconstructorL( CStifItemParser& aItem );
       
   127     
       
   128     /**
       
   129      * TestBAAnimationL test function for testing the 
       
   130      *     Animation function
       
   131      * @since S60 5.0
       
   132      * @param aItem never used
       
   133      * @return Symbian OS error code.
       
   134      */
       
   135     virtual TInt TestBAAnimationL( CStifItemParser& aItem );
       
   136     
       
   137     /**
       
   138      * TestBABitmapAnimDataL test function for testing the 
       
   139      *     BitmapAnimData function
       
   140      * @since S60 5.0
       
   141      * @param aItem never used
       
   142      * @return Symbian OS error code.
       
   143      */
       
   144     virtual TInt TestBABitmapAnimDataL( CStifItemParser& aItem );
       
   145     
       
   146     /**
       
   147      * TestBACancelAnimationL test function for testing the 
       
   148      *     CancelAnimation function
       
   149      * @since S60 5.0
       
   150      * @param aItem never used
       
   151      * @return Symbian OS error code.
       
   152      */
       
   153     virtual TInt TestBACancelAnimationL( CStifItemParser& aItem );
       
   154     
       
   155     /**
       
   156      * TestBASetFrameIndexL test function for testing the 
       
   157      *     SetFrameIndexL function
       
   158      * @since S60 5.0
       
   159      * @param aItem never used
       
   160      * @return Symbian OS error code.
       
   161      */
       
   162     virtual TInt TestBASetFrameIndexL( CStifItemParser& aItem );
       
   163     
       
   164     /**
       
   165      * TestBASetFrameIntervalL test function for testing the 
       
   166      *     SetFrameIntervalL function
       
   167      * @since S60 5.0
       
   168      * @param aItem never used
       
   169      * @return Symbian OS error code.
       
   170      */
       
   171     virtual TInt TestBASetFrameIntervalL( CStifItemParser& aItem );
       
   172     
       
   173     /**
       
   174      * TestBAStartAnimationL test function for testing the 
       
   175      *     StartAnimationL function
       
   176      * @since S60 5.0
       
   177      * @param aItem never used
       
   178      * @return Symbian OS error code.
       
   179      */
       
   180     virtual TInt TestBAStartAnimationL( CStifItemParser& aItem );
       
   181     
       
   182     /**
       
   183      * TestBASetScaleModeForAnimationFramesL test function for testing the 
       
   184      *     SetScaleModeForAnimationFrames function
       
   185      * @since S60 5.0
       
   186      * @param aItem never used
       
   187      * @return Symbian OS error code.
       
   188      */
       
   189     virtual TInt TestBASetScaleModeForAnimationFramesL( CStifItemParser& aItem );
       
   190     
       
   191     /**
       
   192      * TestBASetScaleModeForAnimationBackgroundFrameL test function for testing the 
       
   193      *     SetScaleModeForAnimationBackgroundFrame function
       
   194      * @since S60 5.0
       
   195      * @param aItem never used
       
   196      * @return Symbian OS error code.
       
   197      */
       
   198     virtual TInt TestBASetScaleModeForAnimationBackgroundFrameL( CStifItemParser& aItem );
       
   199     
       
   200     /**
       
   201      * TestBAExcludeAnimationFramesFromCacheL test function for testing the 
       
   202      *     ExcludeAnimationFramesFromCache function
       
   203      * @since S60 5.0
       
   204      * @param aItem never used
       
   205      * @return Symbian OS error code.
       
   206      */
       
   207     virtual TInt TestBAExcludeAnimationFramesFromCacheL( CStifItemParser& aItem );
       
   208     
       
   209     /**
       
   210      * TestBAConstructFromSkinL test function for testing the 
       
   211      *     ConstructFromSkinL function
       
   212      * @since S60 5.0
       
   213      * @param aItem never used
       
   214      * @return Symbian OS error code.
       
   215      */
       
   216     virtual TInt TestBAConstructFromSkinL( CStifItemParser& aItem );
       
   217     
       
   218     /**
       
   219      * TestBAConstructFromResourceL test function for testing the 
       
   220      *     ConstructFromResourceL function
       
   221      * @since S60 5.0
       
   222      * @param aItem never used
       
   223      * @return Symbian OS error code.
       
   224      */
       
   225     virtual TInt TestBAConstructFromResourceL( CStifItemParser& aItem );
       
   226     
       
   227     /**
       
   228      * TestBAMinimumSizeL test function for testing the 
       
   229      *     MinimumSize function
       
   230      * @since S60 5.0
       
   231      * @param aItem never used
       
   232      * @return Symbian OS error code.
       
   233      */
       
   234     virtual TInt TestBAMinimumSizeL( CStifItemParser& aItem );
       
   235     
       
   236 private:    // Data
       
   237 
       
   238     TInt iOldScreenSaverProperty;
       
   239 
       
   240     // Resource file offset
       
   241     TInt iOffset;
       
   242     };
       
   243 
       
   244 #endif      // C_TESTSDKANIMATION_H
       
   245 
       
   246 // End of File