10#include "pulseobject.h"
12struct pa_ext_stream_restore_info;
16class PULSEAUDIOQT_EXPORT StreamRestore :
public PulseObject
19 Q_PROPERTY(
QString device READ device WRITE setDevice NOTIFY deviceChanged)
20 Q_PROPERTY(qint64 volume READ volume WRITE setVolume NOTIFY volumeChanged)
21 Q_PROPERTY(
bool muted READ isMuted WRITE setMuted NOTIFY mutedChanged)
22 Q_PROPERTY(
bool hasVolume READ hasVolume CONSTANT)
23 Q_PROPERTY(
bool volumeWritable READ isVolumeWritable CONSTANT)
24 Q_PROPERTY(
QStringList channels READ channels NOTIFY channelsChanged)
25 Q_PROPERTY(
QList<qreal> channelVolumes READ channelVolumes NOTIFY channelVolumesChanged)
26 Q_PROPERTY(quint32 deviceIndex READ deviceIndex WRITE setDeviceIndex NOTIFY deviceIndexChanged)
28 Q_PROPERTY(quint32 index READ index CONSTANT)
31 ~StreamRestore()
override;
34 void setDevice(
const QString &device);
40 void setMuted(
bool muted);
42 bool hasVolume()
const;
43 bool isVolumeWritable()
const;
49 quint32 index()
const;
51 quint32 deviceIndex()
const;
52 void setDeviceIndex(quint32 deviceIndex);
54 void setChannelVolume(
int channel, qint64 volume);
60 void channelsChanged();
61 void channelVolumesChanged();
62 void deviceIndexChanged();
65 explicit StreamRestore(quint32 index,
const QVariantMap &properties,
QObject *parent);
67 std::unique_ptr<class StreamRestorePrivate> d;
68 friend class MapBase<StreamRestore, pa_ext_stream_restore_info>;
69 friend class ContextPrivate;
void setVolume(qreal volume)
The primary namespace of PulseAudioQt.
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:18:01 by
doxygen 1.12.0 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.