66
|
1 |
/*
|
|
2 |
* Copyright (c) 2010 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: Implementation of HbVolumeSliderPopup
|
|
15 |
*
|
|
16 |
*/
|
|
17 |
|
|
18 |
// Version : %version: 1 %
|
|
19 |
|
|
20 |
|
|
21 |
|
|
22 |
#include "mpxvideo_debug.h"
|
|
23 |
#include "hbvolumesliderpopup.h"
|
|
24 |
|
|
25 |
// -------------------------------------------------------------------------------------------------
|
|
26 |
// HbVolumeSliderPopup::HbVolumeSliderPopup
|
|
27 |
// -------------------------------------------------------------------------------------------------
|
|
28 |
//
|
|
29 |
HbVolumeSliderPopup::HbVolumeSliderPopup()
|
|
30 |
{
|
|
31 |
MPX_ENTER_EXIT(_L("HbVolumeSliderPopup::HbVolumeSliderPopup()"));
|
|
32 |
}
|
|
33 |
|
|
34 |
// -------------------------------------------------------------------------------------------------
|
|
35 |
// HbVolumeSliderPopup::~HbVolumeSliderPopup
|
|
36 |
// -------------------------------------------------------------------------------------------------
|
|
37 |
//
|
|
38 |
HbVolumeSliderPopup::~HbVolumeSliderPopup()
|
|
39 |
{
|
|
40 |
MPX_DEBUG(_L("HbVolumeSliderPopup::HbVolumeSliderPopup") );
|
|
41 |
}
|
|
42 |
|
|
43 |
// -------------------------------------------------------------------------------------------------
|
|
44 |
// HbVolumeSliderPopup::setEnabled
|
|
45 |
// -------------------------------------------------------------------------------------------------
|
|
46 |
//
|
|
47 |
void HbVolumeSliderPopup::setEnabled( bool enabled )
|
|
48 |
{
|
|
49 |
MPX_DEBUG(_L("HbVolumeSliderPopup::setEnabled %d"), enabled );
|
|
50 |
|
|
51 |
mEnabled = enabled;
|
|
52 |
}
|
|
53 |
|
|
54 |
// -------------------------------------------------------------------------------------------------
|
|
55 |
// HbVolumeSliderPopup::isEnabled
|
|
56 |
// -------------------------------------------------------------------------------------------------
|
|
57 |
//
|
|
58 |
bool HbVolumeSliderPopup::isEnabled()
|
|
59 |
{
|
|
60 |
MPX_DEBUG(_L("HbVolumeSliderPopup::isEnabled %d"), mEnabled );
|
|
61 |
|
|
62 |
return mEnabled;
|
|
63 |
}
|
|
64 |
|
|
65 |
// -------------------------------------------------------------------------------------------------
|
|
66 |
// HbVolumeSliderPopup::setVisible
|
|
67 |
// -------------------------------------------------------------------------------------------------
|
|
68 |
//
|
|
69 |
void HbVolumeSliderPopup::setVisible( bool visible )
|
|
70 |
{
|
|
71 |
MPX_DEBUG(_L("HbVolumeSliderPopup::setVisible %d"), visible );
|
|
72 |
|
|
73 |
mVisible = visible;
|
|
74 |
}
|
|
75 |
|
|
76 |
// -------------------------------------------------------------------------------------------------
|
|
77 |
// HbVolumeSliderPopup::isVisible
|
|
78 |
// -------------------------------------------------------------------------------------------------
|
|
79 |
//
|
|
80 |
bool HbVolumeSliderPopup::isVisible()
|
|
81 |
{
|
|
82 |
MPX_DEBUG(_L("HbVolumeSliderPopup::isVisible %d"), mVisible );
|
|
83 |
|
|
84 |
return mVisible;
|
|
85 |
}
|
|
86 |
|
|
87 |
// -------------------------------------------------------------------------------------------------
|
|
88 |
// HbVolumeSliderPopup::setValue
|
|
89 |
// -------------------------------------------------------------------------------------------------
|
|
90 |
//
|
|
91 |
void HbVolumeSliderPopup::setValue( int value )
|
|
92 |
{
|
|
93 |
MPX_DEBUG(_L("HbVolumeSliderPopup::setValue %d"), value );
|
|
94 |
|
|
95 |
mValue = value;
|
|
96 |
}
|
|
97 |
|
|
98 |
// -------------------------------------------------------------------------------------------------
|
|
99 |
// HbVolumeSliderPopup::setTimeout
|
|
100 |
// -------------------------------------------------------------------------------------------------
|
|
101 |
//
|
|
102 |
void HbVolumeSliderPopup::setTimeout( int timeout )
|
|
103 |
{
|
|
104 |
MPX_DEBUG(_L("HbVolumeSliderPopup::setTimeout %d"), timeout );
|
|
105 |
|
|
106 |
mTimeOut = timeout;
|
|
107 |
}
|
|
108 |
|
|
109 |
// -------------------------------------------------------------------------------------------------
|
|
110 |
// HbVolumeSliderPopup::setTickPosition
|
|
111 |
// -------------------------------------------------------------------------------------------------
|
|
112 |
//
|
|
113 |
void HbVolumeSliderPopup::setTickPosition( Hb::SliderTickPositions position )
|
|
114 |
{
|
|
115 |
MPX_DEBUG(_L("HbVolumeSliderPopup::setTickPosition"));
|
|
116 |
|
|
117 |
mPosition = position;
|
|
118 |
}
|
|
119 |
|
|
120 |
// -------------------------------------------------------------------------------------------------
|
|
121 |
// HbVolumeSliderPopup::setRange
|
|
122 |
// -------------------------------------------------------------------------------------------------
|
|
123 |
//
|
|
124 |
void HbVolumeSliderPopup::setRange( int min, int max )
|
|
125 |
{
|
|
126 |
MPX_DEBUG(_L("HbVolumeSliderPopup::setRange"));
|
|
127 |
|
|
128 |
mMin = min;
|
|
129 |
mMax = max;
|
|
130 |
}
|
|
131 |
|
|
132 |
// -------------------------------------------------------------------------------------------------
|
|
133 |
// HbVolumeSliderPopup::value
|
|
134 |
// -------------------------------------------------------------------------------------------------
|
|
135 |
//
|
|
136 |
int HbVolumeSliderPopup::value()
|
|
137 |
{
|
|
138 |
MPX_DEBUG(_L("HbVolumeSliderPopup::value"));
|
|
139 |
|
|
140 |
return mValue;
|
|
141 |
}
|
|
142 |
|
|
143 |
// -------------------------------------------------------------------------------------------------
|
|
144 |
// HbVolumeSliderPopup::setSingleStep
|
|
145 |
// -------------------------------------------------------------------------------------------------
|
|
146 |
//
|
|
147 |
void HbVolumeSliderPopup::setSingleStep( int steps )
|
|
148 |
{
|
|
149 |
MPX_DEBUG(_L("HbVolumeSliderPopup::setSingleStep"));
|
|
150 |
|
|
151 |
mSteps = steps;
|
|
152 |
}
|
|
153 |
|
|
154 |
// End of file
|