|
1 /* |
|
2 * Copyright (c) 2010 Ixonos Plc. |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of the "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 * Ixonos Plc |
|
14 * |
|
15 * Description: |
|
16 * |
|
17 */ |
|
18 |
|
19 |
|
20 #ifndef CWAITINDICATOR_H |
|
21 #define CWAITINDICATOR_H |
|
22 |
|
23 // INCLUDES |
|
24 #include "TControlItem.h" |
|
25 #include <e32base.h> |
|
26 |
|
27 // FORWARD DECLARATIONS |
|
28 class CWindowGc; |
|
29 class CFbsBitmap; |
|
30 |
|
31 // CLASS DECLARATION |
|
32 /** |
|
33 * CWaitIndicator control class. |
|
34 * |
|
35 * |
|
36 * @lib ImageEditor.app/ImageEditor.exe |
|
37 * @since 2.6 |
|
38 */ |
|
39 NONSHARABLE_CLASS( CWaitIndicator ) : private CTimer, public TControlItem |
|
40 { |
|
41 public: // Constructors and destructor |
|
42 |
|
43 static CWaitIndicator* NewL(); |
|
44 ~CWaitIndicator(); |
|
45 |
|
46 public: // New functions |
|
47 |
|
48 TBool IsVisible(); |
|
49 void Show(); |
|
50 void Hide(); |
|
51 |
|
52 public: |
|
53 |
|
54 void SetRect( const TRect& aRect ); |
|
55 void Draw( CWindowGc& aGc ) const; |
|
56 |
|
57 private: // From CTimer |
|
58 |
|
59 void RunL(); |
|
60 |
|
61 private: // From TIVControlItem |
|
62 |
|
63 void Draw( const TRect& aRect ) const; |
|
64 void SizeChanged(); |
|
65 |
|
66 private: // Constructors and destructor |
|
67 |
|
68 CWaitIndicator(); |
|
69 void ConstructL(); |
|
70 |
|
71 private: //data |
|
72 |
|
73 // Bitmaps and masks for wait note |
|
74 RPointerArray<CFbsBitmap> iBitmaps; |
|
75 |
|
76 // Current index of waitnote bitmap animation |
|
77 TInt iIndex; |
|
78 |
|
79 }; |
|
80 #endif // CWAITINDICATOR_H |
|
81 |
|
82 // End of File |