From 8d7d820ef4237a8c260d52f882f72543eeafc35b Mon Sep 17 00:00:00 2001 From: Aleix Pol Date: Wed, 6 Jul 2016 15:55:04 +0200 Subject: [PATCH] Naming consistency. Capabilities is the correct name --- core/kdeconnectplugin.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/core/kdeconnectplugin.cpp b/core/kdeconnectplugin.cpp index 936af4a4a..b439985d0 100644 --- a/core/kdeconnectplugin.cpp +++ b/core/kdeconnectplugin.cpp @@ -26,7 +26,7 @@ struct KdeConnectPluginPrivate { Device* mDevice; QString mPluginName; - QSet mOutgoingTypes; + QSet mOutgoingCapabilties; KdeConnectPluginConfig* mConfig; }; @@ -36,7 +36,7 @@ KdeConnectPlugin::KdeConnectPlugin(QObject* parent, const QVariantList& args) { d->mDevice = qvariant_cast< Device* >(args.at(0)); d->mPluginName = args.at(1).toString(); - d->mOutgoingTypes = args.at(2).toStringList().toSet(); + d->mOutgoingCapabilties = args.at(2).toStringList().toSet(); d->mConfig = nullptr; } @@ -68,8 +68,8 @@ Device const* KdeConnectPlugin::device() const bool KdeConnectPlugin::sendPackage(NetworkPackage& np) const { - if(!d->mOutgoingTypes.contains(np.type())) { - qCWarning(KDECONNECT_CORE) << metaObject()->className() << "tried to send an unsupported package type" << np.type() << ". Supported:" << d->mOutgoingTypes; + if(!d->mOutgoingCapabilties.contains(np.type())) { + qCWarning(KDECONNECT_CORE) << metaObject()->className() << "tried to send an unsupported package type" << np.type() << ". Supported:" << d->mOutgoingCapabilties; return false; } // qCWarning(KDECONNECT_CORE) << metaObject()->className() << "sends" << np.type() << ". Supported:" << d->mOutgoingTypes;