1 /* |
|
2 * Copyright (c) 2007 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: declaration of container |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef C_BCTESTDOMAVKONPSLNCONTAINER_H |
|
20 #define C_BCTESTDOMAVKONPSLNCONTAINER_H |
|
21 |
|
22 #include <coecntrl.h> |
|
23 |
|
24 class CBCTestDomEikCase; |
|
25 /** |
|
26 * container class |
|
27 */ |
|
28 class CBCTestDomAvkonPslnContainer: public CCoeControl |
|
29 { |
|
30 |
|
31 friend class CBCTestDomEikCase; |
|
32 |
|
33 public: |
|
34 // constructor and destructor |
|
35 |
|
36 /** |
|
37 * C++ default constructor |
|
38 */ |
|
39 CBCTestDomAvkonPslnContainer(); |
|
40 |
|
41 /** |
|
42 * Destructor |
|
43 */ |
|
44 virtual ~CBCTestDomAvkonPslnContainer(); |
|
45 |
|
46 /** |
|
47 * Symbian 2nd constructor |
|
48 */ |
|
49 void ConstructL( const TRect& aRect ); |
|
50 |
|
51 // new functions |
|
52 |
|
53 /** |
|
54 * Set component control, and container will own the control |
|
55 * @param aControl pointer to a control. |
|
56 */ |
|
57 void SetControl( CCoeControl* aControl ); |
|
58 |
|
59 /** |
|
60 * Delete control |
|
61 */ |
|
62 void ResetControl(); |
|
63 |
|
64 // from CCoeControl |
|
65 |
|
66 /** |
|
67 * Return count of component controls |
|
68 */ |
|
69 TInt CountComponentControls() const; |
|
70 |
|
71 /** |
|
72 * Return pointer to component control specified by index |
|
73 * @param aIndex, a index to specify a component control |
|
74 */ |
|
75 CCoeControl* ComponentControl( TInt aIndex ) const; |
|
76 |
|
77 private: |
|
78 // from CCoeControl |
|
79 |
|
80 /** |
|
81 * From CCoeControl, Draw. |
|
82 * Fills the window's rectangle. |
|
83 * @param aRect Region of the control to be (re)drawn. |
|
84 */ |
|
85 void Draw( const TRect& aRect ) const; |
|
86 |
|
87 private: |
|
88 // data |
|
89 |
|
90 /** |
|
91 * Pointer to component control. |
|
92 * own |
|
93 */ |
|
94 CCoeControl* iControl; |
|
95 |
|
96 }; |
|
97 |
|
98 #endif // C_BCTESTDOMAVKONPSLNCONTAINER_H |
|