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