1 /* |
|
2 * Copyright (c) 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: |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef HBVOLUMESLIDERPOPUP_H |
|
19 #define HBVOLUMESLIDERPOPUP_H |
|
20 |
|
21 #include <QObject> |
|
22 #include <hbpopup.h> |
|
23 |
|
24 extern bool m_volumeSliderContructorCalled; |
|
25 extern bool m_volumeSliderDesctructorCalled; |
|
26 extern bool m_volumeSliderSetValueCalled; |
|
27 extern int m_sliderValue; |
|
28 extern bool m_volumeSliderValueCalled; |
|
29 extern bool m_volumeSliderSetRangeCalled; |
|
30 extern int m_sliderRangeMin; |
|
31 extern int m_sliderRangeMax; |
|
32 extern bool m_volumeSliderSetTimeoutCalled; |
|
33 extern int m_sliderTimeout; |
|
34 extern bool m_volumeSliderShowCalled; |
|
35 extern bool m_isVisible; |
|
36 extern bool m_volumeSliderHideCalled; |
|
37 |
|
38 class HbVolumeSliderPopup : public QObject |
|
39 { |
|
40 Q_OBJECT |
|
41 |
|
42 public: |
|
43 HbVolumeSliderPopup (); |
|
44 ~HbVolumeSliderPopup (); |
|
45 |
|
46 void setValue (int value); |
|
47 int value (); |
|
48 void setRange (int min, int max); |
|
49 void setTimeout (int time); |
|
50 void show(); |
|
51 void hide(); |
|
52 void setDismissPolicy( HbPopup::DismissPolicy value ) {;}; |
|
53 int minimum() {return m_sliderRangeMin;}; |
|
54 int maximum() {return m_sliderRangeMax;}; |
|
55 bool isVisible() {return m_isVisible;}; |
|
56 |
|
57 |
|
58 signals: |
|
59 void aboutToClose (); |
|
60 void valueChanged (int); |
|
61 |
|
62 }; |
|
63 |
|
64 #endif // HBVOLUMESLIDERPOPUP_H |
|