Unused include cleanup
This commit is contained in:
parent
0d6a7bafcf
commit
7c0fbbc034
9 changed files with 12 additions and 23 deletions
|
@ -25,8 +25,9 @@
|
|||
#include <QTcpServer>
|
||||
#include <QSslSocket>
|
||||
#include <QUdpSocket>
|
||||
#include <QtNetwork/qsslsocket.h>
|
||||
|
||||
#include <QTimer>
|
||||
#include <QNetworkSession>
|
||||
#include <QSslSocket>
|
||||
|
||||
#include <kdeconnectcore_export.h>
|
||||
#include "../linkprovider.h"
|
||||
|
|
|
@ -21,6 +21,9 @@
|
|||
#ifndef KDECONNECT_LANPAIRINGHANDLER_H
|
||||
#define KDECONNECT_LANPAIRINGHANDLER_H
|
||||
|
||||
#include <QObject>
|
||||
#include <QTimer>
|
||||
|
||||
#include "device.h"
|
||||
#include "../devicelink.h"
|
||||
#include "../pairinghandler.h"
|
||||
|
|
|
@ -22,8 +22,6 @@
|
|||
#define LINKPROVIDER_H
|
||||
|
||||
#include <QObject>
|
||||
#include <QVector>
|
||||
#include <QNetworkSession>
|
||||
|
||||
#include "core/networkpackage.h"
|
||||
#include "pairinghandler.h"
|
||||
|
|
|
@ -24,8 +24,6 @@
|
|||
#include "networkpackage.h"
|
||||
#include "devicelink.h"
|
||||
|
||||
#include <QTimer>
|
||||
|
||||
/*
|
||||
* This class separates the pairing interface for each type of link.
|
||||
* Since different links can pair via different methods, like for LanLink certificate and public key should be shared,
|
||||
|
@ -37,7 +35,8 @@
|
|||
* After that if any one of the link is paired, then we can say that device is paired, so new link will pair automatically
|
||||
*/
|
||||
|
||||
class KDECONNECTCORE_EXPORT PairingHandler : public QObject
|
||||
class KDECONNECTCORE_EXPORT PairingHandler
|
||||
: public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
|
|
|
@ -171,7 +171,7 @@ void Daemon::onNewDeviceLink(const NetworkPackage& identityPackage, DeviceLink*
|
|||
//qCDebug(KDECONNECT_CORE) << "Device discovered" << id << "via" << dl->provider()->name();
|
||||
|
||||
if (d->mDevices.contains(id)) {
|
||||
qCDebug(KDECONNECT_CORE) << "It is a known device " << identityPackage.get<QString>("deviceName");
|
||||
qCDebug(KDECONNECT_CORE) << "It is a known device" << identityPackage.get<QString>("deviceName");
|
||||
Device* device = d->mDevices[id];
|
||||
bool wasReachable = device->isReachable();
|
||||
device->addLink(identityPackage, dl);
|
||||
|
@ -179,7 +179,7 @@ void Daemon::onNewDeviceLink(const NetworkPackage& identityPackage, DeviceLink*
|
|||
Q_EMIT deviceVisibilityChanged(id, true);
|
||||
}
|
||||
} else {
|
||||
qCDebug(KDECONNECT_CORE) << "It is a new device " << identityPackage.get<QString>("deviceName");
|
||||
qCDebug(KDECONNECT_CORE) << "It is a new device" << identityPackage.get<QString>("deviceName");
|
||||
Device* device = new Device(this, identityPackage, dl);
|
||||
|
||||
//we discard the connections that we created but it's not paired.
|
||||
|
|
|
@ -25,16 +25,11 @@
|
|||
#endif
|
||||
|
||||
#include <QDBusConnection>
|
||||
#include <QFile>
|
||||
#include <QStandardPaths>
|
||||
#include <QSslCertificate>
|
||||
|
||||
#include <KSharedConfig>
|
||||
#include <KConfigGroup>
|
||||
#include <KLocalizedString>
|
||||
#include <QIcon>
|
||||
#include <QDir>
|
||||
#include <QJsonArray>
|
||||
#include <qstringbuilder.h>
|
||||
|
||||
#include "core_debug.h"
|
||||
#include "kdeconnectplugin.h"
|
||||
|
@ -47,7 +42,6 @@
|
|||
|
||||
#define MIN_VERSION_WITH_CAPPABILITIES_SUPPORT 6
|
||||
|
||||
|
||||
Q_LOGGING_CATEGORY(KDECONNECT_CORE, "kdeconnect.core")
|
||||
|
||||
static void warn(const QString &info)
|
||||
|
@ -137,7 +131,7 @@ void Device::reloadPlugins()
|
|||
&& (m_outgoingCapabilities & incomingInterfaces).isEmpty()
|
||||
) {
|
||||
if (!m_incomingCapabilities.isEmpty() || !m_outgoingCapabilities.isEmpty()) {
|
||||
qCWarning(KDECONNECT_CORE) << "not loading " << pluginName << "because of unmatched capabilities" <<
|
||||
qCWarning(KDECONNECT_CORE) << "not loading" << pluginName << "because of unmatched capabilities" <<
|
||||
outgoingInterfaces << incomingInterfaces;
|
||||
}
|
||||
|
||||
|
|
|
@ -25,10 +25,6 @@
|
|||
#include <QString>
|
||||
#include <QVector>
|
||||
#include <QSet>
|
||||
#include <QSslKey>
|
||||
#include <QtCrypto>
|
||||
#include <QSslCertificate>
|
||||
#include <QTimer>
|
||||
|
||||
#include "networkpackage.h"
|
||||
#include "backends/devicelink.h"
|
||||
|
|
|
@ -23,7 +23,6 @@
|
|||
#include <KPluginMetaData>
|
||||
#include <KPluginLoader>
|
||||
#include <KPluginFactory>
|
||||
#include <QJsonArray>
|
||||
|
||||
#include "core_debug.h"
|
||||
#include "device.h"
|
||||
|
|
|
@ -25,7 +25,6 @@
|
|||
#include <QDBusInterface>
|
||||
|
||||
#include <KSharedConfig>
|
||||
#include <KConfigGroup>
|
||||
#include <QIcon>
|
||||
|
||||
//#include "modeltest.h"
|
||||
|
|
Loading…
Reference in a new issue