Changeset View
Changeset View
Standalone View
Standalone View
declarativeplugin/kdeconnectdeclarativeplugin.cpp
Show First 20 Lines • Show All 69 Lines • ▼ Show 20 Line(s) | |||||
70 | } | 70 | } | ||
71 | 71 | | |||
72 | QObject* createDeviceLockInterface(const QVariant& deviceId) | 72 | QObject* createDeviceLockInterface(const QVariant& deviceId) | ||
73 | { | 73 | { | ||
74 | Q_ASSERT(!deviceId.toString().isEmpty()); | 74 | Q_ASSERT(!deviceId.toString().isEmpty()); | ||
75 | return new LockDeviceDbusInterface(deviceId.toString()); | 75 | return new LockDeviceDbusInterface(deviceId.toString()); | ||
76 | } | 76 | } | ||
77 | 77 | | |||
78 | QObject* createTelephonyInterface(const QVariant& deviceId) | 78 | QObject* createSmsInterface(const QVariant& deviceId) | ||
79 | { | 79 | { | ||
80 | return new TelephonyDbusInterface(deviceId.toString()); | 80 | return new SmsDbusInterface(deviceId.toString()); | ||
81 | } | 81 | } | ||
82 | 82 | | |||
83 | QObject* createDBusResponse() | 83 | QObject* createDBusResponse() | ||
84 | { | 84 | { | ||
85 | return new DBusAsyncResponse(); | 85 | return new DBusAsyncResponse(); | ||
86 | } | 86 | } | ||
87 | 87 | | |||
88 | QObject* createRemoteCommandsInterface(const QVariant& deviceId) | 88 | QObject* createRemoteCommandsInterface(const QVariant& deviceId) | ||
▲ Show 20 Lines • Show All 44 Lines • ▼ Show 20 Line(s) | 132 | engine->rootContext()->setContextProperty(QStringLiteral("MprisDbusInterfaceFactory") | |||
133 | , new ObjectFactory(engine, createMprisInterface)); | 133 | , new ObjectFactory(engine, createMprisInterface)); | ||
134 | 134 | | |||
135 | engine->rootContext()->setContextProperty(QStringLiteral("RemoteControlDbusInterfaceFactory") | 135 | engine->rootContext()->setContextProperty(QStringLiteral("RemoteControlDbusInterfaceFactory") | ||
136 | , new ObjectFactory(engine, createRemoteControlInterface)); | 136 | , new ObjectFactory(engine, createRemoteControlInterface)); | ||
137 | 137 | | |||
138 | engine->rootContext()->setContextProperty(QStringLiteral("LockDeviceDbusInterfaceFactory") | 138 | engine->rootContext()->setContextProperty(QStringLiteral("LockDeviceDbusInterfaceFactory") | ||
139 | , new ObjectFactory(engine, createDeviceLockInterface)); | 139 | , new ObjectFactory(engine, createDeviceLockInterface)); | ||
140 | 140 | | |||
141 | engine->rootContext()->setContextProperty(QStringLiteral("TelephonyDbusInterfaceFactory") | 141 | engine->rootContext()->setContextProperty(QStringLiteral("SmsDbusInterfaceFactory") | ||
142 | , new ObjectFactory(engine, createTelephonyInterface)); | 142 | , new ObjectFactory(engine, createSmsInterface)); | ||
143 | 143 | | |||
144 | engine->rootContext()->setContextProperty(QStringLiteral("DBusResponseFactory") | 144 | engine->rootContext()->setContextProperty(QStringLiteral("DBusResponseFactory") | ||
145 | , new ObjectFactory(engine, createDBusResponse)); | 145 | , new ObjectFactory(engine, createDBusResponse)); | ||
146 | 146 | | |||
147 | engine->rootContext()->setContextProperty(QStringLiteral("DBusResponseWaiter") | 147 | engine->rootContext()->setContextProperty(QStringLiteral("DBusResponseWaiter") | ||
148 | , DBusResponseWaiter::instance()); | 148 | , DBusResponseWaiter::instance()); | ||
149 | 149 | | |||
150 | engine->rootContext()->setContextProperty(QStringLiteral("RemoteCommandsDbusInterfaceFactory") | 150 | engine->rootContext()->setContextProperty(QStringLiteral("RemoteCommandsDbusInterfaceFactory") | ||
151 | , new ObjectFactory(engine, createRemoteCommandsInterface)); | 151 | , new ObjectFactory(engine, createRemoteCommandsInterface)); | ||
152 | } | 152 | } |