videoplayback/videoplaybackview/tsrc/testvolumecontrol/stub/inc/hbvolumesliderpopup.h
changeset 66 adb51f74b890
equal deleted inserted replaced
63:4707a0db12f6 66:adb51f74b890
       
     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 #ifndef HBVOLUMESLIDERPOPUP_H
       
    23 #define HBVOLUMESLIDERPOPUP_H
       
    24 
       
    25 #include <hbwidget.h>
       
    26 
       
    27 
       
    28 class HbVolumeSliderPopup : public HbWidget
       
    29 {
       
    30     Q_OBJECT
       
    31 
       
    32     public:
       
    33         HbVolumeSliderPopup();
       
    34         virtual ~HbVolumeSliderPopup();
       
    35 
       
    36     public:
       
    37         void setEnabled( bool enabled );
       
    38         void setVisible( bool visible );
       
    39         bool isEnabled();
       
    40         bool isVisible();
       
    41         void setValue( int value );
       
    42         void setTimeout( int timeout );
       
    43         void setTickPosition( Hb::SliderTickPositions position );
       
    44         void setRange( int min, int max );
       
    45         int value();
       
    46         void setSingleStep( int steps );
       
    47 
       
    48     signals:
       
    49         void valueChanged( int );
       
    50         void iconClicked();
       
    51         void sliderPressed();
       
    52         void sliderReleased();
       
    53 
       
    54     public:
       
    55         bool mVisible;
       
    56         bool mEnabled;
       
    57         int  mValue;
       
    58         int  mTimeOut;
       
    59         int  mMin;
       
    60         int  mMax;
       
    61         int  mSteps;
       
    62 
       
    63         Hb::SliderTickPositions mPosition;
       
    64 };
       
    65 
       
    66 #endif /*HBVOLUMESLIDERPOPUP_H*/
       
    67