|
1 /* |
|
2 * Copyright (c) 2006 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: cbsbitmap.h |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef __CBSBITMAP_H__ |
|
21 #define __CBSBITMAP_H__ |
|
22 |
|
23 #include <e32std.h> |
|
24 |
|
25 /** |
|
26 * |
|
27 */ |
|
28 NONSHARABLE_CLASS( CBSBitmap ): public CBase |
|
29 { |
|
30 public: |
|
31 /** |
|
32 * Two-phased constructor. |
|
33 * @param aBitmapId the bitmap id |
|
34 * @param aBitmapMaskId the bitmap mask id |
|
35 * @param aSkinId the skin id |
|
36 * @param aSkinMaskId the skin mask id |
|
37 * @param aBitmapFileId the bitmap file id |
|
38 */ |
|
39 IMPORT_C static CBSBitmap* NewL( TInt aBitmapId, |
|
40 TInt aBitmapMaskId, |
|
41 TInt aSkinIdMajor, |
|
42 TInt aSkinIdMinor, |
|
43 const TDesC8& aBitmapFileId ); |
|
44 |
|
45 /** |
|
46 * Two-phased constructor. |
|
47 * @see NewL |
|
48 */ |
|
49 IMPORT_C static CBSBitmap* NewLC( TInt aBitmapId, |
|
50 TInt aBitmapMaskId, |
|
51 TInt aSkinIdMajor, |
|
52 TInt aSkinIdMinor, |
|
53 const TDesC8& aBitmapFileId ); |
|
54 |
|
55 // destructor |
|
56 IMPORT_C virtual ~CBSBitmap(); |
|
57 |
|
58 private: |
|
59 /** |
|
60 * @see NewL |
|
61 */ |
|
62 CBSBitmap( TInt aBitmapId, |
|
63 TInt aBitmapMaskId, |
|
64 TInt aSkinIdMajor, |
|
65 TInt aSkinIdMinor ); |
|
66 |
|
67 /** |
|
68 * @see NewL |
|
69 */ |
|
70 void ConstructL( const TDesC8& aBitmapFileId ); |
|
71 |
|
72 public: |
|
73 /** |
|
74 * Getter for bitmap id |
|
75 * @return the bitmap id |
|
76 */ |
|
77 IMPORT_C TInt BitmapId() const; |
|
78 |
|
79 /** |
|
80 * Getter for bitmap mask id |
|
81 * @return the bitmap mask id |
|
82 */ |
|
83 IMPORT_C TInt BitmapMaskId() const; |
|
84 |
|
85 /** |
|
86 * Getter for skin id |
|
87 * @return the skin id |
|
88 */ |
|
89 IMPORT_C TInt SkinIdMajor() const; |
|
90 |
|
91 /** |
|
92 * Getter for skin mask id |
|
93 * @return the skin mask id |
|
94 */ |
|
95 IMPORT_C TInt SkinIdMinor() const; |
|
96 |
|
97 /** |
|
98 * Getter for bitmap file id |
|
99 * @return bitmap file id |
|
100 */ |
|
101 IMPORT_C const TDesC8& BitmapFileId() const; |
|
102 |
|
103 |
|
104 private: // data |
|
105 TInt iBitmapId; |
|
106 TInt iBitmapMaskId; |
|
107 TInt iSkinIdMajor; |
|
108 TInt iSkinIdMinor; |
|
109 HBufC8* iBitmapFileId; |
|
110 }; |
|
111 |
|
112 #endif // __CBSBITMAP_H__ |
|
113 |
|
114 |
|
115 // END OF FILE |
|
116 |