mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2024-12-21 08:09:35 +08:00
Use Qt provided forward declaration header
This commit is contained in:
parent
d484c0e7ce
commit
498da509db
@ -33,6 +33,7 @@
|
||||
#include <QDateTime>
|
||||
#include <QDir>
|
||||
#include <QTextStream>
|
||||
#include <QVector>
|
||||
|
||||
#include "base/global.h"
|
||||
#include "base/logger.h"
|
||||
|
@ -29,6 +29,7 @@
|
||||
#include "upgrade.h"
|
||||
|
||||
#include <QFile>
|
||||
#include <QVector>
|
||||
|
||||
#include "base/logger.h"
|
||||
#include "base/profile.h"
|
||||
|
@ -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;
|
||||
|
@ -31,6 +31,8 @@
|
||||
|
||||
#include <type_traits>
|
||||
|
||||
#include <QHash>
|
||||
|
||||
namespace BitTorrent
|
||||
{
|
||||
uint qHash(const TorrentState key, const uint seed)
|
||||
|
@ -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
|
||||
|
@ -40,6 +40,7 @@
|
||||
#include <QString>
|
||||
#include <QStringList>
|
||||
#include <QUrl>
|
||||
#include <QVector>
|
||||
|
||||
#include "base/exceptions.h"
|
||||
#include "base/global.h"
|
||||
|
@ -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
|
||||
|
@ -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.
|
||||
|
@ -31,6 +31,7 @@
|
||||
#include <algorithm>
|
||||
|
||||
#include <QDateTime>
|
||||
#include <QVector>
|
||||
|
||||
namespace
|
||||
{
|
||||
|
@ -34,7 +34,7 @@
|
||||
#include <QObject>
|
||||
#include <QReadWriteLock>
|
||||
#include <QString>
|
||||
#include <QVector>
|
||||
#include <QtContainerFwd>
|
||||
|
||||
const int MAX_LOG_MESSAGES = 20000;
|
||||
|
||||
|
@ -41,6 +41,7 @@
|
||||
#include <QCoreApplication>
|
||||
#include <QDateTime>
|
||||
#include <QDir>
|
||||
#include <QList>
|
||||
#include <QLocale>
|
||||
#include <QNetworkCookie>
|
||||
#include <QSettings>
|
||||
|
@ -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
|
||||
{
|
||||
|
@ -31,8 +31,7 @@
|
||||
|
||||
#include <QAbstractListModel>
|
||||
#include <QList>
|
||||
|
||||
class QStringList;
|
||||
#include <QtContainerFwd>
|
||||
|
||||
class FileSystemWatcher;
|
||||
|
||||
|
@ -31,6 +31,7 @@
|
||||
|
||||
#include <QProcess>
|
||||
#include <QTimer>
|
||||
#include <QVector>
|
||||
|
||||
#include "base/global.h"
|
||||
#include "base/utils/foreignapps.h"
|
||||
|
@ -33,7 +33,7 @@
|
||||
#include <QList>
|
||||
#include <QObject>
|
||||
#include <QString>
|
||||
#include <QVector>
|
||||
#include <QtContainerFwd>
|
||||
|
||||
class QProcess;
|
||||
class QTimer;
|
||||
|
@ -29,7 +29,7 @@
|
||||
#ifndef TYPES_H
|
||||
#define TYPES_H
|
||||
|
||||
#include <QMap>
|
||||
#include <QtContainerFwd>
|
||||
|
||||
const qlonglong MAX_ETA = 8640000;
|
||||
|
||||
|
@ -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)
|
||||
{
|
||||
|
@ -29,7 +29,7 @@
|
||||
#pragma once
|
||||
|
||||
#include <QString>
|
||||
#include <QVector>
|
||||
#include <QtContainerFwd>
|
||||
|
||||
class QByteArray;
|
||||
|
||||
|
@ -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>
|
||||
|
@ -28,10 +28,13 @@
|
||||
|
||||
#include "net.h"
|
||||
|
||||
#include <QList>
|
||||
#include <QNetworkInterface>
|
||||
#include <QPair>
|
||||
#include <QSslCertificate>
|
||||
#include <QSslKey>
|
||||
#include <QString>
|
||||
#include <QVector>
|
||||
|
||||
namespace Utils
|
||||
{
|
||||
|
@ -30,9 +30,7 @@
|
||||
#define BASE_UTILS_NET_H
|
||||
|
||||
#include <QHostAddress>
|
||||
#include <QList>
|
||||
#include <QPair>
|
||||
#include <QVector>
|
||||
#include <QtContainerFwd>
|
||||
|
||||
class QSslCertificate;
|
||||
class QSslKey;
|
||||
|
@ -34,6 +34,7 @@
|
||||
|
||||
#include <QByteArray>
|
||||
#include <QString>
|
||||
#include <QVector>
|
||||
|
||||
#include "bytearray.h"
|
||||
#include "random.h"
|
||||
|
@ -35,6 +35,7 @@
|
||||
#include <QLocale>
|
||||
#include <QRegExp>
|
||||
#include <QtGlobal>
|
||||
#include <QVector>
|
||||
|
||||
#if defined(Q_OS_MACOS) || defined(__MINGW32__)
|
||||
#define QBT_USES_QTHREADSTORAGE
|
||||
|
@ -31,9 +31,10 @@
|
||||
#define UTILS_STRING_H
|
||||
|
||||
#include <QChar>
|
||||
#include <QVector>
|
||||
#include <QString>
|
||||
#include <Qt>
|
||||
#include <QtContainerFwd>
|
||||
|
||||
class QString;
|
||||
class QStringRef;
|
||||
|
||||
class TriStateBool;
|
||||
|
@ -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
|
||||
|
@ -31,6 +31,7 @@
|
||||
#include <cmath>
|
||||
|
||||
#include <QDebug>
|
||||
#include <QVector>
|
||||
|
||||
namespace
|
||||
{
|
||||
|
@ -30,7 +30,7 @@
|
||||
#define DOWNLOADEDPIECESBAR_H
|
||||
|
||||
#include <QBitArray>
|
||||
#include <QVector>
|
||||
#include <QtContainerFwd>
|
||||
|
||||
#include "piecesbar.h"
|
||||
|
||||
|
@ -42,6 +42,7 @@
|
||||
#include <QTableView>
|
||||
#include <QTreeWidgetItem>
|
||||
#include <QUrl>
|
||||
#include <QVector>
|
||||
|
||||
#include "base/bittorrent/peerinfo.h"
|
||||
#include "base/bittorrent/session.h"
|
||||
|
@ -30,7 +30,7 @@
|
||||
#define TRACKERLIST_H
|
||||
|
||||
#include <QTreeWidget>
|
||||
#include <QVector>
|
||||
#include <QtContainerFwd>
|
||||
|
||||
class PropertiesWidget;
|
||||
|
||||
|
@ -30,9 +30,9 @@
|
||||
#define TRACKERSADDITION_H
|
||||
|
||||
#include <QDialog>
|
||||
#include <QtContainerFwd>
|
||||
|
||||
class QString;
|
||||
class QStringList;
|
||||
|
||||
namespace BitTorrent
|
||||
{
|
||||
|
@ -31,11 +31,11 @@
|
||||
#define PLUGINSELECTDIALOG_H
|
||||
|
||||
#include <QDialog>
|
||||
#include <QStringList>
|
||||
|
||||
#include "base/search/searchpluginmanager.h"
|
||||
|
||||
class QDropEvent;
|
||||
class QStringList;
|
||||
class QTreeWidgetItem;
|
||||
|
||||
namespace Net
|
||||
|
@ -30,6 +30,8 @@
|
||||
|
||||
#include <QDebug>
|
||||
#include <QIcon>
|
||||
#include <QSet>
|
||||
#include <QVector>
|
||||
|
||||
#include "base/bittorrent/session.h"
|
||||
#include "base/bittorrent/torrenthandle.h"
|
||||
|
@ -30,8 +30,7 @@
|
||||
#define TAGFILTERMODEL_H
|
||||
|
||||
#include <QAbstractListModel>
|
||||
#include <QSet>
|
||||
#include <QVector>
|
||||
#include <QtContainerFwd>
|
||||
|
||||
class QModelIndex;
|
||||
|
||||
|
@ -31,6 +31,7 @@
|
||||
#include <algorithm>
|
||||
|
||||
#include <QHash>
|
||||
#include <QVector>
|
||||
|
||||
#include "base/bittorrent/trackerentry.h"
|
||||
#include "ui_trackerentriesdialog.h"
|
||||
|
@ -29,7 +29,7 @@
|
||||
#pragma once
|
||||
|
||||
#include <QDialog>
|
||||
#include <QVector>
|
||||
#include <QtContainerFwd>
|
||||
|
||||
#include "base/settingvalue.h"
|
||||
|
||||
|
@ -30,8 +30,10 @@
|
||||
|
||||
#include <algorithm>
|
||||
|
||||
#include <QHash>
|
||||
#include <QJsonDocument>
|
||||
#include <QMetaObject>
|
||||
#include <QVector>
|
||||
|
||||
#include "apierror.h"
|
||||
|
||||
|
@ -28,10 +28,9 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <QHash>
|
||||
#include <QObject>
|
||||
#include <QVariant>
|
||||
#include <QVector>
|
||||
#include <QtContainerFwd>
|
||||
|
||||
class QString;
|
||||
|
||||
|
@ -30,6 +30,7 @@
|
||||
|
||||
#include <QJsonArray>
|
||||
#include <QJsonObject>
|
||||
#include <QVector>
|
||||
|
||||
#include "base/global.h"
|
||||
#include "base/logger.h"
|
||||
|
@ -32,6 +32,7 @@
|
||||
#include <QJsonDocument>
|
||||
#include <QJsonObject>
|
||||
#include <QJsonValue>
|
||||
#include <QVector>
|
||||
|
||||
#include "base/rss/rss_article.h"
|
||||
#include "base/rss/rss_autodownloader.h"
|
||||
|
@ -30,8 +30,10 @@
|
||||
|
||||
#include <limits>
|
||||
|
||||
#include <QHash>
|
||||
#include <QJsonArray>
|
||||
#include <QJsonObject>
|
||||
#include <QList>
|
||||
#include <QSharedPointer>
|
||||
|
||||
#include "base/global.h"
|
||||
|
@ -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;
|
||||
|
@ -29,6 +29,8 @@
|
||||
#include "serialize_torrent.h"
|
||||
|
||||
#include <QDateTime>
|
||||
#include <QSet>
|
||||
#include <QVector>
|
||||
|
||||
#include "base/bittorrent/infohash.h"
|
||||
#include "base/bittorrent/torrenthandle.h"
|
||||
|
Loading…
Reference in New Issue
Block a user