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