|
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 VideoPlaybackVolumeControl |
|
15 * |
|
16 */ |
|
17 |
|
18 // Version : %version: 1 % |
|
19 |
|
20 |
|
21 |
|
22 #ifndef VIDEOPLAYBACKVOLUMECONTROL_H_ |
|
23 #define VIDEOPLAYBACKVOLUMECONTROL_H_ |
|
24 |
|
25 |
|
26 // INCLUDES |
|
27 #include <QObject> |
|
28 |
|
29 // FORWARD DECLARATIONS |
|
30 class QTimer; |
|
31 class HbVolumeSliderPopup; |
|
32 class VideoPlaybackControlsController; |
|
33 |
|
34 class VideoPlaybackVolumeControl : public QObject |
|
35 { |
|
36 Q_OBJECT |
|
37 |
|
38 public: |
|
39 VideoPlaybackVolumeControl( VideoPlaybackControlsController* controller ); |
|
40 virtual ~VideoPlaybackVolumeControl(); |
|
41 |
|
42 public: |
|
43 void volumeChanged( int volume ); |
|
44 void setVisible( bool visible ); |
|
45 bool isVisible(); |
|
46 |
|
47 private: |
|
48 void initialize(); |
|
49 void setVolume( int volume ); |
|
50 |
|
51 private slots: |
|
52 void handleSliderValueChanged( int volume ); |
|
53 void handleMuteIconClicked(); |
|
54 void handleSliderPressed(); |
|
55 void handleSliderReleased(); |
|
56 void handleDraggingTimerTimeOut(); |
|
57 |
|
58 private: |
|
59 VideoPlaybackControlsController *mController; |
|
60 HbVolumeSliderPopup *mVolumePopup; |
|
61 QTimer *mDraggingHandlerTimer; |
|
62 |
|
63 QList<int> mExpectedVolList; |
|
64 int mVolume; |
|
65 int mDraggingVolume; |
|
66 int mVolumeNormalizer; |
|
67 bool mMutedByMuteIcon; |
|
68 bool mDragging; |
|
69 }; |
|
70 |
|
71 #endif /*VIDEOPLAYBACKVOLUMECONTROL_H_*/ |