10#include "pulseaudioqt_export.h"
49class PULSEAUDIOQT_EXPORT Context :
public QObject
57 Q_PROPERTY(
State state READ state NOTIFY stateChanged)
65 Q_PROPERTY(
bool autoConnecting READ isAutoConnecting NOTIFY autoConnectingChanged)
84 static Context *instance();
91 static void setApplicationId(
const QString &applicationId);
156 pa_context *context()
const;
158 void setCardProfile(quint32 index,
const QString &profile);
159 void setDefaultSink(
const QString &name);
160 void setDefaultSource(
const QString &name);
167 [[nodiscard]]
State state()
const;
174 [[nodiscard]]
bool isAutoConnecting()
const;
182 void reconnectDaemon();
228 void clientAdded(PulseAudioQt::Client *client);
233 void clientRemoved(PulseAudioQt::Client *client);
238 void cardAdded(PulseAudioQt::Card *card);
243 void cardRemoved(PulseAudioQt::Card *card);
248 void moduleAdded(PulseAudioQt::Module *module);
253 void moduleRemoved(PulseAudioQt::Module *module);
258 void streamRestoreAdded(PulseAudioQt::StreamRestore *streamRestore);
263 void streamRestoreRemoved(PulseAudioQt::StreamRestore *streamRestore);
277 void autoConnectingChanged();
280 explicit Context(
QObject *parent =
nullptr);
282 std::unique_ptr<class ContextPrivate> d;
285 friend class SinkInput;
287 friend class SourceOutput;
289 friend class StreamRestorePrivate;
291 friend class SinkModel;
292 friend class SinkInputModel;
293 friend class SourceModel;
294 friend class SourceOutputModel;
295 friend class StreamRestoreModel;
296 friend class CardModel;
297 friend class ModuleModel;
bool isValid(QStringView ifopt)
The primary namespace of PulseAudioQt.
qint64 normalVolume()
The normal volume (100%, 0 dB).
qint64 maximumUIVolume()
The maximum volume suitable to display in a UI.
qint64 minimumVolume()
The minimum volume (0%).
qint64 maximumVolume()
The maximum volume PulseAudio can store.
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 22 2024 12:04:30 by
doxygen 1.12.0 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.