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