|
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 |
|
18 /** |
|
19 @test |
|
20 @internalComponent |
|
21 |
|
22 This contains CT_DataFbsColor256BitmapUtil |
|
23 */ |
|
24 |
|
25 #if (!defined __T_DATA_FBS_COLOR256_BITMAP_UTIL_H__) |
|
26 #define __T_DATA_FBS_COLOR256_BITMAP_UTIL_H__ |
|
27 |
|
28 // User Includes |
|
29 #include "DataWrapperBase.h" |
|
30 // EPOC includes |
|
31 #include <e32std.h> |
|
32 #include <fbs.h> |
|
33 #include "DataWrapperBase.h" |
|
34 |
|
35 class CT_DataFbsColor256BitmapUtil : public CDataWrapperBase |
|
36 { |
|
37 public: |
|
38 |
|
39 static CT_DataFbsColor256BitmapUtil* NewL(); |
|
40 |
|
41 virtual TBool DoCommandL(const TTEFFunction& aCommand, const TTEFSectionName& aSection, const TInt aAsyncErrorIndex); |
|
42 |
|
43 ~CT_DataFbsColor256BitmapUtil(); |
|
44 virtual TAny* GetObject(); |
|
45 |
|
46 protected: |
|
47 CT_DataFbsColor256BitmapUtil(); |
|
48 void ConstructL(); |
|
49 |
|
50 private: |
|
51 void DestroyData(); |
|
52 void DoCmdNewL(const TDesC& aSection); |
|
53 void DoCmdCopyBitmapL(const TDesC& aSection); |
|
54 |
|
55 TBool ReadDither(CDataWrapper& aDataWrapper, const TDesC& aSection, CFbsColor256BitmapUtil::TDither& aDither); |
|
56 |
|
57 private: |
|
58 /** CFbsColor256BitmapUtil class instance to work with*/ |
|
59 CFbsColor256BitmapUtil* iFbsColor256BitmapUtil; |
|
60 }; |
|
61 |
|
62 #endif /* __T_DATA_FBS_COLOR256_BITMAP_UTIL_H__ */ |