|
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 the License "Symbian Foundation License v1.0" |
|
6 // which accompanies this distribution, and is available |
|
7 // at the URL "http://www.symbianfoundation.org/legal/sfl-v10.html". |
|
8 // |
|
9 // Initial Contributors: |
|
10 // Nokia Corporation - initial contribution. |
|
11 // |
|
12 // Contributors: |
|
13 // |
|
14 // Description: |
|
15 // |
|
16 |
|
17 #if (!defined __T_DATA_FBS_BITMAP_DEVICE_H__) |
|
18 #define __T_DATA_FBS_BITMAP_DEVICE_H__ |
|
19 |
|
20 // User includes |
|
21 #include "T_DataFbsDevice.h" |
|
22 |
|
23 class CT_DataFbsBitmapDevice : public CT_DataFbsDevice |
|
24 { |
|
25 public: |
|
26 static CT_DataFbsBitmapDevice* NewL(); |
|
27 |
|
28 ~CT_DataFbsBitmapDevice(); |
|
29 |
|
30 // CTPData implementation |
|
31 virtual TBool DoCommandL(const TTEFFunction& aCommand, const TTEFSectionName& aSection, const TInt aAsyncErrorIndex); |
|
32 |
|
33 virtual TAny* GetObject(); |
|
34 virtual void SetObjectL(TAny* aObject); |
|
35 virtual void DisownObjectL(); |
|
36 void DestroyData(); |
|
37 |
|
38 protected: |
|
39 CT_DataFbsBitmapDevice(); |
|
40 void ConstructL(); |
|
41 |
|
42 // CT_DataGraphicsDeviceMap implementation |
|
43 virtual MGraphicsDeviceMap* GetGraphicsDeviceMap() const; |
|
44 |
|
45 // CT_DataGraphicsDevice implementation |
|
46 virtual CGraphicsDevice* GetGraphicsDevice() const; |
|
47 |
|
48 // CT_DataBitmapDevice implementation |
|
49 virtual CBitmapDevice* GetBitmapDevice() const; |
|
50 |
|
51 // CT_DataFbsDevice implementation |
|
52 virtual CFbsDevice* GetFbsDevice() const; |
|
53 |
|
54 private: |
|
55 void DoCmdNewL(const TDesC& aSection); |
|
56 void DoCmdDestructor(); |
|
57 void DoCmdDrawingBegin(const TDesC& aSection); |
|
58 void DoCmdDrawingEnd(const TDesC& aSection); |
|
59 void DoCmdResize(const TDesC& aSection); |
|
60 void DoCmdSwapWidthAndHeight(); |
|
61 |
|
62 |
|
63 protected: |
|
64 /** test step reference*/ |
|
65 CFbsBitmapDevice* iFbsBitmapDevice; |
|
66 }; |
|
67 |
|
68 #endif /* __T_DATA_FBS_BITMAP_DEVICE_H__ */ |