mirror of
https://github.com/d47081/qBittorrent.git
synced 2025-03-13 05:41:17 +00:00
Forward declare in a few places
This commit is contained in:
parent
4d92c7e094
commit
4370a7eb12
@ -33,10 +33,11 @@
|
||||
#include <QVector>
|
||||
|
||||
#include "../tristatebool.h"
|
||||
#include "downloadpriority.h"
|
||||
|
||||
namespace BitTorrent
|
||||
{
|
||||
enum class DownloadPriority;
|
||||
|
||||
struct AddTorrentParams
|
||||
{
|
||||
QString name;
|
||||
|
@ -28,6 +28,8 @@
|
||||
|
||||
#include "peerinfo.h"
|
||||
|
||||
#include <QBitArray>
|
||||
|
||||
#include "base/bittorrent/torrenthandle.h"
|
||||
#include "base/net/geoipmanager.h"
|
||||
#include "base/unicodestrings.h"
|
||||
|
@ -31,10 +31,11 @@
|
||||
|
||||
#include <libtorrent/peer_info.hpp>
|
||||
|
||||
#include <QBitArray>
|
||||
#include <QCoreApplication>
|
||||
#include <QHostAddress>
|
||||
|
||||
class QBitArray;
|
||||
|
||||
namespace BitTorrent
|
||||
{
|
||||
class TorrentHandle;
|
||||
|
@ -59,6 +59,7 @@
|
||||
#include "base/profile.h"
|
||||
#include "base/tristatebool.h"
|
||||
#include "base/utils/fs.h"
|
||||
#include "downloadpriority.h"
|
||||
#include "peerinfo.h"
|
||||
#include "session.h"
|
||||
#include "trackerentry.h"
|
||||
|
@ -45,7 +45,6 @@
|
||||
#include <QVector>
|
||||
|
||||
#include "private/speedmonitor.h"
|
||||
#include "downloadpriority.h"
|
||||
#include "infohash.h"
|
||||
#include "torrentinfo.h"
|
||||
|
||||
@ -58,6 +57,7 @@ class QUrl;
|
||||
|
||||
namespace BitTorrent
|
||||
{
|
||||
enum class DownloadPriority;
|
||||
class PeerInfo;
|
||||
class Session;
|
||||
class TrackerEntry;
|
||||
|
@ -34,13 +34,12 @@
|
||||
#include <QElapsedTimer>
|
||||
#include <QObject>
|
||||
|
||||
#include "types.h"
|
||||
|
||||
class QTcpSocket;
|
||||
|
||||
namespace Http
|
||||
{
|
||||
class IRequestHandler;
|
||||
struct Response;
|
||||
|
||||
class Connection : public QObject
|
||||
{
|
||||
|
@ -29,10 +29,12 @@
|
||||
#ifndef HTTP_IREQUESTHANDLER_H
|
||||
#define HTTP_IREQUESTHANDLER_H
|
||||
|
||||
#include "types.h"
|
||||
|
||||
namespace Http
|
||||
{
|
||||
struct Environment;
|
||||
struct Request;
|
||||
struct Response;
|
||||
|
||||
class IRequestHandler
|
||||
{
|
||||
public:
|
||||
|
@ -31,6 +31,7 @@
|
||||
|
||||
#include <QDateTime>
|
||||
|
||||
#include "base/http/types.h"
|
||||
#include "base/utils/gzip.h"
|
||||
|
||||
QByteArray Http::toByteArray(Response response)
|
||||
|
@ -31,10 +31,13 @@
|
||||
#ifndef HTTP_RESPONSEGENERATOR_H
|
||||
#define HTTP_RESPONSEGENERATOR_H
|
||||
|
||||
#include "types.h"
|
||||
class QByteArray;
|
||||
class QString;
|
||||
|
||||
namespace Http
|
||||
{
|
||||
struct Response;
|
||||
|
||||
QByteArray toByteArray(Response response);
|
||||
QString httpDate();
|
||||
void compressContent(Response &response);
|
||||
|
@ -31,13 +31,13 @@
|
||||
#define PREFERENCES_H
|
||||
|
||||
#include <QList>
|
||||
#include <QStringList>
|
||||
|
||||
#include "base/utils/net.h"
|
||||
|
||||
class QDateTime;
|
||||
class QNetworkCookie;
|
||||
class QSize;
|
||||
class QStringList;
|
||||
class QTime;
|
||||
class QVariant;
|
||||
|
||||
|
@ -31,8 +31,8 @@
|
||||
#define UTILS_STRING_H
|
||||
|
||||
#include <QLatin1String>
|
||||
#include <QString>
|
||||
|
||||
class QString;
|
||||
class TriStateBool;
|
||||
|
||||
namespace Utils
|
||||
|
@ -31,7 +31,8 @@
|
||||
|
||||
#include <QDialog>
|
||||
#include <QLineEdit>
|
||||
#include <QString>
|
||||
|
||||
class QString;
|
||||
|
||||
namespace Ui
|
||||
{
|
||||
|
@ -30,15 +30,15 @@
|
||||
#define CATEGORYFILTERMODEL_H
|
||||
|
||||
#include <QAbstractItemModel>
|
||||
#include <QModelIndex>
|
||||
|
||||
class QModelIndex;
|
||||
class CategoryModelItem;
|
||||
|
||||
namespace BitTorrent
|
||||
{
|
||||
class TorrentHandle;
|
||||
}
|
||||
|
||||
class CategoryModelItem;
|
||||
|
||||
class CategoryFilterModel : public QAbstractItemModel
|
||||
{
|
||||
Q_OBJECT
|
||||
|
@ -30,7 +30,8 @@
|
||||
#define CATEGORYFILTERPROXYMODEL_H
|
||||
|
||||
#include <QSortFilterProxyModel>
|
||||
#include <QString>
|
||||
|
||||
class QString;
|
||||
|
||||
class CategoryFilterProxyModel : public QSortFilterProxyModel
|
||||
{
|
||||
|
@ -29,8 +29,11 @@
|
||||
#include "fspathedit_p.h"
|
||||
|
||||
#include <QCompleter>
|
||||
#include <QContextMenuEvent>
|
||||
#include <QDir>
|
||||
#include <QFileInfo>
|
||||
#include <QFileSystemModel>
|
||||
#include <QMenu>
|
||||
#include <QStringList>
|
||||
#include <QStyle>
|
||||
|
||||
|
@ -29,20 +29,19 @@
|
||||
#ifndef QBT_GUI_FSPATHEDIT_P_H
|
||||
#define QBT_GUI_FSPATHEDIT_P_H
|
||||
|
||||
#include <QAction>
|
||||
#include <QComboBox>
|
||||
#include <QCompleter>
|
||||
#include <QContextMenuEvent>
|
||||
#include <QFileIconProvider>
|
||||
#include <QFileSystemModel>
|
||||
#include <QKeyEvent>
|
||||
#include <QLineEdit>
|
||||
#include <QMenu>
|
||||
#include <QStringRef>
|
||||
#include <QValidator>
|
||||
#include <QVector>
|
||||
|
||||
class QAction;
|
||||
class QCompleter;
|
||||
class QContextMenuEvent;
|
||||
class QFileSystemModel;
|
||||
class QKeyEvent;
|
||||
class QStringList;
|
||||
class QStringRef;
|
||||
|
||||
namespace Private
|
||||
{
|
||||
|
@ -31,10 +31,11 @@
|
||||
|
||||
#include <QBitArray>
|
||||
#include <QVector>
|
||||
#include <QWidget>
|
||||
|
||||
#include "piecesbar.h"
|
||||
|
||||
class QWidget;
|
||||
|
||||
class DownloadedPiecesBar : public PiecesBar
|
||||
{
|
||||
using base = PiecesBar;
|
||||
|
@ -29,6 +29,7 @@
|
||||
#include "propertieswidget.h"
|
||||
|
||||
#include <QAction>
|
||||
#include <QClipboard>
|
||||
#include <QDateTime>
|
||||
#include <QDebug>
|
||||
#include <QDir>
|
||||
|
@ -30,12 +30,14 @@
|
||||
|
||||
#include <QAction>
|
||||
#include <QApplication>
|
||||
#include <QClipboard>
|
||||
#include <QColor>
|
||||
#include <QDebug>
|
||||
#include <QHash>
|
||||
#include <QHeaderView>
|
||||
#include <QMenu>
|
||||
#include <QMessageBox>
|
||||
#include <QShortcut>
|
||||
#include <QStringList>
|
||||
#include <QTableView>
|
||||
#include <QTreeWidgetItem>
|
||||
|
@ -29,13 +29,13 @@
|
||||
#ifndef TRACKERLIST_H
|
||||
#define TRACKERLIST_H
|
||||
|
||||
#include <QClipboard>
|
||||
#include <QList>
|
||||
#include <QShortcut>
|
||||
#include <QTreeWidget>
|
||||
|
||||
#include "propertieswidget.h"
|
||||
|
||||
class QShortcut;
|
||||
|
||||
#define NB_STICKY_ITEM 3
|
||||
|
||||
namespace BitTorrent
|
||||
|
@ -37,6 +37,7 @@
|
||||
#include <QMenu>
|
||||
#include <QMessageBox>
|
||||
#include <QRegularExpression>
|
||||
#include <QShortcut>
|
||||
#include <QStandardItemModel>
|
||||
#include <QString>
|
||||
|
||||
|
@ -32,8 +32,9 @@
|
||||
#define RSSWIDGET_H
|
||||
|
||||
#include <QPointer>
|
||||
#include <QShortcut>
|
||||
#include <QWidget>
|
||||
|
||||
class QShortcut;
|
||||
class ArticleListWidget;
|
||||
class FeedListWidget;
|
||||
class QListWidgetItem;
|
||||
|
@ -29,6 +29,7 @@
|
||||
#include "searchsortmodel.h"
|
||||
|
||||
#include "base/global.h"
|
||||
#include "base/utils/string.h"
|
||||
|
||||
SearchSortModel::SearchSortModel(QObject *parent)
|
||||
: base(parent)
|
||||
|
@ -31,7 +31,6 @@
|
||||
|
||||
#include <QSortFilterProxyModel>
|
||||
#include <QStringList>
|
||||
#include "base/utils/string.h"
|
||||
|
||||
class SearchSortModel : public QSortFilterProxyModel
|
||||
{
|
||||
|
@ -30,17 +30,17 @@
|
||||
#define TAGFILTERMODEL_H
|
||||
|
||||
#include <QAbstractListModel>
|
||||
#include <QModelIndex>
|
||||
#include <QSet>
|
||||
#include <QVector>
|
||||
|
||||
class QModelIndex;
|
||||
class TagModelItem;
|
||||
|
||||
namespace BitTorrent
|
||||
{
|
||||
class TorrentHandle;
|
||||
}
|
||||
|
||||
class TagModelItem;
|
||||
|
||||
class TagFilterModel : public QAbstractListModel
|
||||
{
|
||||
Q_OBJECT
|
||||
|
@ -30,7 +30,8 @@
|
||||
#define TAGFILTERPROXYMODEL_H
|
||||
|
||||
#include <QSortFilterProxyModel>
|
||||
#include <QString>
|
||||
|
||||
class QString;
|
||||
|
||||
class TagFilterProxyModel : public QSortFilterProxyModel
|
||||
{
|
||||
|
@ -49,6 +49,7 @@
|
||||
#endif
|
||||
|
||||
#include "base/bittorrent/downloadpriority.h"
|
||||
#include "base/bittorrent/torrentinfo.h"
|
||||
#include "base/global.h"
|
||||
#include "base/utils/fs.h"
|
||||
#include "base/utils/misc.h"
|
||||
|
@ -30,16 +30,20 @@
|
||||
#define TORRENTCONTENTMODEL_H
|
||||
|
||||
#include <QAbstractItemModel>
|
||||
#include <QModelIndex>
|
||||
#include <QVariant>
|
||||
#include <QVector>
|
||||
|
||||
#include "base/bittorrent/torrentinfo.h"
|
||||
#include "torrentcontentmodelitem.h"
|
||||
|
||||
class QFileIconProvider;
|
||||
class QModelIndex;
|
||||
class QVariant;
|
||||
class TorrentContentModelFile;
|
||||
|
||||
namespace BitTorrent
|
||||
{
|
||||
class TorrentInfo;
|
||||
}
|
||||
|
||||
class TorrentContentModel : public QAbstractItemModel
|
||||
{
|
||||
Q_OBJECT
|
||||
|
@ -29,9 +29,13 @@
|
||||
#ifndef TORRENTCONTENTMODELFILE_H
|
||||
#define TORRENTCONTENTMODELFILE_H
|
||||
|
||||
#include "base/bittorrent/downloadpriority.h"
|
||||
#include "torrentcontentmodelitem.h"
|
||||
|
||||
namespace BitTorrent
|
||||
{
|
||||
enum class DownloadPriority;
|
||||
}
|
||||
|
||||
class TorrentContentModelFile : public TorrentContentModelItem
|
||||
{
|
||||
public:
|
||||
|
@ -29,9 +29,13 @@
|
||||
#ifndef TORRENTCONTENTMODELFOLDER_H
|
||||
#define TORRENTCONTENTMODELFOLDER_H
|
||||
|
||||
#include "base/bittorrent/downloadpriority.h"
|
||||
#include "torrentcontentmodelitem.h"
|
||||
|
||||
namespace BitTorrent
|
||||
{
|
||||
enum class DownloadPriority;
|
||||
}
|
||||
|
||||
class TorrentContentModelFolder : public TorrentContentModelItem
|
||||
{
|
||||
public:
|
||||
|
@ -30,10 +30,10 @@
|
||||
#define TORRENTCONTENTMODELITEM_H
|
||||
|
||||
#include <QList>
|
||||
#include <QVariant>
|
||||
|
||||
#include "base/bittorrent/downloadpriority.h"
|
||||
|
||||
class QVariant;
|
||||
class TorrentContentModelFolder;
|
||||
|
||||
class TorrentContentModelItem
|
||||
|
@ -31,9 +31,10 @@
|
||||
#include <QMap>
|
||||
#include <QObject>
|
||||
#include <QSet>
|
||||
#include <QString>
|
||||
#include <QVariant>
|
||||
|
||||
class QString;
|
||||
|
||||
struct ISessionManager;
|
||||
using StringMap = QMap<QString, QString>;
|
||||
using DataMap = QMap<QString, QByteArray>;
|
||||
|
@ -28,9 +28,10 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <QString>
|
||||
#include <QVariant>
|
||||
|
||||
class QString;
|
||||
|
||||
struct ISession
|
||||
{
|
||||
virtual ~ISession() = default;
|
||||
|
@ -28,6 +28,8 @@
|
||||
|
||||
#include "searchcontroller.h"
|
||||
|
||||
#include <QJsonArray>
|
||||
#include <QJsonObject>
|
||||
#include <QSharedPointer>
|
||||
|
||||
#include "base/global.h"
|
||||
@ -37,6 +39,7 @@
|
||||
#include "base/utils/random.h"
|
||||
#include "base/utils/string.h"
|
||||
#include "apierror.h"
|
||||
#include "isessionmanager.h"
|
||||
|
||||
class SearchPluginManager;
|
||||
|
||||
|
@ -29,15 +29,15 @@
|
||||
#pragma once
|
||||
|
||||
#include <QHash>
|
||||
#include <QJsonArray>
|
||||
#include <QJsonObject>
|
||||
#include <QList>
|
||||
#include <QString>
|
||||
|
||||
#include "base/search/searchpluginmanager.h"
|
||||
#include "apicontroller.h"
|
||||
#include "isessionmanager.h"
|
||||
|
||||
class QJsonArray;
|
||||
class QJsonObject;
|
||||
class QStringList;
|
||||
struct ISession;
|
||||
struct SearchResult;
|
||||
|
||||
class SearchController : public APIController
|
||||
|
Loading…
x
Reference in New Issue
Block a user