|
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: Interface class for skin variant. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef MCASKINVARIANT_H |
|
21 #define MCASKINVARIANT_H |
|
22 |
|
23 // INCLUDES |
|
24 #include <e32base.h> |
|
25 |
|
26 // FORWARD DECLARATIONS |
|
27 class CWindowGc; |
|
28 class CCoeControl; |
|
29 class MAknsControlContext; |
|
30 class CGulIcon; |
|
31 class TRgb; |
|
32 |
|
33 // CLASS DECLARATION |
|
34 |
|
35 /** |
|
36 * Interface class for skin variant. |
|
37 * @lib chat.app |
|
38 * @since 1.2s |
|
39 */ |
|
40 class MCASkinVariant |
|
41 { |
|
42 |
|
43 public: // New functions |
|
44 |
|
45 /** |
|
46 * Returns flag to enable/disable skin. |
|
47 * @since 1.2s |
|
48 * @return TInt, flag. |
|
49 */ |
|
50 virtual TInt SkinFlag() const = 0; |
|
51 /** |
|
52 * Clears listbox background. |
|
53 * @since 1.2s |
|
54 * @param aGc, graphics context to draw to. |
|
55 * @param aUsedPortionOfViewRect, rect to draw to. |
|
56 * @param aContext, skin control context. |
|
57 */ |
|
58 virtual void ClearChatListBoxBackGround( |
|
59 CWindowGc& aGc, |
|
60 const TRect& aUsedPortionOfViewRect, |
|
61 MAknsControlContext* aContext ) = 0; |
|
62 /** |
|
63 * Returns main pane background control context. |
|
64 * @since 1.2s |
|
65 * @return MAknsControlContext, skin control context. |
|
66 */ |
|
67 virtual MAknsControlContext* MainPaneBackgroundContext() const = 0; |
|
68 |
|
69 /** |
|
70 * Update layout for skinvariant |
|
71 * @return None |
|
72 */ |
|
73 virtual void UpdateLayout() = 0; |
|
74 |
|
75 /** |
|
76 * Draws skinned version of the message editor. |
|
77 * @since 1.2s |
|
78 * @param aGc, graphics context. |
|
79 * @param aParentRect, rects needed for drawing |
|
80 * @param aEditorRect |
|
81 * @param aOutlineRect |
|
82 * @return TBool, whether skins were drawn or not. |
|
83 */ |
|
84 virtual TBool DrawSkinnedEditor( const CCoeControl* aControl, |
|
85 CWindowGc& aGc, |
|
86 TRect& aParentRect, |
|
87 TRect& aEditorRect, |
|
88 TRect& aOutlineRect ) = 0; |
|
89 |
|
90 /** |
|
91 * Loads skinned/normal IM application bitmaps. |
|
92 * @since 1.2s |
|
93 * @param aBitmapId, bitmap id |
|
94 * @param aMaskId, bitmap mask's id |
|
95 * @param aFullPath, bitmap path |
|
96 * @param aOverrideBrand, if true, bitmap is got from skins, not through |
|
97 * brand bitmaps (if brand is active) |
|
98 * @param aCustomColor If provided, will change the color of the bitmap |
|
99 * to this color. |
|
100 * @return CGulIcon, created icon, user of this method gets the ownership |
|
101 */ |
|
102 virtual CGulIcon* LoadBitmapL( TInt aBitmapId, TInt aMaskId, |
|
103 const TDesC& aFullPath, |
|
104 TBool aOverrideBrand = EFalse, |
|
105 TRgb* aCustomColor = NULL ) = 0; |
|
106 |
|
107 }; |
|
108 |
|
109 #endif // MCASKINVARIANT_H |
|
110 |
|
111 // End of File |