|
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: Base class for video telephone sliders |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef C_VTUISLIDERBASE_H |
|
20 #define C_VTUISLIDERBASE_H |
|
21 |
|
22 #include "cvtuifeaturebase.h" |
|
23 #include "mvtuicomponent.h" |
|
24 #include "mvtuicomponentstateobserver.h" |
|
25 |
|
26 class CVtUiPopupBase; |
|
27 |
|
28 /** |
|
29 * CVtUiSliderBase |
|
30 * |
|
31 * Base class for vide telephone sliders |
|
32 * |
|
33 * @since S60 v3.2 |
|
34 */ |
|
35 class CVtUiSliderBase : public CVtUiFeatureBase, public MVtUiComponentStateObserver |
|
36 { |
|
37 |
|
38 public: |
|
39 |
|
40 /** |
|
41 * Destructor |
|
42 */ |
|
43 ~CVtUiSliderBase(); |
|
44 |
|
45 /** |
|
46 * update slider itself |
|
47 */ |
|
48 void UpdateSlider(); |
|
49 |
|
50 public: // from MVtUiFeature |
|
51 |
|
52 /** |
|
53 * @see MVtUiFeature::StartL |
|
54 */ |
|
55 void StartL(); |
|
56 |
|
57 /** |
|
58 * @see MVtUiFeature::Stop |
|
59 */ |
|
60 void Stop(); |
|
61 |
|
62 /** |
|
63 * @see MVtUiFeature::InitFeatureL |
|
64 */ |
|
65 void InitFeatureL(); |
|
66 |
|
67 public: // from MVtUiComponentStateObserver |
|
68 |
|
69 /** |
|
70 * @see MVtUiComponentStateObserver::ComponenStateChangedL |
|
71 */ |
|
72 virtual void ComponenStateChangedL(); |
|
73 |
|
74 /** |
|
75 * @see CVtUiPopupBase::SetPermanenVisibility |
|
76 */ |
|
77 void SetPermanenVisibility( TBool aPermanent ); |
|
78 |
|
79 protected: |
|
80 |
|
81 /* |
|
82 * Constructor |
|
83 */ |
|
84 CVtUiSliderBase( CVtUiFeatureManager& aFeatureManager, |
|
85 TVtUiFeatureId aFeatureId ); |
|
86 |
|
87 /** |
|
88 * 2nd constructor |
|
89 */ |
|
90 void ConstructL(); |
|
91 |
|
92 /** |
|
93 * Sets popup pointer. |
|
94 */ |
|
95 void SetPopup( CVtUiPopupBase* aPopup ); |
|
96 |
|
97 /** |
|
98 * Gets popup reference. |
|
99 */ |
|
100 CVtUiPopupBase& Popup(); |
|
101 |
|
102 /** |
|
103 * Gets popup const reference. |
|
104 */ |
|
105 const CVtUiPopupBase& Popup() const; |
|
106 |
|
107 private: |
|
108 |
|
109 // pop up base |
|
110 CVtUiPopupBase* iPopup; |
|
111 |
|
112 }; |
|
113 |
|
114 #endif // CVTUIPEFSLIDERBASE_H |