Changeset View
Changeset View
Standalone View
Standalone View
src/qml/plugin.cpp
Show All 23 Lines | |||||
24 | 24 | | |||
25 | #include "pulseaudio.h" | 25 | #include "pulseaudio.h" | ||
26 | #include "client.h" | 26 | #include "client.h" | ||
27 | #include "sink.h" | 27 | #include "sink.h" | ||
28 | #include "source.h" | 28 | #include "source.h" | ||
29 | #include "context.h" | 29 | #include "context.h" | ||
30 | #include "modulemanager.h" | 30 | #include "modulemanager.h" | ||
31 | #include "profile.h" | 31 | #include "profile.h" | ||
32 | #include "port.h" | ||||
32 | 33 | | |||
33 | #include "globalactioncollection.h" | 34 | #include "globalactioncollection.h" | ||
34 | #include "volumeosd.h" | 35 | #include "volumeosd.h" | ||
35 | #include "volumefeedback.h" | 36 | #include "volumefeedback.h" | ||
36 | 37 | | |||
37 | static QJSValue pulseaudio_singleton(QQmlEngine *engine, QJSEngine *scriptEngine) | 38 | static QJSValue pulseaudio_singleton(QQmlEngine *engine, QJSEngine *scriptEngine) | ||
38 | { | 39 | { | ||
39 | Q_UNUSED(engine) | 40 | Q_UNUSED(engine) | ||
Show All 11 Lines | 50 | { | |||
51 | qmlRegisterType<QPulseAudio::SinkModel>(uri, 0, 1, "SinkModel"); | 52 | qmlRegisterType<QPulseAudio::SinkModel>(uri, 0, 1, "SinkModel"); | ||
52 | qmlRegisterType<QPulseAudio::SinkInputModel>(uri, 0, 1, "SinkInputModel"); | 53 | qmlRegisterType<QPulseAudio::SinkInputModel>(uri, 0, 1, "SinkInputModel"); | ||
53 | qmlRegisterType<QPulseAudio::SourceModel>(uri, 0, 1, "SourceModel"); | 54 | qmlRegisterType<QPulseAudio::SourceModel>(uri, 0, 1, "SourceModel"); | ||
54 | qmlRegisterType<QPulseAudio::ModuleManager>(uri, 0, 1, "ModuleManager"); | 55 | qmlRegisterType<QPulseAudio::ModuleManager>(uri, 0, 1, "ModuleManager"); | ||
55 | qmlRegisterType<QPulseAudio::SourceOutputModel>(uri, 0, 1, "SourceOutputModel"); | 56 | qmlRegisterType<QPulseAudio::SourceOutputModel>(uri, 0, 1, "SourceOutputModel"); | ||
56 | qmlRegisterType<QPulseAudio::StreamRestoreModel>(uri, 0, 1, "StreamRestoreModel"); | 57 | qmlRegisterType<QPulseAudio::StreamRestoreModel>(uri, 0, 1, "StreamRestoreModel"); | ||
57 | qmlRegisterType<QPulseAudio::ModuleModel>(uri, 0, 1, "ModuleModel"); | 58 | qmlRegisterType<QPulseAudio::ModuleModel>(uri, 0, 1, "ModuleModel"); | ||
58 | qmlRegisterUncreatableType<QPulseAudio::Profile>(uri, 0, 1, "Profile", QString()); | 59 | qmlRegisterUncreatableType<QPulseAudio::Profile>(uri, 0, 1, "Profile", QString()); | ||
60 | qmlRegisterUncreatableType<QPulseAudio::Port>(uri, 0, 1, "Port", QString()); | ||||
59 | qmlRegisterType<GlobalAction>(uri, 0, 1, "GlobalAction"); | 61 | qmlRegisterType<GlobalAction>(uri, 0, 1, "GlobalAction"); | ||
60 | qmlRegisterType<GlobalActionCollection>(uri, 0, 1, "GlobalActionCollection"); | 62 | qmlRegisterType<GlobalActionCollection>(uri, 0, 1, "GlobalActionCollection"); | ||
61 | qmlRegisterType<VolumeOSD>(uri, 0, 1, "VolumeOSD"); | 63 | qmlRegisterType<VolumeOSD>(uri, 0, 1, "VolumeOSD"); | ||
62 | qmlRegisterType<VolumeFeedback>(uri, 0, 1, "VolumeFeedback"); | 64 | qmlRegisterType<VolumeFeedback>(uri, 0, 1, "VolumeFeedback"); | ||
63 | qmlRegisterSingletonType(uri, 0, 1, "PulseAudio", pulseaudio_singleton); | 65 | qmlRegisterSingletonType(uri, 0, 1, "PulseAudio", pulseaudio_singleton); | ||
64 | 66 | | |||
65 | qmlRegisterType<QPulseAudio::Client>(); | 67 | qmlRegisterType<QPulseAudio::Client>(); | ||
66 | qmlRegisterType<QPulseAudio::Sink>(); | 68 | qmlRegisterType<QPulseAudio::Sink>(); | ||
67 | qmlRegisterType<QPulseAudio::Source>(); | 69 | qmlRegisterType<QPulseAudio::Source>(); | ||
68 | } | 70 | } |