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