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