Changeset View
Changeset View
Standalone View
Standalone View
plugins/contacts/contactsplugin.cpp
Show All 34 Lines | |||||
35 | #include <core/device.h> | 35 | #include <core/device.h> | ||
36 | 36 | | |||
37 | K_PLUGIN_FACTORY_WITH_JSON(KdeConnectPluginFactory, "kdeconnect_contacts.json", | 37 | K_PLUGIN_FACTORY_WITH_JSON(KdeConnectPluginFactory, "kdeconnect_contacts.json", | ||
38 | registerPlugin<ContactsPlugin>(); ) | 38 | registerPlugin<ContactsPlugin>(); ) | ||
39 | 39 | | |||
40 | Q_LOGGING_CATEGORY(KDECONNECT_PLUGIN_CONTACTS, "kdeconnect.plugin.contacts") | 40 | Q_LOGGING_CATEGORY(KDECONNECT_PLUGIN_CONTACTS, "kdeconnect.plugin.contacts") | ||
41 | 41 | | |||
42 | ContactsPlugin::ContactsPlugin (QObject* parent, const QVariantList& args) : | 42 | ContactsPlugin::ContactsPlugin (QObject* parent, const QVariantList& args) : | ||
43 | KdeConnectPlugin(parent, args) { | 43 | KdeConnectPlugin(parent, args) | ||
44 | { | ||||
44 | vcardsPath = QString(*vcardsLocation).append("/kdeconnect-").append(device()->id()); | 45 | vcardsPath = QString(*vcardsLocation).append("/kdeconnect-").append(device()->id()); | ||
45 | 46 | | |||
46 | // Register custom types with dbus | 47 | // Register custom types with dbus | ||
47 | qRegisterMetaType<uID>("uID"); | 48 | qRegisterMetaType<uID>("uID"); | ||
48 | qDBusRegisterMetaType<uID>(); | 49 | qDBusRegisterMetaType<uID>(); | ||
49 | 50 | | |||
50 | qRegisterMetaType<uIDList_t>("uIDList_t"); | 51 | qRegisterMetaType<uIDList_t>("uIDList_t"); | ||
51 | qDBusRegisterMetaType<uIDList_t>(); | 52 | qDBusRegisterMetaType<uIDList_t>(); | ||
▲ Show 20 Lines • Show All 160 Lines • Show Last 20 Lines |