utilities/mpmediacontroller/tsrc/unittest_mpvolumeslider/stub/inc/hbvolumesliderpopup.h
author hgs
Fri, 06 Aug 2010 16:51:36 -0500
changeset 47 4cc1412daed0
permissions -rw-r--r--
201031
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
47
hgs
parents:
diff changeset
     1
/*
hgs
parents:
diff changeset
     2
* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
hgs
parents:
diff changeset
     3
* All rights reserved.
hgs
parents:
diff changeset
     4
* This component and the accompanying materials are made available
hgs
parents:
diff changeset
     5
* under the terms of "Eclipse Public License v1.0"
hgs
parents:
diff changeset
     6
* which accompanies this distribution, and is available
hgs
parents:
diff changeset
     7
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
hgs
parents:
diff changeset
     8
*
hgs
parents:
diff changeset
     9
* Initial Contributors:
hgs
parents:
diff changeset
    10
* Nokia Corporation - initial contribution.
hgs
parents:
diff changeset
    11
*
hgs
parents:
diff changeset
    12
* Contributors:
hgs
parents:
diff changeset
    13
*
hgs
parents:
diff changeset
    14
* Description: hbvolumesliderpopup stub for testing mpvolumeslider
hgs
parents:
diff changeset
    15
*
hgs
parents:
diff changeset
    16
*/
hgs
parents:
diff changeset
    17
hgs
parents:
diff changeset
    18
hgs
parents:
diff changeset
    19
#ifndef HBVOLUMESLIDERPOPUP_H
hgs
parents:
diff changeset
    20
#define HBVOLUMESLIDERPOPUP_H
hgs
parents:
diff changeset
    21
hgs
parents:
diff changeset
    22
#include <QObject>
hgs
parents:
diff changeset
    23
hgs
parents:
diff changeset
    24
namespace Hb
hgs
parents:
diff changeset
    25
{
hgs
parents:
diff changeset
    26
    enum SliderTickPosition {
hgs
parents:
diff changeset
    27
        NoSliderTicks = 0,
hgs
parents:
diff changeset
    28
        SliderTicksAbove = 1,
hgs
parents:
diff changeset
    29
        SliderTicksLeft = SliderTicksAbove,
hgs
parents:
diff changeset
    30
        SliderTicksBelow = 2,
hgs
parents:
diff changeset
    31
        SliderTicksRight = SliderTicksBelow,
hgs
parents:
diff changeset
    32
        SliderTicksBothSides = 3,
hgs
parents:
diff changeset
    33
        SliderTicksAbsolute
hgs
parents:
diff changeset
    34
    };
hgs
parents:
diff changeset
    35
hgs
parents:
diff changeset
    36
    Q_DECLARE_FLAGS(SliderTickPositions , SliderTickPosition)
hgs
parents:
diff changeset
    37
}
hgs
parents:
diff changeset
    38
hgs
parents:
diff changeset
    39
class HbVolumeSliderPopup : public QObject
hgs
parents:
diff changeset
    40
{
hgs
parents:
diff changeset
    41
    Q_OBJECT
hgs
parents:
diff changeset
    42
hgs
parents:
diff changeset
    43
public:
hgs
parents:
diff changeset
    44
    explicit HbVolumeSliderPopup( QObject *parent = 0 );
hgs
parents:
diff changeset
    45
    virtual ~HbVolumeSliderPopup();
hgs
parents:
diff changeset
    46
hgs
parents:
diff changeset
    47
    int value() const;
hgs
parents:
diff changeset
    48
    bool isVisible() const;
hgs
parents:
diff changeset
    49
    void setVisible(bool visible);
hgs
parents:
diff changeset
    50
    void setRange(int min, int max);
hgs
parents:
diff changeset
    51
    void setSingleStep(int step);
hgs
parents:
diff changeset
    52
    void setTickPosition(Hb::SliderTickPositions position);
hgs
parents:
diff changeset
    53
hgs
parents:
diff changeset
    54
signals :
hgs
parents:
diff changeset
    55
    void sliderPressed();
hgs
parents:
diff changeset
    56
    void sliderReleased();
hgs
parents:
diff changeset
    57
    void iconClicked();
hgs
parents:
diff changeset
    58
    void valueChanged(int value);
hgs
parents:
diff changeset
    59
hgs
parents:
diff changeset
    60
public slots:
hgs
parents:
diff changeset
    61
    void setValue(int value);
hgs
parents:
diff changeset
    62
hgs
parents:
diff changeset
    63
public:
hgs
parents:
diff changeset
    64
    int                         mValue;
hgs
parents:
diff changeset
    65
    int                         mMinRange;
hgs
parents:
diff changeset
    66
    int                         mMaxRange;
hgs
parents:
diff changeset
    67
    int                         mSingleStep;
hgs
parents:
diff changeset
    68
    bool                        mVisible;
hgs
parents:
diff changeset
    69
    Hb::SliderTickPositions     mSliderTickPosition;
hgs
parents:
diff changeset
    70
};
hgs
parents:
diff changeset
    71
hgs
parents:
diff changeset
    72
#endif      // HBVOLUMESLIDERPOPUP_H
hgs
parents:
diff changeset
    73
hgs
parents:
diff changeset
    74
// End of File