|
1 /* |
|
2 * ============================================================================ |
|
3 * Name : bctestaknbattery.h |
|
4 * Part of : BCTest / bctestdomaiwakn |
|
5 * Description : for testing the protected methods of aknbattery.h |
|
6 * Version : %version: 1 % << Don't touch! Updated by Synergy at check-out. |
|
7 * |
|
8 * Copyright © 2007. All rights reserved. |
|
9 * This material, including documentation and any related computer |
|
10 * programs, is protected by copyright controlled by Nokia. All |
|
11 * rights are reserved. Copying, including reproducing, storing, |
|
12 * adapting or translating, any or all of this material requires the |
|
13 * prior written consent of Nokia. This material also contains |
|
14 * confidential information which may not be disclosed to others |
|
15 * without the prior written consent of Nokia. |
|
16 * ============================================================================ |
|
17 * Template version: 4.2 |
|
18 */ |
|
19 |
|
20 |
|
21 #ifndef C_CBCTESTDOMAKNBATTERYPANE_H |
|
22 #define C_CBCTESTDOMAKNBATTERYPANE_H |
|
23 |
|
24 #include <aknbattery.h> //for testing protected APIs in aknbattery.h |
|
25 |
|
26 /** |
|
27 * test protected APIs in aknbattery.h . |
|
28 * |
|
29 * |
|
30 * @code |
|
31 * |
|
32 * @endcode |
|
33 * |
|
34 * @lib |
|
35 * @since S60 v5.0 |
|
36 */ |
|
37 class CBCTestDomAknBatteryPane : public CAknBatteryPane |
|
38 { |
|
39 |
|
40 public: |
|
41 |
|
42 CBCTestDomAknBatteryPane(); |
|
43 |
|
44 /** |
|
45 * Destructor. |
|
46 */ |
|
47 virtual ~CBCTestDomAknBatteryPane(); |
|
48 |
|
49 |
|
50 |
|
51 // from base class CAknBatteryPane |
|
52 /** |
|
53 * Handles a change to the control's resources of type aType |
|
54 * which are shared across the environment. |
|
55 * |
|
56 * @since S60 v5.0 |
|
57 * @param aType Event type. |
|
58 */ |
|
59 IMPORT_C void HandleResourceChange( TInt aType ); |
|
60 |
|
61 /** |
|
62 * From CCoeControl. |
|
63 * Returns number of controls inside the context pane control. |
|
64 * |
|
65 * @since S60 v5.0 |
|
66 * @return Number of component controls. |
|
67 */ |
|
68 IMPORT_C TInt CountComponentControls() const; |
|
69 |
|
70 /** |
|
71 * From CCoeControl. |
|
72 * Returns a control determined by control id. |
|
73 * |
|
74 * @since S60 v5.0 |
|
75 * @param anIndex Index of a control to be returned. |
|
76 * @return Pointer to control |
|
77 */ |
|
78 IMPORT_C CCoeControl* ComponentControl(TInt aIndex) const; |
|
79 |
|
80 private: |
|
81 |
|
82 /** |
|
83 * Handle PointerEvent.This is an empty function. |
|
84 * |
|
85 * @since S60 v5.0 |
|
86 * @param aPointerEvent a TPointerEvent object reference. |
|
87 */ |
|
88 |
|
89 void HandlePointerEventL(const TPointerEvent& aPointerEvent); |
|
90 |
|
91 }; |
|
92 |
|
93 #endif // C_CBCTESTDOMAKNBATTERYPANE_H |