|
1 /* |
|
2 * Copyright (c) 2004 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 |
|
18 |
|
19 #ifndef AKNINDICATORFADER_H |
|
20 #define AKNINDICATORFADER_H |
|
21 |
|
22 // INCLUDES |
|
23 #include <coecntrl.h> |
|
24 |
|
25 // FORWARD DECLARATIONS |
|
26 class CAknIndicatorContainer; |
|
27 class CFbsBitmap; |
|
28 class CFbsBitmapDevice; |
|
29 class CFbsBitGc; |
|
30 |
|
31 // CLASS DECLARATION |
|
32 |
|
33 /** |
|
34 * This class is not intended for further derivation. |
|
35 * |
|
36 * @since 2.8 |
|
37 * |
|
38 * @internal |
|
39 */ |
|
40 NONSHARABLE_CLASS(CAknIndicatorFader) : public CBase |
|
41 { |
|
42 public: |
|
43 enum TFadeEffect |
|
44 { |
|
45 EEffectNone, |
|
46 EEffectFadeToLeft, |
|
47 EEffectFadeToRight |
|
48 }; |
|
49 |
|
50 |
|
51 public: // Constructors and destructor |
|
52 |
|
53 /** |
|
54 * Two-phased constructor. |
|
55 * |
|
56 * @since 2.8 |
|
57 * |
|
58 * @return Newly constructed object. |
|
59 */ |
|
60 static CAknIndicatorFader* NewL(TSize aSize); |
|
61 |
|
62 /** |
|
63 * Destructor. |
|
64 */ |
|
65 virtual ~CAknIndicatorFader(); |
|
66 |
|
67 public: // New functions |
|
68 |
|
69 CFbsBitmap* FadeMask(CFbsBitmap* aOriginalMask) const; |
|
70 |
|
71 void SetActiveFadeEffect(TInt aActiveEffect); |
|
72 |
|
73 void SetActiveFadeSize(TSize aSize); |
|
74 |
|
75 private: |
|
76 |
|
77 /** |
|
78 * C++ default constructor. |
|
79 */ |
|
80 CAknIndicatorFader(TSize aSize); |
|
81 |
|
82 /** |
|
83 * By default Symbian 2nd phase constructor is private. |
|
84 */ |
|
85 void ConstructL(); |
|
86 |
|
87 |
|
88 void CreateEffect(TInt aEffect); |
|
89 |
|
90 void InitializeL(); |
|
91 |
|
92 TBool Initialized() const; |
|
93 |
|
94 |
|
95 private: // Data |
|
96 |
|
97 TSize iSize; |
|
98 TInt iActiveEffect; |
|
99 |
|
100 CFbsBitmap* iFadingBitmap; // Used in fading |
|
101 CFbsBitmapDevice* iFadingDevice; |
|
102 CFbsBitGc* iFadingGc; |
|
103 |
|
104 CFbsBitmap* iInvertingBitmap; // Used in inverting |
|
105 CFbsBitmapDevice* iInvertingDevice; |
|
106 CFbsBitGc* iInvertingGc; |
|
107 |
|
108 CFbsBitmap* iInvertedBitmap; // Inverted bitmap |
|
109 CFbsBitmapDevice* iInvertedDevice; |
|
110 CFbsBitGc* iInvertedGc; |
|
111 |
|
112 CFbsBitmap* iFadedBitmap; // Faded bitmap |
|
113 CFbsBitmapDevice* iFaderDevice; |
|
114 CFbsBitGc* iFaderGc; |
|
115 }; |
|
116 |
|
117 #endif // AKNINDICATORFADER_H |
|
118 |
|
119 // End of File |