1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/os/graphics/graphicstest/graphicstestharness/inc/thashreferenceimages.h Fri Jun 15 03:10:57 2012 +0200
1.3 @@ -0,0 +1,51 @@
1.4 +// Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies).
1.5 +// All rights reserved.
1.6 +// This component and the accompanying materials are made available
1.7 +// under the terms of "Eclipse Public License v1.0"
1.8 +// which accompanies this distribution, and is available
1.9 +// at the URL "http://www.eclipse.org/legal/epl-v10.html".
1.10 +//
1.11 +// Initial Contributors:
1.12 +// Nokia Corporation - initial contribution.
1.13 +//
1.14 +// Contributors:
1.15 +//
1.16 +// Description:
1.17 +//
1.18 +
1.19 +#ifndef __THASREFERENCEIMAGES_H__
1.20 +#define __THASREFERENCEIMAGES_H__
1.21 +
1.22 +#include <test/testexecutestepbase.h>
1.23 +#include <w32std.h>
1.24 +
1.25 +
1.26 +class CTestStep;
1.27 +
1.28 +/**
1.29 + Class defines all the API's which are used to test outline and shadow effects
1.30 + */
1.31 +class CTHashReferenceImages : public CBase
1.32 + {
1.33 +public:
1.34 + IMPORT_C static CTHashReferenceImages* NewL(CTestStep* aStep, RFbsSession* aFbs, const TDesC *aPath);
1.35 + IMPORT_C virtual ~CTHashReferenceImages();
1.36 + CTHashReferenceImages(CTestStep* aStep, RFbsSession* aFbs);
1.37 + IMPORT_C void CompareHashValuesL(const TDesC& aIndexStr);
1.38 + IMPORT_C void GenerateHashAndReturnInHexFormatL(TDes &aHexString);
1.39 + IMPORT_C void SetScreenDeviceAndBitmap(CBitmapDevice* aBitmapDevice, CFbsBitmap* aBitmap, CFbsBitGc* aGc );
1.40 + IMPORT_C HBufC* GenerateHashIdStringLC(const TDesC& aTestCase, TInt aSubTestNumber, const TPtrC aName[], TInt aNameIndex,
1.41 + TInt aDisplayMode, TInt aOrientation);
1.42 + IMPORT_C void CopyScreenToBitmapL(const TDesC& aHashIndex);
1.43 +protected:
1.44 + void ConstructL(const TDesC *aPath);
1.45 +private:
1.46 + CFbsBitGc* iGc; //not owned
1.47 + CBitmapDevice* iBitmapDevice; //now owned
1.48 + RFbsSession* iFbs; //not owned
1.49 + CFbsBitmap* iBitmap; //not owned
1.50 + CTestStep* iStep; //not owned
1.51 + HBufC *iPath;
1.52 + };
1.53 +
1.54 +#endif