From 63499511cb786df01c079ece2260bc9044ee602c Mon Sep 17 00:00:00 2001 From: Chocobo1 Date: Mon, 16 Oct 2023 14:52:09 +0800 Subject: [PATCH] Forward declare "Add torrent manager" type PR #19713. --- src/base/addtorrentmanager.h | 14 +++++++++----- src/base/interfaces/iapplication.h | 6 ++---- src/webui/api/torrentscontroller.cpp | 1 + 3 files changed, 12 insertions(+), 9 deletions(-) diff --git a/src/base/addtorrentmanager.h b/src/base/addtorrentmanager.h index cb9f5346d..ef31ae4da 100644 --- a/src/base/addtorrentmanager.h +++ b/src/base/addtorrentmanager.h @@ -38,17 +38,21 @@ #include "base/bittorrent/addtorrentparams.h" #include "base/torrentfileguard.h" -namespace Net -{ - struct DownloadResult; -} - namespace BitTorrent { + class InfoHash; class Session; + class Torrent; class TorrentDescriptor; } +namespace Net +{ + struct DownloadResult; +} + +class QString; + class AddTorrentManager : public ApplicationComponent { Q_OBJECT diff --git a/src/base/interfaces/iapplication.h b/src/base/interfaces/iapplication.h index 0b751cb4f..c26f6a524 100644 --- a/src/base/interfaces/iapplication.h +++ b/src/base/interfaces/iapplication.h @@ -33,11 +33,9 @@ #include #include -#include "base/addtorrentmanager.h" +#include "base/pathfwd.h" -class QString; - -class Path; +class AddTorrentManager; struct QBtCommandLineParameters; #ifdef Q_OS_WIN diff --git a/src/webui/api/torrentscontroller.cpp b/src/webui/api/torrentscontroller.cpp index 661a8d761..3dea5228c 100644 --- a/src/webui/api/torrentscontroller.cpp +++ b/src/webui/api/torrentscontroller.cpp @@ -38,6 +38,7 @@ #include #include +#include "base/addtorrentmanager.h" #include "base/bittorrent/categoryoptions.h" #include "base/bittorrent/downloadpriority.h" #include "base/bittorrent/infohash.h"