More unused includes cleanup

This commit is contained in:
Albert Vaca 2016-07-05 14:27:53 +02:00
parent 7c0fbbc034
commit 5933c6810c
17 changed files with 31 additions and 41 deletions

View file

@ -18,11 +18,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include <kdeconnectconfig.h>
#include "downloadjob.h"
#include "lanlinkprovider.h"
#include <core/core_debug.h>
#ifndef Q_OS_WIN
#include <sys/socket.h>
@ -31,7 +27,9 @@
#include <netdb.h>
#endif
#include "kdeconnectconfig.h"
#include "lanlinkprovider.h"
#include "core/core_debug.h"
DownloadJob::DownloadJob(const QHostAddress &address, const QVariantMap &transferInfo)
: KJob()

View file

@ -26,11 +26,11 @@
#include <QIODevice>
#include <QVariantMap>
#include <QHostAddress>
#include <QTcpSocket>
#include <QSharedPointer>
#include <QSslSocket>
#include <QBuffer>
#include <kdeconnectcore_export.h>
#include "kdeconnectcore_export.h"
class KDECONNECTCORE_EXPORT DownloadJob

View file

@ -22,8 +22,8 @@
#include "landevicelink.h"
#include "core_debug.h"
#include <kdeconnectconfig.h>
#include "../linkprovider.h"
#include "kdeconnectconfig.h"
#include "backends/linkprovider.h"
#include "uploadjob.h"
#include "downloadjob.h"
#include "socketlinereader.h"

View file

@ -27,7 +27,7 @@
#include <QSslCertificate>
#include <kdeconnectcore_export.h>
#include "../devicelink.h"
#include "backends/devicelink.h"
#include "uploadjob.h"
class SocketLineReader;

View file

@ -31,17 +31,15 @@
#include <QHostInfo>
#include <QTcpServer>
#include <QUdpSocket>
#include <QtGlobal>
#include <QNetworkSession>
#include <QNetworkConfigurationManager>
#include <QSslCipher>
#include <QSslConfiguration>
#include "../../daemon.h"
#include "daemon.h"
#include "landevicelink.h"
#include "lanpairinghandler.h"
#include <kdeconnectconfig.h>
#include <QDBusPendingReply>
#include <QtNetwork/qsslcipher.h>
#include <QtNetwork/qsslconfiguration.h>
#include "kdeconnectconfig.h"
#define MIN_VERSION_WITH_SSL_SUPPORT 6

View file

@ -29,8 +29,8 @@
#include <QNetworkSession>
#include <QSslSocket>
#include <kdeconnectcore_export.h>
#include "../linkprovider.h"
#include "kdeconnectcore_export.h"
#include "backends/linkprovider.h"
#include "server.h"
#include "landevicelink.h"

View file

@ -25,8 +25,8 @@
#include <QTimer>
#include "device.h"
#include "../devicelink.h"
#include "../pairinghandler.h"
#include "backends/devicelink.h"
#include "backends/pairinghandler.h"
// This class is used pairing related stuff. It has direct access to links and can directly send packages
class LanPairingHandler

View file

@ -22,10 +22,9 @@
#define KDECONNECT_SERVER_H
#include <QTcpServer>
#include <QSslError>
#include <QtNetwork/qsslsocket.h>
#include <kdeconnectcore_export.h>
#include <QSslSocket>
#include "kdeconnectcore_export.h"
// This class overrides QTcpServer to bind QSslSocket to native socket descriptor instead of QTcpSocket
class KDECONNECTCORE_EXPORT Server

View file

@ -22,7 +22,6 @@
#define SOCKETLINEREADER_H
#include <QObject>
#include <QString>
#include <QQueue>
#include <QSslSocket>
#include <QHostAddress>

View file

@ -19,13 +19,11 @@
*/
#include "uploadjob.h"
#include "lanlinkprovider.h"
#include <qalgorithms.h>
#include <QtGlobal>
#include <KLocalizedString>
#include <kdeconnectconfig.h>
#include "lanlinkprovider.h"
#include "kdeconnectconfig.h"
#include "core_debug.h"
UploadJob::UploadJob(const QSharedPointer<QIODevice>& source, const QString& deviceId)

View file

@ -22,16 +22,13 @@
#ifndef FILETRANSFERJOB_H
#define FILETRANSFERJOB_H
#include <KJob>
#include <QIODevice>
#include <QTime>
#include <QTemporaryFile>
#include <QSharedPointer>
#include <KJob>
#include <QUrl>
#include <QNetworkAccessManager>
#include <QNetworkReply>
#include <QBuffer>
#include "kdeconnectcore_export.h"

View file

@ -21,7 +21,6 @@
#include "findmyphoneplugin.h"
#include <core/device.h>
#include <QDBusConnection>
#include <QDebug>

View file

@ -22,7 +22,6 @@
#define NOTIFYINGAPPLICATION_H
#include <QRegularExpression>
#include <QList>
struct NotifyingApplication {
QString name;

View file

@ -18,13 +18,16 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include "notifyingapplicationmodel.h"
#include <algorithm>
#include <QString>
#include <QIcon>
#include <QDebug>
#include <KLocalizedString>
#include <algorithm>
#include "notifyingapplicationmodel.h"
#include <KLocalizedString>
//#include "modeltest.h"
NotifyingApplicationModel::NotifyingApplicationModel(QObject *parent)

View file

@ -21,9 +21,8 @@
#ifndef SENDNOTIFICATIONSPLUGIN_H
#define SENDNOTIFICATIONSPLUGIN_H
#include <knotification.h>
#include "core/kdeconnectplugin.h"
#include <core/kdeconnectplugin.h>
#define PACKAGE_TYPE_NOTIFICATION QLatin1String("kdeconnect.notification")
/*

View file

@ -27,7 +27,7 @@
#include "mountloop.h"
#include "sftp_debug.h"
#include <kdeconnectconfig.h>
#include "kdeconnectconfig.h"
Mounter::Mounter(SftpPlugin* sftp)
: QObject(sftp)

View file

@ -27,13 +27,14 @@
#include <QDesktopServices>
#include <QDBusConnection>
#include <QDebug>
#include <QTemporaryFile>
#include <KLocalizedString>
#include <KJobTrackerInterface>
#include <KPluginFactory>
#include <KIO/MkpathJob>
#include <core/filetransferjob.h>
#include "core/filetransferjob.h"
#include "autoclosingqfile.h"
K_PLUGIN_FACTORY_WITH_JSON( KdeConnectPluginFactory, "kdeconnect_share.json", registerPlugin< SharePlugin >(); )