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