|
1 /* |
|
2 * ============================================================================ |
|
3 * Name : bctestdomaiwakncontainer.h |
|
4 * Part of : BCTest / bctestdomaiwakn |
|
5 * Description : declaration of container. |
|
6 * Version : %version: 2 % << 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_CBCTESTDOMAIWAKNCONTAINER_H |
|
21 #define C_CBCTESTDOMAIWAKNCONTAINER_H |
|
22 |
|
23 #include <coecntrl.h> |
|
24 |
|
25 class CAknAppStyleGrid; |
|
26 /** |
|
27 * container class |
|
28 * |
|
29 * |
|
30 * @code |
|
31 * |
|
32 * @endcode |
|
33 * |
|
34 * @lib |
|
35 * @since S60 v5.0 |
|
36 */ |
|
37 class CBCTestDomAiwAknContainer: public CCoeControl |
|
38 { |
|
39 public: |
|
40 |
|
41 /** |
|
42 * C++ default constructor |
|
43 */ |
|
44 CBCTestDomAiwAknContainer(); |
|
45 |
|
46 /** |
|
47 * Destructor |
|
48 */ |
|
49 virtual ~CBCTestDomAiwAknContainer(); |
|
50 |
|
51 /** |
|
52 * Symbian 2nd constructor |
|
53 */ |
|
54 void ConstructL( const TRect& aRect ); |
|
55 |
|
56 /** |
|
57 * Set component control, and container will own the control |
|
58 * |
|
59 * @since S60 v5.0 |
|
60 * @param aControl pointer to a control. |
|
61 */ |
|
62 void SetControl( CCoeControl* aControl ); |
|
63 |
|
64 /** |
|
65 * Delete control |
|
66 * |
|
67 * @since S60 v5.0 |
|
68 */ |
|
69 void ResetControl(); |
|
70 |
|
71 // from base class CCoeControl |
|
72 |
|
73 /** |
|
74 * From CCoeControl. |
|
75 * Return count of component controls |
|
76 * |
|
77 * @since S60 v5.0 |
|
78 * @param aIndex, a index to specify a component control |
|
79 * @return count of component controls. |
|
80 */ |
|
81 TInt CountComponentControls() const; |
|
82 |
|
83 /** |
|
84 * From CCoeControl. |
|
85 * Return pointer to component control specified by index |
|
86 * |
|
87 * @since S60 v5.0 |
|
88 * @param aIndex, a index to specify a component control |
|
89 * @return pointer to component control specified by index. |
|
90 */ |
|
91 CCoeControl* ComponentControl( TInt aIndex ) const; |
|
92 |
|
93 private: |
|
94 |
|
95 // from base class CCoeControl |
|
96 |
|
97 /** |
|
98 * From CCoeControl. |
|
99 * Fills the window's rectangle. |
|
100 * |
|
101 * @since S60 v5.0 |
|
102 * @param aRect Region of the control to be (re)drawn. |
|
103 */ |
|
104 void Draw( const TRect& aRect ) const; |
|
105 |
|
106 private: // data |
|
107 |
|
108 /** |
|
109 * Pointer to component control. |
|
110 * own |
|
111 */ |
|
112 CCoeControl* iControl; |
|
113 |
|
114 CAknAppStyleGrid* iAppStyleGrid; |
|
115 |
|
116 }; |
|
117 |
|
118 #endif // C_CBCTESTDOMAIWAKNCONTAINER_H |