23 #ifndef PHONON_UI_VOLUMESLIDER_H
24 #define PHONON_UI_VOLUMESLIDER_H
26 #include "phonon_export.h"
27 #include "phonondefs.h"
31 #ifndef QT_NO_PHONON_VOLUMESLIDER
36 class VolumeSliderPrivate;
53 Q_PROPERTY(qreal maximumVolume READ maximumVolume WRITE setMaximumVolume)
59 Q_PROPERTY(Qt::Orientation orientation READ orientation WRITE setOrientation)
69 Q_PROPERTY(
bool tracking READ hasTracking WRITE setTracking)
79 Q_PROPERTY(
int pageStep READ pageStep WRITE setPageStep)
89 Q_PROPERTY(
int singleStep READ singleStep WRITE setSingleStep)
96 Q_PROPERTY(
bool muteVisible READ isMuteVisible WRITE setMuteVisible)
103 Q_PROPERTY(QSize iconSize READ iconSize WRITE setIconSize)
112 bool hasTracking() const;
113 void setTracking(
bool tracking);
114 int pageStep() const;
115 void setPageStep(
int milliseconds);
116 int singleStep() const;
117 void setSingleStep(
int milliseconds);
118 bool isMuteVisible() const;
119 QSize iconSize() const;
120 qreal maximumVolume() const;
121 Qt::Orientation orientation() const;
122 AudioOutput *audioOutput() const;
125 void setMaximumVolume(qreal);
126 void setOrientation(Qt::Orientation);
127 void setMuteVisible(
bool);
128 void setIconSize(const QSize &size);
133 void setAudioOutput(Phonon::AudioOutput *);
136 VolumeSliderPrivate *const k_ptr;
139 Q_PRIVATE_SLOT(k_ptr,
void _k_sliderChanged(
int))
140 Q_PRIVATE_SLOT(k_ptr,
void _k_volumeChanged(qreal))
141 Q_PRIVATE_SLOT(k_ptr,
void _k_mutedChanged(
bool))
142 Q_PRIVATE_SLOT(k_ptr,
void _k_buttonClicked())
147 #endif //QT_NO_PHONON_VOLUMESLIDER
151 #endif // PHONON_UI_VOLUMESLIDER_H