Changeset View
Changeset View
Standalone View
Standalone View
core/kdeconnectplugin.cpp
Show First 20 Lines • Show All 60 Lines • ▼ Show 20 Line(s) | 60 | { | |||
---|---|---|---|---|---|
61 | return d->m_device; | 61 | return d->m_device; | ||
62 | } | 62 | } | ||
63 | 63 | | |||
64 | Device const* KdeConnectPlugin::device() const | 64 | Device const* KdeConnectPlugin::device() const | ||
65 | { | 65 | { | ||
66 | return d->m_device; | 66 | return d->m_device; | ||
67 | } | 67 | } | ||
68 | 68 | | |||
69 | bool KdeConnectPlugin::sendPackage(NetworkPackage& np) const | 69 | bool KdeConnectPlugin::sendPacket(NetworkPacket& np) const | ||
70 | { | 70 | { | ||
71 | if(!d->m_outgoingCapabilties.contains(np.type())) { | 71 | if(!d->m_outgoingCapabilties.contains(np.type())) { | ||
72 | qCWarning(KDECONNECT_CORE) << metaObject()->className() << "tried to send an unsupported package type" << np.type() << ". Supported:" << d->m_outgoingCapabilties; | 72 | qCWarning(KDECONNECT_CORE) << metaObject()->className() << "tried to send an unsupported packet type" << np.type() << ". Supported:" << d->m_outgoingCapabilties; | ||
73 | return false; | 73 | return false; | ||
74 | } | 74 | } | ||
75 | // qCWarning(KDECONNECT_CORE) << metaObject()->className() << "sends" << np.type() << ". Supported:" << d->mOutgoingTypes; | 75 | // qCWarning(KDECONNECT_CORE) << metaObject()->className() << "sends" << np.type() << ". Supported:" << d->mOutgoingTypes; | ||
76 | return d->m_device->sendPackage(np); | 76 | return d->m_device->sendPacket(np); | ||
77 | } | 77 | } | ||
78 | 78 | | |||
79 | QString KdeConnectPlugin::dbusPath() const | 79 | QString KdeConnectPlugin::dbusPath() const | ||
80 | { | 80 | { | ||
81 | return {}; | 81 | return {}; | ||
82 | } | 82 | } |