|
1 /* |
|
2 * Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: |
|
15 * |
|
16 */ |
|
17 |
|
18 /** |
|
19 @test |
|
20 @internalComponent |
|
21 |
|
22 This contains CT_DataFbsBitmapDevice |
|
23 */ |
|
24 |
|
25 #if (!defined __T_DATA_FBS_BITMAP_DEVICE_H__) |
|
26 #define __T_DATA_FBS_BITMAP_DEVICE_H__ |
|
27 |
|
28 // User includes |
|
29 #include "T_DataFbsDevice.h" |
|
30 |
|
31 class CT_DataFbsBitmapDevice : public CT_DataFbsDevice |
|
32 { |
|
33 public: |
|
34 static CT_DataFbsBitmapDevice* NewL(); |
|
35 |
|
36 ~CT_DataFbsBitmapDevice(); |
|
37 |
|
38 // CTPData implementation |
|
39 virtual TBool DoCommandL(const TTEFFunction& aCommand, const TTEFSectionName& aSection, const TInt aAsyncErrorIndex); |
|
40 |
|
41 virtual TAny* GetObject(); |
|
42 virtual void SetObjectL(TAny* aObject); |
|
43 virtual void DisownObjectL(); |
|
44 void DestroyData(); |
|
45 |
|
46 protected: |
|
47 CT_DataFbsBitmapDevice(); |
|
48 void ConstructL(); |
|
49 |
|
50 // CT_DataGraphicsDeviceMap implementation |
|
51 virtual MGraphicsDeviceMap* GetGraphicsDeviceMap() const; |
|
52 |
|
53 // CT_DataGraphicsDevice implementation |
|
54 virtual CGraphicsDevice* GetGraphicsDevice() const; |
|
55 |
|
56 // CT_DataBitmapDevice implementation |
|
57 virtual CBitmapDevice* GetBitmapDevice() const; |
|
58 |
|
59 // CT_DataFbsDevice implementation |
|
60 virtual CFbsDevice* GetFbsDevice() const; |
|
61 |
|
62 private: |
|
63 void DoCmdNewL(const TDesC& aSection); |
|
64 void DoCmdDestructor(); |
|
65 void DoCmdDrawingBegin(const TDesC& aSection); |
|
66 void DoCmdDrawingEnd(const TDesC& aSection); |
|
67 void DoCmdResize(const TDesC& aSection); |
|
68 void DoCmdSwapWidthAndHeight(); |
|
69 |
|
70 |
|
71 protected: |
|
72 /** test step reference*/ |
|
73 CFbsBitmapDevice* iFbsBitmapDevice; |
|
74 }; |
|
75 |
|
76 #endif /* __T_DATA_FBS_BITMAP_DEVICE_H__ */ |