Changeset View
Changeset View
Standalone View
Standalone View
src/qml/plugin.cpp
Show All 27 Lines | |||||
28 | #include "source.h" | 28 | #include "source.h" | ||
29 | 29 | | |||
30 | #include "globalactioncollection.h" | 30 | #include "globalactioncollection.h" | ||
31 | #include "volumeosd.h" | 31 | #include "volumeosd.h" | ||
32 | 32 | | |||
33 | void Plugin::registerTypes(const char* uri) | 33 | void Plugin::registerTypes(const char* uri) | ||
34 | { | 34 | { | ||
35 | qmlRegisterType<QPulseAudio::CardModel>(uri, 0, 1, "CardModel"); | 35 | qmlRegisterType<QPulseAudio::CardModel>(uri, 0, 1, "CardModel"); | ||
36 | qmlRegisterType<QPulseAudio::ClientModel>(uri, 0, 1, "ClientModel"); | | |||
37 | qmlRegisterType<QPulseAudio::SinkModel>(uri, 0, 1, "SinkModel"); | 36 | qmlRegisterType<QPulseAudio::SinkModel>(uri, 0, 1, "SinkModel"); | ||
38 | qmlRegisterType<QPulseAudio::SinkInputModel>(uri, 0, 1, "SinkInputModel"); | 37 | qmlRegisterType<QPulseAudio::SinkInputModel>(uri, 0, 1, "SinkInputModel"); | ||
39 | qmlRegisterType<QPulseAudio::ReverseFilterModel>(uri, 0, 1, "ReverseFilterModel"); | | |||
40 | qmlRegisterType<QPulseAudio::SourceModel>(uri, 0, 1, "SourceModel"); | 38 | qmlRegisterType<QPulseAudio::SourceModel>(uri, 0, 1, "SourceModel"); | ||
41 | qmlRegisterType<QPulseAudio::SourceOutputModel>(uri, 0, 1, "SourceOutputModel"); | 39 | qmlRegisterType<QPulseAudio::SourceOutputModel>(uri, 0, 1, "SourceOutputModel"); | ||
42 | qmlRegisterType<GlobalAction>(uri, 0, 1, "GlobalAction"); | 40 | qmlRegisterType<GlobalAction>(uri, 0, 1, "GlobalAction"); | ||
43 | qmlRegisterType<GlobalActionCollection>(uri, 0, 1, "GlobalActionCollection"); | 41 | qmlRegisterType<GlobalActionCollection>(uri, 0, 1, "GlobalActionCollection"); | ||
44 | qmlRegisterType<VolumeOSD>(uri, 0, 1, "VolumeOSD"); | 42 | qmlRegisterType<VolumeOSD>(uri, 0, 1, "VolumeOSD"); | ||
45 | 43 | | |||
46 | qmlRegisterType<QPulseAudio::Client>(); | 44 | qmlRegisterType<QPulseAudio::Client>(); | ||
47 | qmlRegisterType<QPulseAudio::Sink>(); | 45 | qmlRegisterType<QPulseAudio::Sink>(); | ||
48 | qmlRegisterType<QPulseAudio::Source>(); | 46 | qmlRegisterType<QPulseAudio::Source>(); | ||
49 | } | 47 | } |