|
1 /* |
|
2 * Copyright (c) 2002-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: Active implementation of skin feature. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef CCASKINVARIANT20_H |
|
21 #define CCASKINVARIANT20_H |
|
22 |
|
23 // INCLUDES |
|
24 #include "MCASkinVariant.h" |
|
25 #include <e32base.h> |
|
26 #include <gdi.h> |
|
27 #include <AknsItemID.h> |
|
28 #include <AknIconUtils.h> |
|
29 |
|
30 |
|
31 // FORWARD DECLARATIONS |
|
32 class CCoeControl; |
|
33 class CAknsBasicBackgroundControlContext; |
|
34 class MCAOpBrandVariant; |
|
35 |
|
36 // CLASS DECLARATION |
|
37 |
|
38 /** |
|
39 * Active implementation of skin feature. |
|
40 * See base class MCASkinVariant.h for comments. |
|
41 * |
|
42 * @lib chat.app |
|
43 * @since 2.0 |
|
44 */ |
|
45 class CCASkinVariant20 : public CBase, public MCASkinVariant |
|
46 { |
|
47 public: // Constructors and destructor |
|
48 |
|
49 /** |
|
50 * Two-phased constructor. |
|
51 */ |
|
52 static CCASkinVariant20* NewL( |
|
53 MCAOpBrandVariant* aOpBrandVariant = NULL ); |
|
54 |
|
55 /** |
|
56 * Destructor. |
|
57 */ |
|
58 virtual ~CCASkinVariant20(); |
|
59 |
|
60 public: // Functions from base classes |
|
61 |
|
62 /** |
|
63 * From MCASkinVariant |
|
64 * See method comments from MCASkinVariant.h. |
|
65 * @since 2.0 |
|
66 */ |
|
67 TInt SkinFlag() const; |
|
68 void ClearChatListBoxBackGround( CWindowGc& aGc, |
|
69 const TRect& aUsedPortionOfViewRect, |
|
70 MAknsControlContext* aContext ); |
|
71 |
|
72 MAknsControlContext* MainPaneBackgroundContext() const; |
|
73 |
|
74 /** |
|
75 * From MCASkinVariant |
|
76 * @see MCASkinVariant |
|
77 */ |
|
78 void UpdateLayout(); |
|
79 |
|
80 TBool DrawSkinnedEditor( const CCoeControl* aControl, |
|
81 CWindowGc& aGc, |
|
82 TRect& aParentRect, |
|
83 TRect& aEditorRect, |
|
84 TRect& aOutlineRect ); |
|
85 |
|
86 |
|
87 CGulIcon* LoadBitmapL( TInt aBitmapId, TInt aMaskId, const TDesC& aFullPath, |
|
88 TBool aOverrideBrand = EFalse, |
|
89 TRgb* aCustomColor = NULL ); |
|
90 |
|
91 private: |
|
92 |
|
93 void MapFromBitmapIdToAknsItemId( TInt aBitmapId, |
|
94 TAknsItemID& aItemId, |
|
95 TInt& aColorGroupId ); |
|
96 |
|
97 private: |
|
98 |
|
99 /** |
|
100 * C++ default constructor. |
|
101 */ |
|
102 CCASkinVariant20(); |
|
103 |
|
104 /** |
|
105 * By default Symbian 2nd phase constructor is private. |
|
106 */ |
|
107 void ConstructL( MCAOpBrandVariant* aOpBrandVariant ); |
|
108 |
|
109 private: // Data |
|
110 |
|
111 // skin background control context |
|
112 CAknsBasicBackgroundControlContext* iBgContext; |
|
113 // doesn't own |
|
114 MCAOpBrandVariant* iOpBrandVariant; |
|
115 |
|
116 // owns, last used bitmap file |
|
117 HBufC* iBitmapFile; |
|
118 |
|
119 // doesn't own |
|
120 RFs& iFs; |
|
121 |
|
122 }; |
|
123 |
|
124 #endif // CCASKINVARIANT20_H |
|
125 |
|
126 // End of File |