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