|
1 /* |
|
2 * Copyright (c) 2009 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: |
|
15 * |
|
16 */ |
|
17 #ifndef AKNEXTENDEDFADER_H__ |
|
18 #define AKNEXTENDEDFADER_H__ |
|
19 |
|
20 #include <graphics/wsplugin.h> // For window server plugin interface |
|
21 |
|
22 #include "AknExtendedFaderStartupWatcher.h" |
|
23 #include "AknExtendedFaderColorSchemeWatcher.h" |
|
24 |
|
25 class CFbsDrawDevice; |
|
26 class MWsGraphicDrawerEnvironment; |
|
27 |
|
28 |
|
29 class CAknExtendedFader : public CWsPlugin, |
|
30 public MWsFader, |
|
31 public MAknExtendedFaderStartupObserver, |
|
32 public MAknExtendedFaderColorSchemeObserver |
|
33 { |
|
34 friend class CFbsDevice; |
|
35 |
|
36 public: |
|
37 enum { EImplUid = 0x2001B299 }; |
|
38 |
|
39 public: |
|
40 static CAknExtendedFader* CreateL(); |
|
41 ~CAknExtendedFader(); |
|
42 void ConstructL(MWsGraphicDrawerEnvironment& aEnv,const TDesC8& aData); |
|
43 const TDesC& PluginName() const; |
|
44 |
|
45 private: // Own implementation |
|
46 CAknExtendedFader(); |
|
47 |
|
48 TBool DoFastFading(CFbsBitGc* aBitGc, const TRegion * aRegion); |
|
49 TBool DoFastFading16MX(CFbsDrawDevice* aDrawDevice, const TRegion * aRegion); |
|
50 TBool DoFastFading64K(CFbsDrawDevice* aDrawDevice, const TRegion * aRegion); |
|
51 |
|
52 protected: // from MWsObjectProvider |
|
53 TAny* ResolveObjectInterface(TUint aTypeId); |
|
54 |
|
55 |
|
56 protected: // from MWsFader |
|
57 void SetFadingParameters(const TDesC8& aData); |
|
58 void FadeArea(CFbsBitGc* aBitGc,const TRegion * aRegion); |
|
59 |
|
60 |
|
61 protected: // MAknExtendedFaderStartupObserver |
|
62 void GlobalSystemStateChangedL(TPSGlobalSystemState aState); |
|
63 |
|
64 |
|
65 protected: // MAknExtendedFaderColorChangeObserver |
|
66 void ColorSchemeChanged(const TUint32& aNewColor, const TUint8& aNewBlackMap, const TUint8& aNewWhiteMap); |
|
67 |
|
68 |
|
69 private: |
|
70 CAknExtendedFaderStartupWatcher* iStartupWatcher; |
|
71 CAknExtendedFaderColorSchemeWatcher* iColorSchemeWatcher; |
|
72 |
|
73 TUint32 iColorOverlayR, iColorOverlayG, iColorOverlayB; |
|
74 TUint8 iBlackMap, iWhiteMap; |
|
75 }; |
|
76 |
|
77 #endif //__CFADER_H__ |