utilities/mpmediacontroller/tsrc/unittest_mpvolumeslider/stub/inc/hbvolumesliderpopup.h
changeset 47 4cc1412daed0
equal deleted inserted replaced
45:612c4815aebe 47:4cc1412daed0
       
     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: hbvolumesliderpopup stub for testing mpvolumeslider
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef HBVOLUMESLIDERPOPUP_H
       
    20 #define HBVOLUMESLIDERPOPUP_H
       
    21 
       
    22 #include <QObject>
       
    23 
       
    24 namespace Hb
       
    25 {
       
    26     enum SliderTickPosition {
       
    27         NoSliderTicks = 0,
       
    28         SliderTicksAbove = 1,
       
    29         SliderTicksLeft = SliderTicksAbove,
       
    30         SliderTicksBelow = 2,
       
    31         SliderTicksRight = SliderTicksBelow,
       
    32         SliderTicksBothSides = 3,
       
    33         SliderTicksAbsolute
       
    34     };
       
    35 
       
    36     Q_DECLARE_FLAGS(SliderTickPositions , SliderTickPosition)
       
    37 }
       
    38 
       
    39 class HbVolumeSliderPopup : public QObject
       
    40 {
       
    41     Q_OBJECT
       
    42 
       
    43 public:
       
    44     explicit HbVolumeSliderPopup( QObject *parent = 0 );
       
    45     virtual ~HbVolumeSliderPopup();
       
    46 
       
    47     int value() const;
       
    48     bool isVisible() const;
       
    49     void setVisible(bool visible);
       
    50     void setRange(int min, int max);
       
    51     void setSingleStep(int step);
       
    52     void setTickPosition(Hb::SliderTickPositions position);
       
    53 
       
    54 signals :
       
    55     void sliderPressed();
       
    56     void sliderReleased();
       
    57     void iconClicked();
       
    58     void valueChanged(int value);
       
    59 
       
    60 public slots:
       
    61     void setValue(int value);
       
    62 
       
    63 public:
       
    64     int                         mValue;
       
    65     int                         mMinRange;
       
    66     int                         mMaxRange;
       
    67     int                         mSingleStep;
       
    68     bool                        mVisible;
       
    69     Hb::SliderTickPositions     mSliderTickPosition;
       
    70 };
       
    71 
       
    72 #endif      // HBVOLUMESLIDERPOPUP_H
       
    73 
       
    74 // End of File