sl@0
|
1 |
// Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies).
|
sl@0
|
2 |
// All rights reserved.
|
sl@0
|
3 |
// This component and the accompanying materials are made available
|
sl@0
|
4 |
// under the terms of "Eclipse Public License v1.0"
|
sl@0
|
5 |
// which accompanies this distribution, and is available
|
sl@0
|
6 |
// at the URL "http://www.eclipse.org/legal/epl-v10.html".
|
sl@0
|
7 |
//
|
sl@0
|
8 |
// Initial Contributors:
|
sl@0
|
9 |
// Nokia Corporation - initial contribution.
|
sl@0
|
10 |
//
|
sl@0
|
11 |
// Contributors:
|
sl@0
|
12 |
//
|
sl@0
|
13 |
// Description:
|
sl@0
|
14 |
//
|
sl@0
|
15 |
|
sl@0
|
16 |
#ifndef __THASREFERENCEIMAGES_H__
|
sl@0
|
17 |
#define __THASREFERENCEIMAGES_H__
|
sl@0
|
18 |
|
sl@0
|
19 |
#include <test/testexecutestepbase.h>
|
sl@0
|
20 |
#include <w32std.h>
|
sl@0
|
21 |
|
sl@0
|
22 |
|
sl@0
|
23 |
class CTestStep;
|
sl@0
|
24 |
|
sl@0
|
25 |
/**
|
sl@0
|
26 |
Class defines all the API's which are used to test outline and shadow effects
|
sl@0
|
27 |
*/
|
sl@0
|
28 |
class CTHashReferenceImages : public CBase
|
sl@0
|
29 |
{
|
sl@0
|
30 |
public:
|
sl@0
|
31 |
IMPORT_C static CTHashReferenceImages* NewL(CTestStep* aStep, RFbsSession* aFbs, const TDesC *aPath);
|
sl@0
|
32 |
IMPORT_C virtual ~CTHashReferenceImages();
|
sl@0
|
33 |
CTHashReferenceImages(CTestStep* aStep, RFbsSession* aFbs);
|
sl@0
|
34 |
IMPORT_C void CompareHashValuesL(const TDesC& aIndexStr);
|
sl@0
|
35 |
IMPORT_C void GenerateHashAndReturnInHexFormatL(TDes &aHexString);
|
sl@0
|
36 |
IMPORT_C void SetScreenDeviceAndBitmap(CBitmapDevice* aBitmapDevice, CFbsBitmap* aBitmap, CFbsBitGc* aGc );
|
sl@0
|
37 |
IMPORT_C HBufC* GenerateHashIdStringLC(const TDesC& aTestCase, TInt aSubTestNumber, const TPtrC aName[], TInt aNameIndex,
|
sl@0
|
38 |
TInt aDisplayMode, TInt aOrientation);
|
sl@0
|
39 |
IMPORT_C void CopyScreenToBitmapL(const TDesC& aHashIndex);
|
sl@0
|
40 |
protected:
|
sl@0
|
41 |
void ConstructL(const TDesC *aPath);
|
sl@0
|
42 |
private:
|
sl@0
|
43 |
CFbsBitGc* iGc; //not owned
|
sl@0
|
44 |
CBitmapDevice* iBitmapDevice; //now owned
|
sl@0
|
45 |
RFbsSession* iFbs; //not owned
|
sl@0
|
46 |
CFbsBitmap* iBitmap; //not owned
|
sl@0
|
47 |
CTestStep* iStep; //not owned
|
sl@0
|
48 |
HBufC *iPath;
|
sl@0
|
49 |
};
|
sl@0
|
50 |
|
sl@0
|
51 |
#endif
|