uiresources_pub/pictograph_api/tsrc/inc/testsdkpictograph.h
author William Roberts <williamr@symbian.org>
Tue, 23 Mar 2010 16:09:27 +0000
branchSymbian3_Theme
changeset 35 838be9535c06
parent 0 05e9090e2422
child 42 2398a337fa76
permissions -rw-r--r--
Start integration branch for Symbian^3 Theme The theme has been built using Carbide.ui on S60 5th Edition using the N97 plugin The source code in sf/mw/uiresources/skins/Symbian/srcdata was used to generate the installable SIS file which lives in the group directory, but the aim here is to build the theme for delivery in the ROM (preferrably as the default theme). Running "sbs -b bld.inf -c winscw" should build cleanly and deliver a matched set of files which then show up in the Settings | Themes | General list. Attempting to install it produces "Theme Corrupted".

/*
* Copyright (c) 2002 - 2007 Nokia Corporation and/or its subsidiary(-ies).
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of "Eclipse Public License v1.0"
* which accompanies this distribution, and is available
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
*
* Initial Contributors:
* Nokia Corporation - initial contribution.
*
* Contributors:
*
* Description:  test aknpictographinterface.h
                      akniconsrvclient.h
                      akniconutils.h
                      akninternaliconutils.h
*
*/



#ifndef C_TESTSDKPICTOGRAPH_H
#define C_TESTSDKPICTOGRAPH_H

//  INCLUDES
#include <stiflogger.h>
#include <testscripterinternal.h>
#include <stiftestmodule.h>
#include <testclassassert.h>

// MACROS
#define TEST_CLASS_VERSION_MAJOR 0
#define TEST_CLASS_VERSION_MINOR 0
#define TEST_CLASS_VERSION_BUILD 0

// Logging path
_LIT( KtestsdkpictographLogPath, "\\logs\\testframework\\testsdkpictograph\\" ); 
// Log file
_LIT( KtestsdkpictographLogFile, "testsdkpictograph.txt" ); 
_LIT( KtestsdkpictographLogFileWithTitle, "testsdkpictograph_[%S].txt" );

