classicui_pub/images_api/tsrc/inc/testsdkimages.h
changeset 0 2f259fa3e83a
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 eikimage.h
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef C_TESTSDKIMAGES_H
       
    21 #define C_TESTSDKIMAGES_H
       
    22 
       
    23 /*
       
    24  *   INCLUDES
       
    25  */
       
    26 #include <stiflogger.h>
       
    27 #include <testscripterinternal.h>
       
    28 #include <stiftestmodule.h>
       
    29 #include <testclassassert.h>
       
    30 
       
    31 class CEikImage;
       
    32 /*
       
    33  *  MACROS
       
    34  */
       
    35 #define TEST_CLASS_VERSION_MAJOR 0
       
    36 #define TEST_CLASS_VERSION_MINOR 0
       
    37 #define TEST_CLASS_VERSION_BUILD 0
       
    38 
       
    39 /*
       
    40  *  Logging path
       
    41  */
       
    42 _LIT( KtestsdkimagesLogPath, "\\logs\\testframework\\testsdkimages\\" ); 
       
    43 /*
       
    44  *  Log file
       
    45  */
       
    46 _LIT( KtestsdkimagesLogFile, "testsdkimages.txt" ); 
       
    47 _LIT( KtestsdkimagesLogFileWithTitle, "testsdkimages_[%S].txt" );
       
    48 
       
    49 /**
       
    50 *  CTestSDKIMAGES test class for STIF Test Framework TestScripter.
       
    51 *  @since S60 5.0
       
    52 */
       
    53 NONSHARABLE_CLASS(CTestSDKIMAGES) : public CScriptBase
       
    54     {
       
    55 public:
       
    56 
       
    57     /**
       
    58     * Two-phased constructor.
       
    59     */
       
    60     static CTestSDKIMAGES* NewL( CTestModuleIf& aTestModuleIf );
       
    61 
       
    62     /**
       
    63     * Destructor.
       
    64     */
       
    65     virtual ~CTestSDKIMAGES();
       
    66 
       
    67 public:
       
    68 
       
    69     /**
       
    70     * From CScriptBase Runs a script line.
       
    71     * @since S60 5.0
       
    72     * @param aItem Script line containing method name and parameters
       
    73     * @return Symbian OS error code
       
    74     */
       
    75     virtual TInt RunMethodL( CStifItemParser& aItem );
       
    76 
       
    77 private:
       
    78 
       
    79     /**
       
    80     * C++ default constructor.
       
    81     */
       
    82     CTestSDKIMAGES( CTestModuleIf& aTestModuleIf );
       
    83 
       
    84     /**
       
    85     * By default Symbian 2nd phase constructor is private.
       
    86     */
       
    87     void ConstructL();
       
    88 
       
    89     /**
       
    90     * Frees all resources allocated from test methods.
       
    91     * @since S60 5.0
       
    92     */
       
    93     void Delete();
       
    94     /**
       
    95      * TestIMAGESConstructorL test function for testing the Constructor function
       
    96      * @since S60 5.0
       
    97      * @param aItem never used
       
    98      * @return Symbian OS error code.
       
    99      */
       
   100     virtual TInt TestIMAGESConstructorL( CStifItemParser& /*aItem*/ );
       
   101     /**
       
   102      * TestIMAGESDestructorL test function for testing the Destructor function
       
   103      * @since S60 5.0
       
   104      * @param aItem never used
       
   105      * @return Symbian OS error code.
       
   106      */
       
   107     virtual TInt TestIMAGESDestructorL( CStifItemParser& /*aItem*/ );
       
   108     /**
       
   109      * TestIMAGESMinimumSizeL test function for testing the MinimumSize function
       
   110      * @since S60 5.0
       
   111      * @param aItem never used
       
   112      * @return Symbian OS error code.
       
   113      */
       
   114     virtual TInt TestIMAGESMinimumSizeL( CStifItemParser& /*aItem*/ );
       
   115     /**
       
   116      * TestIMAGESConstructFromResourceL test function for testing the ConstructFromResource function
       
   117      * @since S60 5.0
       
   118      * @param aItem never used
       
   119      * @return Symbian OS error code.
       
   120      */
       
   121     virtual TInt TestIMAGESConstructFromResourceL( CStifItemParser& /*aItem*/ );
       
   122     /**
       
   123      * TestIMAGESCreatePictureFromFileL test function for testing the CreatePictureFromFile function
       
   124      * @since S60 5.0
       
   125      * @param aItem never used
       
   126      * @return Symbian OS error code.
       
   127      */
       
   128     virtual TInt TestIMAGESCreatePictureFromFileL( CStifItemParser& /*aItem*/ );
       
   129     /**
       
   130      * TestIMAGESSetPictureL test function for testing the SetPicture function
       
   131      * @since S60 5.0
       
   132      * @param aItem never used
       
   133      * @return Symbian OS error code.
       
   134      */
       
   135     virtual TInt TestIMAGESSetPictureL( CStifItemParser& /*aItem*/ );
       
   136     /**
       
   137      * TestIMAGESSetEmphasisL test function for testing the SetEmphasis function
       
   138      * @since S60 5.0
       
   139      * @param aItem never used
       
   140      * @return Symbian OS error code.
       
   141      */
       
   142     virtual TInt TestIMAGESSetEmphasisL( CStifItemParser& /*aItem*/ );
       
   143     /**
       
   144      * TestIMAGESSetPictureOwnedExternallyL test function for testing the SetPictureOwnedExternally function
       
   145      * @since S60 5.0
       
   146      * @param aItem never used
       
   147      * @return Symbian OS error code.
       
   148      */
       
   149     virtual TInt TestIMAGESSetPictureOwnedExternallyL( CStifItemParser& /*aItem*/ );
       
   150     /**
       
   151      * TestIMAGESBitmapL test function for testing the Bitmap function
       
   152      * @since S60 5.0
       
   153      * @param aItem never used
       
   154      * @return Symbian OS error code.
       
   155      */
       
   156     virtual TInt TestIMAGESBitmapL( CStifItemParser& aItem );
       
   157     /**
       
   158      * TestIMAGESMaskL test function for testing the Mask function
       
   159      * @since S60 5.0
       
   160      * @param aItem never used
       
   161      * @return Symbian OS error code.
       
   162      */
       
   163     virtual TInt TestIMAGESMaskL( CStifItemParser& aItem );
       
   164     /**
       
   165      * TestIMAGESSetBitmapL test function for testing the SetBitmap 
       
   166      * and SetNewBitmaps function
       
   167      * @since S60 5.0
       
   168      * @param aItem never used
       
   169      * @return Symbian OS error code.
       
   170      */
       
   171     virtual TInt TestIMAGESSetBitmapL( CStifItemParser& /*aItem*/ );
       
   172     /**
       
   173      * TestIMAGESSetMaskL test function for testing the SetMask function
       
   174      * @since S60 5.0
       
   175      * @param aItem never used
       
   176      * @return Symbian OS error code.
       
   177      */
       
   178     virtual TInt TestIMAGESSetMaskL( CStifItemParser& /*aItem*/ );
       
   179     /**
       
   180      * TestIMAGESSetNewBitmapsL test function for testing the SetNewBitmaps function
       
   181      * @since S60 5.0
       
   182      * @param aItem never used
       
   183      * @return Symbian OS error code.
       
   184      */
       
   185     virtual TInt TestIMAGESSetNewBitmapsL( CStifItemParser& aItem );
       
   186     /**
       
   187      * TestIMAGESIsPictureOwnedExternallyL test function for testing the IsPictureOwnedExternally function
       
   188      * @since S60 5.0
       
   189      * @param aItem never used
       
   190      * @return Symbian OS error code.
       
   191      */
       
   192     virtual TInt TestIMAGESIsPictureOwnedExternallyL( CStifItemParser& /*aItem*/ );
       
   193     /**
       
   194      * TestIMAGESHandlePointerEventL test function for testing the HandlePointerEventL function
       
   195      * @since S60 5.0
       
   196      * @param aItem never used
       
   197      * @return Symbian OS error code.
       
   198      */
       
   199     virtual TInt TestIMAGESHandlePointerEventL( CStifItemParser& /*aItem*/ );
       
   200     /**
       
   201      * TestIMAGESSetBrushStyleL test function for testing the SetBrushStyle function
       
   202      * @since S60 5.0
       
   203      * @param aItem never used
       
   204      * @return Symbian OS error code.
       
   205      */
       
   206     virtual TInt TestIMAGESSetBrushStyleL( CStifItemParser& /*aItem*/ );
       
   207     /**
       
   208      * TestIMAGESWriteInternalStateL test function for testing the WriteInternalStateL function
       
   209      * @since S60 5.0
       
   210      * @param aItem never used
       
   211      * @return Symbian OS error code.
       
   212      */
       
   213     virtual TInt TestIMAGESWriteInternalStateL( CStifItemParser& /*aItem*/ );
       
   214     
       
   215     /**
       
   216      * Method used to log version of test class
       
   217      */
       
   218     void SendTestClassVersion();
       
   219     
       
   220         /**
       
   221      * Turn off ScreenSaver
       
   222      * @since S60 5.0
       
   223      * @return Symbian OS error code.
       
   224      */
       
   225     void TurnOffScreenSaver();
       
   226 
       
   227     /**
       
   228      * Restore ScreenSaver
       
   229      * @since S60 5.0
       
   230      * @return Symbian OS error code.
       
   231      */
       
   232     void RestoreScreenSaver();
       
   233 
       
   234     //[TestMethods]
       
   235 
       
   236 private:    // Data
       
   237 
       
   238     /**
       
   239      * ScreenSaver Property
       
   240      */
       
   241     TInt iOldScreenSaverProperty;
       
   242 
       
   243     // Resource file offset
       
   244     TInt iOffset;
       
   245     };
       
   246 
       
   247 #endif      // C_TESTSDKIMAGES_H
       
   248 
       
   249 /*
       
   250  *  End of File
       
   251  */
       
   252 
       
   253 
       
   254