23 #ifndef PHONON_PULSESUPPORT_H
24 #define PHONON_PULSESUPPORT_H
26 #include "phonon_export.h"
27 #include "phononnamespace.h"
28 #include "objectdescription.h"
30 #include <QtCore/QtGlobal>
31 #include <QtCore/QSet>
42 static void shutdown();
45 void enable(
bool enabled =
true);
47 QList<int> objectDescriptionIndexes(ObjectDescriptionType type)
const;
48 QHash<QByteArray, QVariant> objectDescriptionProperties(ObjectDescriptionType type,
int index)
const;
49 QList<int> objectIndexesByCategory(ObjectDescriptionType type, Category category)
const;
50 QList<int> objectIndexesByCategory(ObjectDescriptionType type, CaptureCategory category)
const;
52 void setOutputDevicePriorityForCategory(Category category,
QList<int> order);
53 void setCaptureDevicePriorityForCategory(CaptureCategory category,
QList<int> order);
55 PHONON_DEPRECATED
void setCaptureDevicePriorityForCategory(Category category,
QList<int> order);
57 PulseStream *registerOutputStream(QString streamUuid, Category category);
58 PulseStream *registerCaptureStream(QString streamUuid, CaptureCategory category);
59 PHONON_DEPRECATED PulseStream *registerCaptureStream(QString streamUuid, Category category);
79 QHash<QString, QString> streamProperties(QString streamUuid)
const;
93 void setupStreamEnvironment(QString streamUuid);
95 void emitObjectDescriptionChanged(ObjectDescriptionType);
97 bool setOutputName(QString streamUuid, QString name);
98 bool setOutputDevice(QString streamUuid,
int device);
99 bool setOutputVolume(QString streamUuid, qreal volume);
100 bool setOutputMute(QString streamUuid,
bool mute);
101 bool setCaptureDevice(QString streamUuid,
int device);
104 void clearStreamCache(QString streamUuid);
108 void connectToDaemon();
111 void objectDescriptionChanged(ObjectDescriptionType);
122 #endif // PHONON_PULSESUPPORT_H