Changeset View
Changeset View
Standalone View
Standalone View
src/imports/bluezqtextensionplugin.cpp
Show All 17 Lines | |||||
18 | * | 18 | * | ||
19 | * You should have received a copy of the GNU Lesser General Public | 19 | * You should have received a copy of the GNU Lesser General Public | ||
20 | * License along with this library. If not, see <http://www.gnu.org/licenses/>. | 20 | * License along with this library. If not, see <http://www.gnu.org/licenses/>. | ||
21 | */ | 21 | */ | ||
22 | 22 | | |||
23 | #include "bluezqtextensionplugin.h" | 23 | #include "bluezqtextensionplugin.h" | ||
24 | #include "declarativemanager.h" | 24 | #include "declarativemanager.h" | ||
25 | #include "declarativeadapter.h" | 25 | #include "declarativeadapter.h" | ||
26 | #include "declarativebattery.h" | ||||
26 | #include "declarativedevice.h" | 27 | #include "declarativedevice.h" | ||
27 | #include "declarativeinput.h" | 28 | #include "declarativeinput.h" | ||
28 | #include "declarativemediaplayer.h" | 29 | #include "declarativemediaplayer.h" | ||
29 | #include "declarativedevicesmodel.h" | 30 | #include "declarativedevicesmodel.h" | ||
30 | #include "device.h" | 31 | #include "device.h" | ||
31 | #include "pendingcall.h" | 32 | #include "pendingcall.h" | ||
32 | #include "services.h" | 33 | #include "services.h" | ||
33 | 34 | | |||
Show All 39 Lines | |||||
73 | { | 74 | { | ||
74 | using namespace BluezQt; | 75 | using namespace BluezQt; | ||
75 | 76 | | |||
76 | Q_ASSERT(QLatin1String(uri) == QLatin1String("org.kde.bluezqt")); | 77 | Q_ASSERT(QLatin1String(uri) == QLatin1String("org.kde.bluezqt")); | ||
77 | 78 | | |||
78 | qmlRegisterSingletonType<DeclarativeManager>(uri, 1, 0, "Manager", manager_singleton); | 79 | qmlRegisterSingletonType<DeclarativeManager>(uri, 1, 0, "Manager", manager_singleton); | ||
79 | qmlRegisterType<DeclarativeDevicesModel>(uri, 1, 0, "DevicesModelPrivate"); | 80 | qmlRegisterType<DeclarativeDevicesModel>(uri, 1, 0, "DevicesModelPrivate"); | ||
80 | qmlRegisterUncreatableType<DeclarativeAdapter>(uri, 1, 0, "Adapter", QStringLiteral("Adapter cannot be created")); | 81 | qmlRegisterUncreatableType<DeclarativeAdapter>(uri, 1, 0, "Adapter", QStringLiteral("Adapter cannot be created")); | ||
82 | qmlRegisterUncreatableType<DeclarativeBattery>(uri, 1, 0, "Battery", QStringLiteral("Battery cannot be created")); | ||||
81 | qmlRegisterUncreatableType<DeclarativeDevice>(uri, 1, 0, "Device", QStringLiteral("Device cannot be created")); | 83 | qmlRegisterUncreatableType<DeclarativeDevice>(uri, 1, 0, "Device", QStringLiteral("Device cannot be created")); | ||
82 | qmlRegisterUncreatableType<DeclarativeInput>(uri, 1, 0, "Input", QStringLiteral("Input cannot be created")); | 84 | qmlRegisterUncreatableType<DeclarativeInput>(uri, 1, 0, "Input", QStringLiteral("Input cannot be created")); | ||
83 | qmlRegisterUncreatableType<DeclarativeMediaPlayer>(uri, 1, 0, "MediaPlayer", QStringLiteral("MediaPlayer cannot be created")); | 85 | qmlRegisterUncreatableType<DeclarativeMediaPlayer>(uri, 1, 0, "MediaPlayer", QStringLiteral("MediaPlayer cannot be created")); | ||
84 | qmlRegisterUncreatableType<PendingCall>(uri, 1, 0, "PendingCall", QStringLiteral("PendingCall cannot be created")); | 86 | qmlRegisterUncreatableType<PendingCall>(uri, 1, 0, "PendingCall", QStringLiteral("PendingCall cannot be created")); | ||
85 | qmlRegisterSingletonType(uri, 1, 0, "Services", services_singleton); | 87 | qmlRegisterSingletonType(uri, 1, 0, "Services", services_singleton); | ||
86 | } | 88 | } |