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"