|
1 /* |
|
2 * Copyright (c) 2006-2006 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: Application side control in the status pane battery area. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef C_AKNBATTERYINDICATORCONTAINER_H |
|
20 #define C_AKNBATTERYINDICATORCONTAINER_H |
|
21 |
|
22 #include <bacntf.h> |
|
23 #include <coecntrl.h> |
|
24 #include <AknControl.h> |
|
25 |
|
26 class CAknBatteryPane; |
|
27 |
|
28 /** |
|
29 * Application side control in the status pane battery area. |
|
30 * |
|
31 * @since 3.2 |
|
32 * @lib Avkon |
|
33 */ |
|
34 NONSHARABLE_CLASS(CAknBatteryIndicatorContainer) : public CAknControl |
|
35 { |
|
36 public: |
|
37 |
|
38 /** |
|
39 * Standard constructor |
|
40 */ |
|
41 CAknBatteryIndicatorContainer(); |
|
42 |
|
43 /** |
|
44 * Destructor |
|
45 */ |
|
46 ~CAknBatteryIndicatorContainer(); |
|
47 |
|
48 /** |
|
49 * Construct from resources. |
|
50 * |
|
51 * @param aReader resource reader. |
|
52 */ |
|
53 void ConstructFromResourceL(TResourceReader& aReader); |
|
54 |
|
55 public: // From CCoeControl |
|
56 |
|
57 /** |
|
58 * From CCoeControl. Returns the number of component controls. |
|
59 */ |
|
60 TInt CountComponentControls() const; |
|
61 |
|
62 /** |
|
63 * From CCoeControl. Returns the specified component control. |
|
64 */ |
|
65 CCoeControl* ComponentControl(TInt aIndex) const; |
|
66 |
|
67 protected: // From CCoeControl |
|
68 |
|
69 /** |
|
70 * From CCoeControl. Handles the size change events. |
|
71 */ |
|
72 void SizeChanged(); |
|
73 |
|
74 private: |
|
75 |
|
76 CAknBatteryPane* iPane; |
|
77 TInt iSpare1; |
|
78 TInt iSpare2; |
|
79 |
|
80 }; |
|
81 |
|
82 #endif // C_AKNBATTERYINDICATORCONTAINER_H |
|
83 |