Changeset View
Changeset View
Standalone View
Standalone View
plugins/findmyphone/findmyphoneplugin.cpp
Show First 20 Lines • Show All 44 Lines • ▼ Show 20 Line(s) | |||||
45 | void FindMyPhonePlugin::ring() | 45 | void FindMyPhonePlugin::ring() | ||
46 | { | 46 | { | ||
47 | NetworkPackage np(PACKAGE_TYPE_FINDMYPHONE_REQUEST); | 47 | NetworkPackage np(PACKAGE_TYPE_FINDMYPHONE_REQUEST); | ||
48 | sendPackage(np); | 48 | sendPackage(np); | ||
49 | } | 49 | } | ||
50 | 50 | | |||
51 | void FindMyPhonePlugin::connected() | 51 | void FindMyPhonePlugin::connected() | ||
52 | { | 52 | { | ||
53 | QDBusConnection::sessionBus().registerObject(dbusPath(), this, QDBusConnection::ExportAllContents); | 53 | QDBusConnection::sessionBus().registerObject(dbusPath(), this, QDBusConnection::ExportScriptableInvokables); | ||
54 | } | 54 | } | ||
55 | 55 | | |||
56 | QString FindMyPhonePlugin::dbusPath() const | 56 | QString FindMyPhonePlugin::dbusPath() const | ||
57 | { | 57 | { | ||
58 | return "/modules/kdeconnect/devices/" + device()->id() + "/findmyphone"; | 58 | return "/modules/kdeconnect/devices/" + device()->id() + "/findmyphone"; | ||
59 | } | 59 | } | ||
60 | 60 | | |||
61 | #include "findmyphoneplugin.moc" | 61 | #include "findmyphoneplugin.moc" | ||
62 | 62 | |