Browse Source

Forward declare "Add torrent manager" type

PR #19713.
adaptive-webui-19844
Chocobo1 1 year ago committed by GitHub
parent
commit
63499511cb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 14
      src/base/addtorrentmanager.h
  2. 6
      src/base/interfaces/iapplication.h
  3. 1
      src/webui/api/torrentscontroller.cpp

14
src/base/addtorrentmanager.h

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

6
src/base/interfaces/iapplication.h

@ -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

1
src/webui/api/torrentscontroller.cpp

@ -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"

Loading…
Cancel
Save