videoplayback/hbvideoplaybackview/controlinc/mpxvideoplaybacknontouchvolumebar.h
changeset 36 8aed59de29f9
parent 35 3738fe97f027
child 37 4eb2df7f7cbe
equal deleted inserted replaced
35:3738fe97f027 36:8aed59de29f9
     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:  Implementation of QMPXVideoPlaybackNonTouchVolumeBar
       
    15 *
       
    16 */
       
    17 
       
    18 // Version : %version:  4 %
       
    19 
       
    20 
       
    21 
       
    22 #ifndef MPXVIDEOPLAYBACKNONTOUCHVOLUMEBAR_H_
       
    23 #define MPXVIDEOPLAYBACKNONTOUCHVOLUMEBAR_H_
       
    24 
       
    25 
       
    26 #include <hbvolumesliderpopup.h>
       
    27 
       
    28 class QTimer;
       
    29 class QGraphicsSceneMouseEvent;
       
    30 
       
    31 class QMPXVideoPlaybackNonTouchVolumeBar : public HbVolumeSliderPopup
       
    32 {
       
    33     Q_OBJECT
       
    34 
       
    35     public:
       
    36         QMPXVideoPlaybackNonTouchVolumeBar();
       
    37 
       
    38         virtual ~QMPXVideoPlaybackNonTouchVolumeBar();
       
    39 
       
    40     public:
       
    41         void setVisible( bool visible );
       
    42         virtual void mousePressEvent( QGraphicsSceneMouseEvent *event );
       
    43         virtual void mouseReleaseEvent( QGraphicsSceneMouseEvent *event );
       
    44 
       
    45     private slots:
       
    46         void hideVolumeControl();
       
    47 
       
    48     private:
       
    49         QTimer  *mVolumeTimer;
       
    50 };
       
    51 
       
    52 #endif /*MPXVIDEOPLAYBACKNONTOUCHVOLUMEBAR_H_*/
       
    53