|
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_SCREEN_DEVICE_H__) |
|
18 #define __T_DATA_FBS_SCREEN_DEVICE_H__ |
|
19 |
|
20 // User includes |
|
21 #include "T_DataFbsDevice.h" |
|
22 |
|
23 class CT_DataFbsScreenDevice : public CT_DataFbsDevice |
|
24 { |
|
25 public: |
|
26 static CT_DataFbsScreenDevice* NewL(); |
|
27 |
|
28 // CTPData implementation |
|
29 virtual TAny* GetObject(); |
|
30 virtual TBool DoCommandL(const TTEFFunction& aCommand, const TTEFSectionName& aSection, const TInt aAsyncErrorIndex); |
|
31 virtual void SetObjectL(TAny* aAny); |
|
32 ~CT_DataFbsScreenDevice(); |
|
33 void DestroyData(); |
|
34 virtual void DisownObjectL(); |
|
35 |
|
36 protected: |
|
37 CT_DataFbsScreenDevice(); |
|
38 void ConstructL(); |
|
39 |
|
40 // CT_DataGraphicsDeviceMap implementation |
|
41 virtual MGraphicsDeviceMap* GetGraphicsDeviceMap() const; |
|
42 |
|
43 // CT_DataGraphicsDevice implementation |
|
44 virtual CGraphicsDevice* GetGraphicsDevice() const; |
|
45 |
|
46 // CT_DataBitmapDevice implementation |
|
47 virtual CBitmapDevice* GetBitmapDevice() const; |
|
48 |
|
49 // CT_DataFbsDevice implementation |
|
50 virtual CFbsDevice* GetFbsDevice() const; |
|
51 |
|
52 private: |
|
53 void DoCmdNew(const TDesC& aSection); |
|
54 void DoCmdDestructor(); |
|
55 // void DoCmdSizeInTwips(); |
|
56 |
|
57 void DoCmdChangeScreenDeviceL(const TDesC& aSection); |
|
58 void DoCmdDrawSpriteBegin(); |
|
59 void DoCmdDrawSpriteEnd(); |
|
60 void DoCmdHardwareBitmap(); |
|
61 void DoCmdScreenNo(const TDesC& aSection); |
|
62 void DoCmdSetAutoUpdate(const TDesC& aSection); |
|
63 void DoCmdUpdateL(const TDesC& aSection); |
|
64 void DoCmdCancelSprite(); |
|
65 void DoCmdHideSpriteL(const TDesC& aSection); |
|
66 void DoCmdShowSpriteL(const TDesC& aSection); |
|
67 |
|
68 |
|
69 protected: |
|
70 /** test step reference*/ |
|
71 CFbsScreenDevice* iFbsScreenDevice; |
|
72 }; |
|
73 |
|
74 #endif /* __T_DATA_FBS_SCREEN_DEVICE_H__ */ |