/**
*  CTestSDKPicToGraph test class for STIF Test Framework TestScripter.
*  @since S60 5.0
*/
NONSHARABLE_CLASS( CTestSDKPicToGraph ) : public CScriptBase
    {
public:  // Constructors and destructor

    /**
    * Two-phased constructor.
    */
    static CTestSDKPicToGraph* NewL( CTestModuleIf& aTestModuleIf );

    /**
    * Destructor.
    */
    virtual ~CTestSDKPicToGraph();

public: // Functions from base classes

    /**
    * From CScriptBase Runs a script line.
    * @since S60 5.0
    * @param aItem Script line containing method name and parameters
    * @return Symbian OS error code
    */
    virtual TInt RunMethodL( CStifItemParser& aItem );

private:

    /**
    * C++ default constructor.
    */
    CTestSDKPicToGraph( CTestModuleIf& aTestModuleIf );

    /**
    * By default Symbian 2nd phase constructor is private.
    */
    void ConstructL();

    /**
     * Method used to log version of test class
     */
    void SendTestClassVersion();

        /**
     * Turn off ScreenSaver
     * @since S60 5.0
     * @return Symbian OS error code.
     */
    void TurnOffScreenSaver();

    /**
     * Restore ScreenSaver
     * @since S60 5.0
     * @return Symbian OS error code.
     */
    void RestoreScreenSaver();

private: // test functions in aknpictographinterface.h

    /**
    * test NewL method.
    * @since S60 5.0
    * @param aItem never used.
    * @return Symbian OS error code.
    */
    virtual TInt TestIntfaceNewL( CStifItemParser& aItem );

private: // test functions in akniconsrvclient.h

    /**
    * test Connect method.
    * @since S60 5.0
    * @param aItem never used.
    * @return Symbian OS error code.
    */
    virtual TInt TestSrvConnect( CStifItemParser& aItem );

    /**
    * test Disconnect method.
    * @since S60 5.0
    * @param aItem never used.
    * @return Symbian OS error code.
    */
    virtual TInt TestSrvDisconnect( CStifItemParser& aItem );

private: // test functions in akniconutils.h

    /**
    * test default constructor method of TAknContentDimensions class.
    * @since S60 5.0
    * @param aItem never used.
    * @return Symbian OS error code.
    */
    virtual TInt TestDimenDefCons( CStifItemParser& aItem );

    /**
    * test constructor method of TAknContentDimensions class.
    * @since S60 5.0
    * @param aItem never used.
    * @return Symbian OS error code.
    */
    virtual TInt TestDimenConstruct( CStifItemParser& aItem );

    /**
    * test SetDimensions method of TAknContentDimensions class.
    * @since S60 5.0
    * @param aItem never used.
    * @return Symbian OS error code.
    */
    virtual TInt TestDimenSetDimen( CStifItemParser& aItem );

    /**
    * test NewL method of CAknIcon class.
    * @since S60 5.0
    * @param aItem never used.
    * @return Symbian OS error code.
    */
    virtual TInt TestIconNewL( CStifItemParser& aItem );

    /**
    * test Bitmap method of CAknIcon class.
    * @since S60 5.0
    * @param aItem never used.
    * @return Symbian OS error code.
    */
    virtual TInt TestIconBitmapL( CStifItemParser& aItem );

    /**
    * test Mask method of CAknIcon class.
    * @since S60 5.0
    * @param aItem never used.
    * @return Symbian OS error code.
    */
    virtual TInt TestIconMaskL( CStifItemParser& aItem );

    /**
    * test SetBitmap method of CAknIcon class.
    * @since S60 5.0
    * @param aItem never used.
    * @return Symbian OS error code.
    */
    virtual TInt TestIconSetBitmapL( CStifItemParser& aItem );

    /**
    * test SetMask method of CAknIcon class.
    * @since S60 5.0
    * @param aItem never used.
    * @return Symbian OS error code.
    */
    virtual TInt TestIconSetMaskL( CStifItemParser& aItem );

    /**
    * test CreateIconL method of AknIconUtils class.
    * @since S60 5.0
    * @param aItem never used.
    * @return Symbian OS error code.
    */
    virtual TInt TestUtilCreateIconWithMaskL( CStifItemParser& aItem );

    /**
    * test CreateIconL method of AknIconUtils class.
    * @since S60 5.0
    * @param aItem never used.
    * @return Symbian OS error code.
    */
    virtual TInt TestUtilCreateIconWithBmpIdL( CStifItemParser& aItem );

    /**
    * test CreateIconL method of AknIconUtils class.
    * @since S60 5.0
    * @param aItem never used.
    * @return Symbian OS error code.
    */
    virtual TInt TestUtilCreateIconWithProMaskL( CStifItemParser& aItem );

    /**
    * test CreateIconL method of AknIconUtils class.
    * @since S60 5.0
    * @param aItem never used.
    * @return Symbian OS error code.
    */
    virtual TInt TestUtilCreateIconWithProviderL( CStifItemParser& aItem );

    /**
    * test CreateIconL method of AknIconUtils class.
    * @since S60 5.0
    * @param aItem never used.
    * @return Symbian OS error code.
    */
    virtual TInt TestUtilCreateIconWithSoIconL( CStifItemParser& aItem );

    /**
    * test CreateIconL method of AknIconUtils class.
    * @since S60 5.0
    * @param aItem never used.
    * @return Symbian OS error code.
    */
    virtual TInt TestUtilCreateIconWithSoBmpL( CStifItemParser& aItem );

    /**
    * test CreateIconLC method of AknIconUtils class.
    * @since S60 5.0
    * @param aItem never used.
    * @return Symbian OS error code.
    */
    virtual TInt TestUtilCreateIconLCL( CStifItemParser& aItem );

    /**
    * test PreserveIconData method of AknIconUtils class.
    * @since S60 5.0
    * @param aItem never used.
    * @return Symbian OS error code.
    */
    virtual TInt TestUtilPreserveIconDataL( CStifItemParser& aItem );

    /**
    * test DestroyIconData method of AknIconUtils class.
    * @since S60 5.0
    * @param aItem never used.
    * @return Symbian OS error code.
    */
    virtual TInt TestUtilDestroyIconDataL( CStifItemParser& aItem );

    /**
    * test SetSize method of AknIconUtils class.
    * @since S60 5.0
    * @param aItem never used.
    * @return Symbian OS error code.
    */
    virtual TInt TestUtilSetSizeL( CStifItemParser& aItem );

    /**
    * test SetSizeAndRotation method of AknIconUtils class.
    * @since S60 5.0
    * @param aItem never used.
    * @return Symbian OS error code.
    */
    virtual TInt TestUtilSetSizeAndRotationL( CStifItemParser& aItem );

    /**
    * test SetObserver method of AknIconUtils class.
    * @since S60 5.0
    * @param aItem never used.
    * @return Symbian OS error code.
    */
    virtual TInt TestUtilSetObserverL( CStifItemParser& aItem );

    /**
    * test AvkonIconFileName method of AknIconUtils class.
    * @since S60 5.0
    * @param aItem never used.
    * @return Symbian OS error code.
    */
    virtual TInt TestUtilAvkonIconFileName( CStifItemParser& aItem );

    /**
    * test ValidateLogicalAppIconId method of AknIconUtils class.
    * @since S60 5.0
    * @param aItem never used.
    * @return Symbian OS error code.
    */
    virtual TInt TestUtilValidateLogicalAppIconId( CStifItemParser& aItem );

    /**
    * test IsMifFile method of AknIconUtils class.
    * @since S60 5.0
    * @param aItem never used.
    * @return Symbian OS error code.
    */
    virtual TInt TestUtilIsMifFile( CStifItemParser& aItem );

    /**
    * test IsMifIcon method of AknIconUtils class.
    * @since S60 5.0
    * @param aItem never used.
    * @return Symbian OS error code.
    */
    virtual TInt TestUtilIsMifIconL( CStifItemParser& aItem );

    /**
    * test GetContentDimensions method of AknIconUtils class.
    * @since S60 5.0
    * @param aItem never used.
    * @return Symbian OS error code.
    */
    virtual TInt TestUtilGetContentDimensionsL( CStifItemParser& aItem );

    /**
    * test SetIconColor method of AknIconUtils class.
    * @since S60 5.0
    * @param aItem never used.
    * @return Symbian OS error code.
    */
    virtual TInt TestUtilSetIconColorL( CStifItemParser& aItem );

    /**
    * test ExcludeFromCache method of AknIconUtils class.
    * @since S60 5.0
    * @param aItem never used.
    * @return Symbian OS error code.
    */
    virtual TInt TestUtilExcludeFromCacheL( CStifItemParser& aItem );

    /**
    * test DisableCompression method of AknIconUtils class.
    * @since S60 5.0
    * @param aItem never used.
    * @return Symbian OS error code.
    */
    virtual TInt TestUtilDisableCompressionL( CStifItemParser& aItem );

    /**
    * test ScaleBitmapL method of AknIconUtils class.
    * @since S60 5.0
    * @param aItem never used.
    * @return Symbian OS error code.
    */
    virtual TInt TestUtilScaleBitmapL( CStifItemParser& aItem );

private: // test functions in akninternaliconutils.h

    /**
    * test SetAppIcon method.
    * @since S60 5.0
    * @param aItem never used.
    * @return Symbian OS error code.
    */
    virtual TInt TestIntUtilSetAppIconL( CStifItemParser& aItem );

private:    // Data

    /**
     * ScreenSaver Property
     */
    TInt iOldScreenSaverProperty;

    };

#endif      // C_TESTSDKPICTOGRAPH_H

// End of File