|
1 /* |
|
2 * ============================================================================ |
|
3 * Name : bctestdomakncharmap.h |
|
4 * Part of : BCTest / bctestdomaiwakn |
|
5 * Description : for indirectly testing APIs in akncharmap.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 #ifndef C_CBCTESTDOMCAKNCHARMAP_H |
|
21 #define C_CBCTESTDOMCAKNCHARMAP_H |
|
22 |
|
23 #include <akncharmap.h>// for indirectly testing APIs in akncharmap.h |
|
24 |
|
25 /** |
|
26 * for indirectly testing APIs in akncharmap.h . |
|
27 * |
|
28 * |
|
29 * @code |
|
30 * |
|
31 * @endcode |
|
32 * |
|
33 * @lib |
|
34 * @since S60 v5.0 |
|
35 */ |
|
36 class CBCTestDomCAknCharMap : public CAknCharMap |
|
37 { |
|
38 |
|
39 public: |
|
40 /** |
|
41 * constructor. |
|
42 */ |
|
43 |
|
44 CBCTestDomCAknCharMap (); |
|
45 |
|
46 /** |
|
47 * Destructor. |
|
48 */ |
|
49 virtual ~CBCTestDomCAknCharMap (); |
|
50 |
|
51 // from base class CAknCharMap |
|
52 |
|
53 /** |
|
54 * from CAknCharMap. |
|
55 * for testing CAknCharMap::SizeChanged() . |
|
56 * |
|
57 * @since S60 v5.0 |
|
58 */ |
|
59 IMPORT_C void SizeChanged(); |
|
60 |
|
61 /** |
|
62 * from CAknCharMap. |
|
63 * for testing CAknCharMap::HandleResourceChange(). |
|
64 * |
|
65 * @since S60 v5.0 |
|
66 * @param aType Resource type. |
|
67 * @return Pointer to control |
|
68 */ |
|
69 IMPORT_C void HandleResourceChange(TInt aType); |
|
70 |
|
71 /** |
|
72 * from CAknCharMap. |
|
73 * for testing CAknCharMap::CountComponentControls(). |
|
74 * |
|
75 * @since S60 v5.0 |
|
76 * @param anIndex Index of a control to be returned. |
|
77 * @return Count of component controls. |
|
78 */ |
|
79 IMPORT_C TInt CountComponentControls() const; |
|
80 |
|
81 /** |
|
82 * from CAknCharMap. |
|
83 * for testing CAknCharMap::ComponentControl(). |
|
84 * |
|
85 * @since S60 v5.0 |
|
86 * @param anIndex Index of a control to be returned. |
|
87 * @return Pointer to control |
|
88 */ |
|
89 IMPORT_C CCoeControl* ComponentControl(TInt aIndex) const; |
|
90 |
|
91 private: |
|
92 /** |
|
93 * This function handles pointer events directed at the charmapdialog. |
|
94 * |
|
95 * @since S60 v5.0 |
|
96 * @param aScrollBar The scrollbar to be observed. |
|
97 * @param aEventType The incomming event type so that correct |
|
98 * functionality can be done. |
|
99 */ |
|
100 void HandleScrollEventL( CEikScrollBar* aScrollBar, |
|
101 TEikScrollEvent aEventType ); |
|
102 |
|
103 // from base class CCoeContrl |
|
104 |
|
105 /** |
|
106 * from CCoeContrl. |
|
107 * Reserved_2. |
|
108 * |
|
109 * @since S60 v5.0 |
|
110 */ |
|
111 void Reserved_2(); |
|
112 |
|
113 /** |
|
114 * from CCoeContrl. |
|
115 * Draw.Empty function. |
|
116 * |
|
117 * @since S60 v5.0 |
|
118 * @param aRect The rect to draw on. |
|
119 */ |
|
120 void Draw(const TRect& aRect) const; |
|
121 |
|
122 // from base class MAknPictographDrawerCallBack |
|
123 /** |
|
124 * from MAknPictographDrawerCallBack. |
|
125 * DrawPictographArea. |
|
126 * |
|
127 * @since S60 v5.0 |
|
128 */ |
|
129 void DrawPictographArea(); |
|
130 }; |
|
131 |
|
132 #endif // C_CBCTESTDOMCAKNCHARMAP_H |