Reduce includes

This commit is contained in:
Jonas Kvinge
2020-02-09 02:29:35 +01:00
parent 84cd65dd6c
commit 1851f26e3f
284 changed files with 742 additions and 665 deletions

View File

@@ -19,18 +19,15 @@
#include "config.h"
#include <algorithm>
#include <QtGlobal>
#include <QList>
#include <QVariant>
#include <QString>
#include <QSettings>
#include <QtDebug>
#include "core/application.h"
#include "core/closure.h"
#include "core/logging.h"
#include "core/song.h"
#include "core/timeconstants.h"
#include "settings/settingsdialog.h"
#include "settings/scrobblersettingspage.h"

View File

@@ -22,8 +22,6 @@
#include "config.h"
#include <QtGlobal>
#include <QObject>
#include <QString>

View File

@@ -19,21 +19,11 @@
#include "config.h"
#include <QtGlobal>
#include <QObject>
#include "core/application.h"
#include "core/closure.h"
#include "core/network.h"
#include "core/song.h"
#include "core/timeconstants.h"
#include "core/logging.h"
#include "internet/localredirectserver.h"
#include "settings/settingsdialog.h"
#include "settings/scrobblersettingspage.h"
#include "audioscrobbler.h"
#include "scrobblerservices.h"
#include "scrobblercache.h"
#include "scrobblingapi20.h"
#include "lastfmscrobbler.h"

View File

@@ -22,13 +22,11 @@
#include "config.h"
#include <QtGlobal>
#include <QObject>
#include <QString>
#include "core/song.h"
#include "scrobblerservice.h"
#include "scrobblingapi20.h"
class Application;

View File

@@ -19,21 +19,11 @@
#include "config.h"
#include <QtGlobal>
#include <QObject>
#include "core/application.h"
#include "core/closure.h"
#include "core/network.h"
#include "core/song.h"
#include "core/timeconstants.h"
#include "core/logging.h"
#include "internet/localredirectserver.h"
#include "settings/settingsdialog.h"
#include "settings/scrobblersettingspage.h"
#include "audioscrobbler.h"
#include "scrobblerservices.h"
#include "scrobblercache.h"
#include "scrobblingapi20.h"
#include "librefmscrobbler.h"

View File

@@ -22,13 +22,11 @@
#include "config.h"
#include <QtGlobal>
#include <QObject>
#include <QString>
#include "core/song.h"
#include "scrobblerservice.h"
#include "scrobblingapi20.h"
class Application;

View File

@@ -32,11 +32,11 @@
#include <QSettings>
#include <QNetworkRequest>
#include <QNetworkReply>
#include <QJsonParseError>
#include <QJsonDocument>
#include <QJsonObject>
#include <QJsonArray>
#include <QJsonValue>
#include <QtDebug>
#include "core/application.h"
#include "core/closure.h"
@@ -45,11 +45,8 @@
#include "core/timeconstants.h"
#include "core/logging.h"
#include "internet/localredirectserver.h"
#include "settings/settingsdialog.h"
#include "settings/scrobblersettingspage.h"
#include "audioscrobbler.h"
#include "scrobblerservices.h"
#include "scrobblerservice.h"
#include "scrobblercache.h"
#include "scrobblercacheitem.h"

View File

@@ -22,13 +22,13 @@
#include "config.h"
#include <QtGlobal>
#include <QObject>
#include <QList>
#include <QVariant>
#include <QByteArray>
#include <QString>
#include <QUrl>
#include <QJsonDocument>
#include "core/song.h"

View File

@@ -22,16 +22,17 @@
#include <QObject>
#include <QStandardPaths>
#include <QHash>
#include <QVariant>
#include <QString>
#include <QFile>
#include <QIODevice>
#include <QTextStream>
#include <QHash>
#include <QJsonDocument>
#include <QJsonValue>
#include <QJsonObject>
#include <QJsonArray>
#include <QJsonParseError>
#include <QtDebug>
#include "core/song.h"
#include "core/logging.h"

View File

@@ -22,7 +22,7 @@
#include "config.h"
#include <QtGlobal>
#include <QObject>
#include <QList>
#include <QHash>

View File

@@ -19,7 +19,6 @@
#include "config.h"
#include <QObject>
#include <QtGlobal>
#include <QString>

View File

@@ -19,12 +19,12 @@
#include "config.h"
#include <QtGlobal>
#include <QObject>
#include <QString>
#include <QByteArray>
#include <QJsonDocument>
#include <QJsonObject>
#include <QJsonParseError>
#include "scrobblerservice.h"

View File

@@ -22,7 +22,6 @@
#include "config.h"
#include <QObject>
#include <QPair>
#include <QList>

View File

@@ -24,7 +24,6 @@
#include <QString>
#include <QtDebug>
#include "core/application.h"
#include "core/logging.h"
#include "scrobblerservices.h"

View File

@@ -19,11 +19,14 @@
#include "config.h"
#include <algorithm>
#include <QtGlobal>
#include <QApplication>
#include <QDesktopServices>
#include <QLocale>
#include <QClipboard>
#include <QPair>
#include <QVariant>
#include <QByteArray>
#include <QString>
@@ -31,16 +34,16 @@
#include <QUrlQuery>
#include <QDateTime>
#include <QCryptographicHash>
#include <QMenu>
#include <QMessageBox>
#include <QSettings>
#include <QNetworkRequest>
#include <QNetworkReply>
#include <QJsonParseError>
#include <QJsonDocument>
#include <QJsonObject>
#include <QJsonArray>
#include <QJsonValue>
#include <QFlags>
#include <QtDebug>
#include "core/application.h"
#include "core/closure.h"
@@ -49,11 +52,10 @@
#include "core/timeconstants.h"
#include "core/logging.h"
#include "internet/localredirectserver.h"
#include "settings/settingsdialog.h"
#include "settings/scrobblersettingspage.h"
#include "audioscrobbler.h"
#include "scrobblerservices.h"
#include "scrobblerservice.h"
#include "scrobblingapi20.h"
#include "scrobblercache.h"
#include "scrobblercacheitem.h"

View File

@@ -39,8 +39,6 @@ class QNetworkReply;
class Application;
class NetworkAccessManager;
class LocalRedirectServer;
class ScrobblerService;
class ScrobblerCache;
class ScrobblerCacheItem;
class ScrobblingAPI20 : public ScrobblerService {