Use Qt provided forward declaration header

This commit is contained in:
Chocobo1 2020-12-09 13:48:59 +08:00
parent d484c0e7ce
commit 498da509db
No known key found for this signature in database
GPG Key ID: 210D9C873253A68C
42 changed files with 52 additions and 37 deletions

View File

@ -33,6 +33,7 @@
#include <QDateTime>
#include <QDir>
#include <QTextStream>
#include <QVector>
#include "base/global.h"
#include "base/logger.h"

View File

@ -29,6 +29,7 @@
#include "upgrade.h"
#include <QFile>
#include <QVector>
#include "base/logger.h"
#include "base/profile.h"

View File

@ -41,6 +41,7 @@
#include <QHash>
#include <QPointer>
#include <QSet>
#include <QtContainerFwd>
#include <QVector>
#include "base/settingvalue.h"
@ -58,7 +59,6 @@ class QFile;
class QNetworkConfiguration;
class QNetworkConfigurationManager;
class QString;
class QStringList;
class QThread;
class QTimer;
class QUrl;

View File

@ -31,6 +31,8 @@
#include <type_traits>
#include <QHash>
namespace BitTorrent
{
uint qHash(const TorrentState key, const uint seed)

View File

@ -29,15 +29,12 @@
#pragma once
#include <QHash>
#include <QMetaType>
#include <QSet>
#include <QString>
#include <QVector>
#include <QtContainerFwd>
class QBitArray;
class QDateTime;
class QStringList;
class QUrl;
namespace BitTorrent

View File

@ -40,6 +40,7 @@
#include <QString>
#include <QStringList>
#include <QUrl>
#include <QVector>
#include "base/exceptions.h"
#include "base/global.h"

View File

@ -32,14 +32,13 @@
#include <libtorrent/torrent_info.hpp>
#include <QCoreApplication>
#include <QVector>
#include <QtContainerFwd>
#include "base/indexrange.h"
class QByteArray;
class QDateTime;
class QString;
class QStringList;
class QUrl;
namespace BitTorrent

View File

@ -32,11 +32,10 @@
#include <QDir>
#include <QFileSystemWatcher>
#include <QHash>
#include <QtContainerFwd>
#include <QTimer>
#include <QVector>
class QStringList;
/*
* Subclassing QFileSystemWatcher in order to support Network File
* System watching (NFS, CIFS) on Linux and Mac OS.

View File

@ -31,6 +31,7 @@
#include <algorithm>
#include <QDateTime>
#include <QVector>
namespace
{

View File

@ -34,7 +34,7 @@
#include <QObject>
#include <QReadWriteLock>
#include <QString>
#include <QVector>
#include <QtContainerFwd>
const int MAX_LOG_MESSAGES = 20000;

View File

@ -41,6 +41,7 @@
#include <QCoreApplication>
#include <QDateTime>
#include <QDir>
#include <QList>
#include <QLocale>
#include <QNetworkCookie>
#include <QSettings>

View File

@ -30,16 +30,15 @@
#ifndef PREFERENCES_H
#define PREFERENCES_H
#include <QList>
#include <QtContainerFwd>
#include <QVariant>
#include "base/utils/net.h"
class QDateTime;
class QNetworkCookie;
class QSize;
class QStringList;
class QTime;
class QVariant;
enum SchedulerDays
{

View File

@ -31,8 +31,7 @@
#include <QAbstractListModel>
#include <QList>
class QStringList;
#include <QtContainerFwd>
class FileSystemWatcher;

View File

@ -31,6 +31,7 @@
#include <QProcess>
#include <QTimer>
#include <QVector>
#include "base/global.h"
#include "base/utils/foreignapps.h"

View File

@ -33,7 +33,7 @@
#include <QList>
#include <QObject>
#include <QString>
#include <QVector>
#include <QtContainerFwd>
class QProcess;
class QTimer;

View File

@ -29,7 +29,7 @@
#ifndef TYPES_H
#define TYPES_H
#include <QMap>
#include <QtContainerFwd>
const qlonglong MAX_ETA = 8640000;

View File

@ -29,6 +29,7 @@
#include "bytearray.h"
#include <QByteArray>
#include <QVector>
QVector<QByteArray> Utils::ByteArray::splitToViews(const QByteArray &in, const QByteArray &sep, const QString::SplitBehavior behavior)
{

View File

@ -29,7 +29,7 @@
#pragma once
#include <QString>
#include <QVector>
#include <QtContainerFwd>
class QByteArray;

View File

@ -52,6 +52,7 @@
#include <QRegularExpression>
#include <QSet>
#include <QSysInfo>
#include <QVector>
#if (defined(Q_OS_UNIX) && !defined(Q_OS_MACOS)) && defined(QT_DBUS_LIB)
#include <QDBusInterface>

View File

@ -28,10 +28,13 @@
#include "net.h"
#include <QList>
#include <QNetworkInterface>
#include <QPair>
#include <QSslCertificate>
#include <QSslKey>
#include <QString>
#include <QVector>
namespace Utils
{

View File

@ -30,9 +30,7 @@
#define BASE_UTILS_NET_H
#include <QHostAddress>
#include <QList>
#include <QPair>
#include <QVector>
#include <QtContainerFwd>
class QSslCertificate;
class QSslKey;

View File

@ -34,6 +34,7 @@
#include <QByteArray>
#include <QString>
#include <QVector>
#include "bytearray.h"
#include "random.h"

View File

@ -35,6 +35,7 @@
#include <QLocale>
#include <QRegExp>
#include <QtGlobal>
#include <QVector>
#if defined(Q_OS_MACOS) || defined(__MINGW32__)
#define QBT_USES_QTHREADSTORAGE

View File

@ -31,9 +31,10 @@
#define UTILS_STRING_H
#include <QChar>
#include <QVector>
#include <QString>
#include <Qt>
#include <QtContainerFwd>
class QString;
class QStringRef;
class TriStateBool;

View File

@ -32,15 +32,14 @@
#include <QComboBox>
#include <QFileIconProvider>
#include <QLineEdit>
#include <QtContainerFwd>
#include <QValidator>
#include <QVector>
class QAction;
class QCompleter;
class QContextMenuEvent;
class QFileSystemModel;
class QKeyEvent;
class QStringList;
class QStringRef;
namespace Private

View File

@ -31,6 +31,7 @@
#include <cmath>
#include <QDebug>
#include <QVector>
namespace
{

View File

@ -30,7 +30,7 @@
#define DOWNLOADEDPIECESBAR_H
#include <QBitArray>
#include <QVector>
#include <QtContainerFwd>
#include "piecesbar.h"

View File

@ -42,6 +42,7 @@
#include <QTableView>
#include <QTreeWidgetItem>
#include <QUrl>
#include <QVector>
#include "base/bittorrent/peerinfo.h"
#include "base/bittorrent/session.h"

View File

@ -30,7 +30,7 @@
#define TRACKERLIST_H
#include <QTreeWidget>
#include <QVector>
#include <QtContainerFwd>
class PropertiesWidget;

View File

@ -30,9 +30,9 @@
#define TRACKERSADDITION_H
#include <QDialog>
#include <QtContainerFwd>
class QString;
class QStringList;
namespace BitTorrent
{

View File

@ -31,11 +31,11 @@
#define PLUGINSELECTDIALOG_H
#include <QDialog>
#include <QStringList>
#include "base/search/searchpluginmanager.h"
class QDropEvent;
class QStringList;
class QTreeWidgetItem;
namespace Net

View File

@ -30,6 +30,8 @@
#include <QDebug>
#include <QIcon>
#include <QSet>
#include <QVector>
#include "base/bittorrent/session.h"
#include "base/bittorrent/torrenthandle.h"

View File

@ -30,8 +30,7 @@
#define TAGFILTERMODEL_H
#include <QAbstractListModel>
#include <QSet>
#include <QVector>
#include <QtContainerFwd>
class QModelIndex;

View File

@ -31,6 +31,7 @@
#include <algorithm>
#include <QHash>
#include <QVector>
#include "base/bittorrent/trackerentry.h"
#include "ui_trackerentriesdialog.h"

View File

@ -29,7 +29,7 @@
#pragma once
#include <QDialog>
#include <QVector>
#include <QtContainerFwd>
#include "base/settingvalue.h"

View File

@ -30,8 +30,10 @@
#include <algorithm>
#include <QHash>
#include <QJsonDocument>
#include <QMetaObject>
#include <QVector>
#include "apierror.h"

View File

@ -28,10 +28,9 @@
#pragma once
#include <QHash>
#include <QObject>
#include <QVariant>
#include <QVector>
#include <QtContainerFwd>
class QString;

View File

@ -30,6 +30,7 @@
#include <QJsonArray>
#include <QJsonObject>
#include <QVector>
#include "base/global.h"
#include "base/logger.h"

View File

@ -32,6 +32,7 @@
#include <QJsonDocument>
#include <QJsonObject>
#include <QJsonValue>
#include <QVector>
#include "base/rss/rss_article.h"
#include "base/rss/rss_autodownloader.h"

View File

@ -30,8 +30,10 @@
#include <limits>
#include <QHash>
#include <QJsonArray>
#include <QJsonObject>
#include <QList>
#include <QSharedPointer>
#include "base/global.h"

View File

@ -28,15 +28,13 @@
#pragma once
#include <QHash>
#include <QList>
#include <QtContainerFwd>
#include "base/search/searchpluginmanager.h"
#include "apicontroller.h"
class QJsonArray;
class QJsonObject;
class QStringList;
struct ISession;
struct SearchResult;

View File

@ -29,6 +29,8 @@
#include "serialize_torrent.h"
#include <QDateTime>
#include <QSet>
#include <QVector>
#include "base/bittorrent/infohash.h"
#include "base/bittorrent/torrenthandle.h"