Forward declare "Add torrent manager" type

PR #19713.
This commit is contained in:
Chocobo1 2023-10-16 14:52:09 +08:00 committed by GitHub
parent 413e7dd3c4
commit 63499511cb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 12 additions and 9 deletions

View file

@ -38,16 +38,20 @@
#include "base/bittorrent/addtorrentparams.h" #include "base/bittorrent/addtorrentparams.h"
#include "base/torrentfileguard.h" #include "base/torrentfileguard.h"
namespace BitTorrent
{
class InfoHash;
class Session;
class Torrent;
class TorrentDescriptor;
}
namespace Net namespace Net
{ {
struct DownloadResult; struct DownloadResult;
} }
namespace BitTorrent class QString;
{
class Session;
class TorrentDescriptor;
}
class AddTorrentManager : public ApplicationComponent<QObject> class AddTorrentManager : public ApplicationComponent<QObject>
{ {

View file

@ -33,11 +33,9 @@
#include <QtSystemDetection> #include <QtSystemDetection>
#include <QMetaObject> #include <QMetaObject>
#include "base/addtorrentmanager.h" #include "base/pathfwd.h"
class QString; class AddTorrentManager;
class Path;
struct QBtCommandLineParameters; struct QBtCommandLineParameters;
#ifdef Q_OS_WIN #ifdef Q_OS_WIN

View file

@ -38,6 +38,7 @@
#include <QRegularExpression> #include <QRegularExpression>
#include <QUrl> #include <QUrl>
#include "base/addtorrentmanager.h"
#include "base/bittorrent/categoryoptions.h" #include "base/bittorrent/categoryoptions.h"
#include "base/bittorrent/downloadpriority.h" #include "base/bittorrent/downloadpriority.h"
#include "base/bittorrent/infohash.h" #include "base/bittorrent/infohash.h"