1 /* |
|
2 * Copyright (c) 2004-2005 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: Converts basic icon to CFbsBitmap. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef CSATSBASICICONCONVERTER_H |
|
21 #define CSATSBASICICONCONVERTER_H |
|
22 |
|
23 // INCLUDES |
|
24 #include "CSatSIconConverter.h" |
|
25 |
|
26 // CLASS DECLARATION |
|
27 |
|
28 /** |
|
29 * Converts the basic icon to CFbsBitmap |
|
30 * |
|
31 * @lib SatEngine.lib |
|
32 * @since 2.6 |
|
33 */ |
|
34 class CSatSBasicIconConverter : public CSatSIconConverter |
|
35 { |
|
36 public: // Constructors and destructor |
|
37 |
|
38 /** |
|
39 * C++ default constructor. |
|
40 */ |
|
41 CSatSBasicIconConverter(); |
|
42 |
|
43 /** |
|
44 * Destructor. |
|
45 */ |
|
46 virtual ~CSatSBasicIconConverter() {}; |
|
47 |
|
48 public: // Functions from base classes |
|
49 |
|
50 /** |
|
51 * From CSatSIconConverter |
|
52 * @param aData Icon basic data. |
|
53 * @param aClut Color lookup table. Not used in basic icon |
|
54 * conversion. |
|
55 * @return Bitmap. |
|
56 */ |
|
57 CFbsBitmap* ConvertL( |
|
58 const TDesC8& aData, |
|
59 const TDesC8& aClut ) const; |
|
60 |
|
61 private: // New functions |
|
62 |
|
63 /** |
|
64 * Checks that the icon data has valid length. |
|
65 * @param aData Image data. |
|
66 */ |
|
67 void CheckDataValidityL( |
|
68 const TDesC8& aData ) const; |
|
69 |
|
70 }; |
|
71 |
|
72 #endif // CSATSBASICICONCONVERTER_H |
|
73 |
|
74 // End of File |
|