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