uiresources_pub/scalable_icons_api/tsrc/inc/testpubscalableicons.h
changeset 0 05e9090e2422
child 42 2398a337fa76
equal deleted inserted replaced
-1:000000000000 0:05e9090e2422
       
     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:  scalable_icons_api
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef C_TESTPUBSCALABLEICONS_H
       
    20 #define C_TESTPUBSCALABLEICONS_H
       
    21 
       
    22 //  INCLUDES
       
    23 #include <stiflogger.h>
       
    24 #include <testscripterinternal.h>
       
    25 #include <stiftestmodule.h>
       
    26 #include <testclassassert.h>
       
    27 
       
    28 #include <AknIconSrvClient.h>
       
    29 #include <AknIconUtils.h>
       
    30 #include <AknInternalIconUtils.h>
       
    31 // MACROS
       
    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( KtestpubscalableiconsLogPath, "\\logs\\testframework\\testpubscalableicons\\" ); 
       
    38 // Log file
       
    39 _LIT( KtestpubscalableiconsLogFile, "testpubscalableicons.txt" ); 
       
    40 _LIT( KtestpubscalableiconsLogFileWithTitle, "testpubscalableicons_[%S].txt" );
       
    41 
       
    42 /**
       
    43 *  Ctestpubscalableicons test class for STIF Test Framework TestScripter.
       
    44 *  @since S60 5.0
       
    45 */
       
    46 NONSHARABLE_CLASS( Ctestpubscalableicons ) : public CScriptBase
       
    47     {
       
    48 public:  // Constructors and destructor
       
    49 
       
    50     /**
       
    51     * Two-phased constructor.
       
    52     */
       
    53     static Ctestpubscalableicons* NewL( CTestModuleIf& aTestModuleIf );
       
    54 
       
    55     /**
       
    56     * Destructor.
       
    57     */
       
    58     virtual ~Ctestpubscalableicons();
       
    59 
       
    60 public: // Functions from base classes
       
    61 
       
    62     /**
       
    63     * From CScriptBase Runs a script line.
       
    64     * @since S60 5.0
       
    65     * @param aItem Script line containing method name and parameters
       
    66     * @return Symbian OS error code
       
    67     */
       
    68     virtual TInt RunMethodL( CStifItemParser& aItem );
       
    69 
       
    70 private:
       
    71 
       
    72     /**
       
    73     * C++ default constructor.
       
    74     */
       
    75     Ctestpubscalableicons( CTestModuleIf& aTestModuleIf );
       
    76 
       
    77     /**
       
    78     * By default Symbian 2nd phase constructor is private.
       
    79     */
       
    80     void ConstructL();
       
    81 
       
    82     /**
       
    83     * Example test method.
       
    84     * @since S60 5.0
       
    85     * @param aItem Script line containing parameters.
       
    86     * @return Symbian OS error code.
       
    87     */
       
    88 
       
    89     
       
    90     /**
       
    91      * Method used to log version of test class
       
    92      */
       
    93     void SendTestClassVersion();
       
    94     
       
    95         /**
       
    96      * Turn off ScreenSaver
       
    97      * @since S60 5.0
       
    98      * @return Symbian OS error code.
       
    99      */
       
   100     void TurnOffScreenSaver();
       
   101 
       
   102     /**
       
   103      * Restore ScreenSaver
       
   104      * @since S60 5.0
       
   105      * @return Symbian OS error code.
       
   106      */
       
   107     void RestoreScreenSaver();
       
   108 
       
   109 private: // [TestMethods]
       
   110     /**
       
   111      * TestRAknIconSrvClientConnectL test Connect of RAknIconSrvClient
       
   112      * @since S60 5.0
       
   113      * @param aItem never used
       
   114      * @return Symbian OS error code.
       
   115      */
       
   116     virtual TInt TestRAknIconSrvClientConnectL( CStifItemParser& aItem );
       
   117 
       
   118     /**
       
   119      * TestRAknIconSrvClientDisconnectL test Disconnect of RAknIconSrvClient
       
   120      * @since S60 5.0
       
   121      * @param aItem never used
       
   122      * @return Symbian OS error code.
       
   123      */
       
   124     virtual TInt TestRAknIconSrvClientDisconnectL( CStifItemParser& aItem );
       
   125 
       
   126     /**
       
   127      * TestTAknContentDimensionsTAknContentDimensions1L test TAknContentDimensions of TAknContentDimensions
       
   128      * @since S60 5.0
       
   129      * @param aItem never used
       
   130      * @return Symbian OS error code.
       
   131      */
       
   132     virtual TInt TestTAknContentDimensionsTAknContentDimensions1L( CStifItemParser& aItem );
       
   133 
       
   134     /**
       
   135      * TestTAknContentDimensionsTAknContentDimensions2L test TAknContentDimensions of TAknContentDimensions
       
   136      * @since S60 5.0
       
   137      * @param aItem never used
       
   138      * @return Symbian OS error code.
       
   139      */
       
   140     virtual TInt TestTAknContentDimensionsTAknContentDimensions2L( CStifItemParser& aItem );
       
   141 
       
   142     /**
       
   143      * TestTAknContentDimensionsSetDimensions1L test SetDimensions of TAknContentDimensions
       
   144      * @since S60 5.0
       
   145      * @param aItem never used
       
   146      * @return Symbian OS error code.
       
   147      */
       
   148     virtual TInt TestTAknContentDimensionsSetDimensions1L( CStifItemParser& aItem );
       
   149 
       
   150     /**
       
   151      * TestTAknContentDimensionsSetDimensions2L test SetDimensions of TAknContentDimensions
       
   152      * @since S60 5.0
       
   153      * @param aItem never used
       
   154      * @return Symbian OS error code.
       
   155      */
       
   156     virtual TInt TestTAknContentDimensionsSetDimensions2L( CStifItemParser& aItem );
       
   157 
       
   158     /**
       
   159      * TestCAknIconNewL test NewL of CAknIcon
       
   160      * @since S60 5.0
       
   161      * @param aItem never used
       
   162      * @return Symbian OS error code.
       
   163      */
       
   164     virtual TInt TestCAknIconNewL( CStifItemParser& aItem );
       
   165 
       
   166     /**
       
   167      * TestCAknIconBitmapL test Bitmap of CAknIcon
       
   168      * @since S60 5.0
       
   169      * @param aItem never used
       
   170      * @return Symbian OS error code.
       
   171      */
       
   172     virtual TInt TestCAknIconBitmapL( CStifItemParser& aItem );
       
   173 
       
   174     /**
       
   175      * TestCAknIconMaskL test Mask of CAknIcon
       
   176      * @since S60 5.0
       
   177      * @param aItem never used
       
   178      * @return Symbian OS error code.
       
   179      */
       
   180     virtual TInt TestCAknIconMaskL( CStifItemParser& aItem );
       
   181 
       
   182     /**
       
   183      * TestCAknIconSetBitmapL test SetBitmap of CAknIcon
       
   184      * @since S60 5.0
       
   185      * @param aItem never used
       
   186      * @return Symbian OS error code.
       
   187      */
       
   188     virtual TInt TestCAknIconSetBitmapL( CStifItemParser& aItem );
       
   189 
       
   190     /**
       
   191      * TestCAknIconSetMaskL test SetMask of CAknIcon
       
   192      * @since S60 5.0
       
   193      * @param aItem never used
       
   194      * @return Symbian OS error code.
       
   195      */
       
   196     virtual TInt TestCAknIconSetMaskL( CStifItemParser& aItem );
       
   197 
       
   198     /**
       
   199      * TestAknIconUtilsCreateIconL1L test CreateIconL of AknIconUtils
       
   200      * @since S60 5.0
       
   201      * @param aItem never used
       
   202      * @return Symbian OS error code.
       
   203      */
       
   204     virtual TInt TestAknIconUtilsCreateIconL1L( CStifItemParser& aItem );
       
   205 
       
   206     /**
       
   207      * TestAknIconUtilsCreateIconLC1L test CreateIconLC of AknIconUtils
       
   208      * @since S60 5.0
       
   209      * @param aItem never used
       
   210      * @return Symbian OS error code.
       
   211      */
       
   212     virtual TInt TestAknIconUtilsCreateIconLC1L( CStifItemParser& aItem );
       
   213 
       
   214     /**
       
   215      * TestAknIconUtilsCreateIconL2L test CreateIconL of AknIconUtils
       
   216      * @since S60 5.0
       
   217      * @param aItem never used
       
   218      * @return Symbian OS error code.
       
   219      */
       
   220     virtual TInt TestAknIconUtilsCreateIconL2L( CStifItemParser& aItem );
       
   221 
       
   222     /**
       
   223      * TestAknIconUtilsCreateIconL3L test CreateIconL of AknIconUtils
       
   224      * @since S60 5.0
       
   225      * @param aItem never used
       
   226      * @return Symbian OS error code.
       
   227      */
       
   228     virtual TInt TestAknIconUtilsCreateIconL3L( CStifItemParser& aItem );
       
   229 
       
   230     /**
       
   231      * TestAknIconUtilsCreateIconLC2L test CreateIconLC of AknIconUtils
       
   232      * @since S60 5.0
       
   233      * @param aItem never used
       
   234      * @return Symbian OS error code.
       
   235      */
       
   236     virtual TInt TestAknIconUtilsCreateIconLC2L( CStifItemParser& aItem );
       
   237 
       
   238     /**
       
   239      * TestAknIconUtilsCreateIconL4L test CreateIconL of AknIconUtils
       
   240      * @since S60 5.0
       
   241      * @param aItem never used
       
   242      * @return Symbian OS error code.
       
   243      */
       
   244     virtual TInt TestAknIconUtilsCreateIconL4L( CStifItemParser& aItem );
       
   245 
       
   246     /**
       
   247      * TestAknIconUtilsPreserveIconDataL test PreserveIconData of AknIconUtils
       
   248      * @since S60 5.0
       
   249      * @param aItem never used
       
   250      * @return Symbian OS error code.
       
   251      */
       
   252     virtual TInt TestAknIconUtilsPreserveIconDataL( CStifItemParser& aItem );
       
   253 
       
   254     /**
       
   255      * TestAknIconUtilsDestroyIconDataL test DestroyIconData of AknIconUtils
       
   256      * @since S60 5.0
       
   257      * @param aItem never used
       
   258      * @return Symbian OS error code.
       
   259      */
       
   260     virtual TInt TestAknIconUtilsDestroyIconDataL( CStifItemParser& aItem );
       
   261 
       
   262     /**
       
   263      * TestAknIconUtilsSetSizeL test SetSize of AknIconUtils
       
   264      * @since S60 5.0
       
   265      * @param aItem never used
       
   266      * @return Symbian OS error code.
       
   267      */
       
   268     virtual TInt TestAknIconUtilsSetSizeL( CStifItemParser& aItem );
       
   269 
       
   270     /**
       
   271      * TestAknIconUtilsSetSizeAndRotationL test SetSizeAndRotation of AknIconUtils
       
   272      * @since S60 5.0
       
   273      * @param aItem never used
       
   274      * @return Symbian OS error code.
       
   275      */
       
   276     virtual TInt TestAknIconUtilsSetSizeAndRotationL( CStifItemParser& aItem );
       
   277 
       
   278     /**
       
   279      * TestAknIconUtilsSetObserverL test SetObserver of AknIconUtils
       
   280      * @since S60 5.0
       
   281      * @param aItem never used
       
   282      * @return Symbian OS error code.
       
   283      */
       
   284     virtual TInt TestAknIconUtilsSetObserverL( CStifItemParser& aItem );
       
   285 
       
   286     /**
       
   287      * TestAknIconUtilsAvkonIconFileNameL test AvkonIconFileName of AknIconUtils
       
   288      * @since S60 5.0
       
   289      * @param aItem never used
       
   290      * @return Symbian OS error code.
       
   291      */
       
   292     virtual TInt TestAknIconUtilsAvkonIconFileNameL( CStifItemParser& aItem );
       
   293 
       
   294     /**
       
   295      * TestAknIconUtilsValidateLogicalAppIconIdL test ValidateLogicalAppIconId of AknIconUtils
       
   296      * @since S60 5.0
       
   297      * @param aItem never used
       
   298      * @return Symbian OS error code.
       
   299      */
       
   300     virtual TInt TestAknIconUtilsValidateLogicalAppIconIdL( CStifItemParser& aItem );
       
   301 
       
   302     /**
       
   303      * TestAknIconUtilsIsMifFileL test IsMifFile of AknIconUtils
       
   304      * @since S60 5.0
       
   305      * @param aItem never used
       
   306      * @return Symbian OS error code.
       
   307      */
       
   308     virtual TInt TestAknIconUtilsIsMifFileL( CStifItemParser& aItem );
       
   309 
       
   310     /**
       
   311      * TestAknIconUtilsIsMifIconL test IsMifIcon of AknIconUtils
       
   312      * @since S60 5.0
       
   313      * @param aItem never used
       
   314      * @return Symbian OS error code.
       
   315      */
       
   316     virtual TInt TestAknIconUtilsIsMifIconL( CStifItemParser& aItem );
       
   317 
       
   318     /**
       
   319      * TestAknIconUtilsGetContentDimensions1L test GetContentDimensions of AknIconUtils
       
   320      * @since S60 5.0
       
   321      * @param aItem never used
       
   322      * @return Symbian OS error code.
       
   323      */
       
   324     virtual TInt TestAknIconUtilsGetContentDimensions1L( CStifItemParser& aItem );
       
   325 
       
   326     /**
       
   327      * TestAknIconUtilsGetContentDimensions2L test GetContentDimensions of AknIconUtils
       
   328      * @since S60 5.0
       
   329      * @param aItem never used
       
   330      * @return Symbian OS error code.
       
   331      */
       
   332     virtual TInt TestAknIconUtilsGetContentDimensions2L( CStifItemParser& aItem );
       
   333 
       
   334     /**
       
   335      * TestAknIconUtilsCreateIconL5L test CreateIconL of AknIconUtils
       
   336      * @since S60 5.0
       
   337      * @param aItem never used
       
   338      * @return Symbian OS error code.
       
   339      */
       
   340     virtual TInt TestAknIconUtilsCreateIconL5L( CStifItemParser& aItem );
       
   341 
       
   342     /**
       
   343      * TestAknIconUtilsCreateIconL6L test CreateIconL of AknIconUtils
       
   344      * @since S60 5.0
       
   345      * @param aItem never used
       
   346      * @return Symbian OS error code.
       
   347      */
       
   348     virtual TInt TestAknIconUtilsCreateIconL6L( CStifItemParser& aItem );
       
   349 
       
   350     /**
       
   351      * TestAknIconUtilsSetIconColorL test SetIconColor of AknIconUtils
       
   352      * @since S60 5.0
       
   353      * @param aItem never used
       
   354      * @return Symbian OS error code.
       
   355      */
       
   356     virtual TInt TestAknIconUtilsSetIconColorL( CStifItemParser& aItem );
       
   357 
       
   358     /**
       
   359      * TestAknIconUtilsExcludeFromCacheL test ExcludeFromCache of AknIconUtils
       
   360      * @since S60 5.0
       
   361      * @param aItem never used
       
   362      * @return Symbian OS error code.
       
   363      */
       
   364     virtual TInt TestAknIconUtilsExcludeFromCacheL( CStifItemParser& aItem );
       
   365 
       
   366     /**
       
   367      * TestAknIconUtilsDisableCompressionL test DisableCompression of AknIconUtils
       
   368      * @since S60 5.0
       
   369      * @param aItem never used
       
   370      * @return Symbian OS error code.
       
   371      */
       
   372     virtual TInt TestAknIconUtilsDisableCompressionL( CStifItemParser& aItem );
       
   373 
       
   374     /**
       
   375      * TestAknIconUtilsScaleBitmapL test ScaleBitmapL of AknIconUtils
       
   376      * @since S60 5.0
       
   377      * @param aItem never used
       
   378      * @return Symbian OS error code.
       
   379      */
       
   380     virtual TInt TestAknIconUtilsScaleBitmapL( CStifItemParser& aItem );
       
   381 
       
   382     /**
       
   383      * TestAknInternalIconUtilsSetAppIconL test SetAppIcon of AknInternalIconUtils
       
   384      * @since S60 5.0
       
   385      * @param aItem never used
       
   386      * @return Symbian OS error code.
       
   387      */
       
   388     virtual TInt TestAknInternalIconUtilsSetAppIconL( CStifItemParser& aItem );
       
   389 
       
   390 
       
   391 
       
   392 private:    // Data
       
   393 
       
   394     /**
       
   395      * ScreenSaver Property
       
   396      */
       
   397     TInt iOldScreenSaverProperty;
       
   398     
       
   399     /**
       
   400      * ?description_of_pointer_member
       
   401      * Not own.
       
   402      */
       
   403     //?type* ?member_name;
       
   404 
       
   405     };
       
   406 
       
   407 #endif      // C_TESTPUBSCALABLEICONS_H
       
   408 
       
   409 // End of File
       
   410