equal
deleted
inserted
replaced
|
1 // Copyright (c) 1996-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 __TCLEAN_H__ |
|
17 #define __TCLEAN_H__ |
|
18 |
|
19 #include <fbs.h> |
|
20 #include "TGraphicsHarness.h" |
|
21 |
|
22 enum TTestType |
|
23 { |
|
24 EFont1, |
|
25 EFont2, |
|
26 EBitmap1, |
|
27 EPile1, |
|
28 ESession1, |
|
29 ESession2, |
|
30 ETypefaceStore1, |
|
31 EBadMessage |
|
32 }; |
|
33 |
|
34 class CTClean : public CTGraphicsBase |
|
35 { |
|
36 public: |
|
37 CTClean(CTestStep* aStep); |
|
38 ~CTClean(); |
|
39 void DeleteScanLineBuffer(); |
|
40 protected: |
|
41 //from CTGraphicsStep |
|
42 virtual void RunTestCaseL(TInt aCurTestCase); |
|
43 void ConstructL(); |
|
44 private: |
|
45 void LaunchThread(TTestType aType); |
|
46 void DeadThread(); |
|
47 private: |
|
48 RFbsSession* iFbs; |
|
49 CFbsTypefaceStore* iStore; |
|
50 CFbsBitmap *iBitmap; |
|
51 CTrapCleanup* iTc; |
|
52 TBool iShutdownFbs; |
|
53 }; |
|
54 |
|
55 class CTCleanStep : public CTGraphicsStep |
|
56 { |
|
57 public: |
|
58 CTCleanStep(); |
|
59 protected: |
|
60 //from CTGraphicsStep |
|
61 virtual CTGraphicsBase* CreateTestL(); |
|
62 }; |
|
63 |
|
64 _LIT(KTCleanStep,"TClean"); |
|
65 |
|
66 |
|
67 |
|
68 #endif |