|
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_DataBitmapUtil |
|
23 */ |
|
24 |
|
25 #if (!defined __T_DATA_BITMAP_UTIL_H__) |
|
26 #define __T_DATA_BITMAP_UTIL_H__ |
|
27 |
|
28 // User Includes |
|
29 #include "DataWrapperBase.h" |
|
30 |
|
31 // EPOC includes |
|
32 #include <e32std.h> |
|
33 #include <fbs.h> |
|
34 |
|
35 class CT_DataBitmapUtil : public CDataWrapperBase |
|
36 { |
|
37 public: |
|
38 CT_DataBitmapUtil(); |
|
39 ~CT_DataBitmapUtil(); |
|
40 |
|
41 static CT_DataBitmapUtil* NewL(); |
|
42 |
|
43 virtual TBool DoCommandL(const TTEFFunction& aCommand, const TTEFSectionName& aSection, const TInt aAsyncErrorIndex); |
|
44 virtual TAny* GetObject(); |
|
45 virtual void SetObjectL(TAny* aObject); |
|
46 virtual void DisownObjectL(); |
|
47 void DestroyData(); |
|
48 |
|
49 private: |
|
50 void ConstructL(); |
|
51 |
|
52 static CT_DataBitmapUtil* GetBitmapUtilDataObjectFromParameterL(CDataWrapper& aDataWrapper, const TDesC& aParameterName, const TDesC& aSection); |
|
53 |
|
54 void DoCmdNewL(const TDesC& aSection); |
|
55 void DoCmdBeginL(const TDesC& aSection); |
|
56 void DoCmdEnd(); |
|
57 void DoCmdSetPixelL(const TDesC& aSection); |
|
58 void DoCmdGetPixel(const TDesC& aSection); |
|
59 void DoCmdSetPos(const TDesC& aSection); |
|
60 void DoCmdDecXPos(); |
|
61 void DoCmdDecYPos(); |
|
62 void DoCmdIncXPos(); |
|
63 void DoCmdIncYPos(); |
|
64 |
|
65 private: |
|
66 /** TBitmapUtil class instance that is tested */ |
|
67 TBitmapUtil* iBitmapUtil; |
|
68 }; |
|
69 |
|
70 #endif /* __T_DATA_BITMAP_UTIL_H__ */ |