Browse Source

Merge pull request #10752 from thalieht/fw-declare

Forward declare and remove some unused #include
adaptive-webui-19844
Mike Tzou 6 years ago committed by GitHub
parent
commit
c95650c4f3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      src/base/bittorrent/addtorrentparams.h
  2. 2
      src/base/bittorrent/peerinfo.cpp
  3. 3
      src/base/bittorrent/peerinfo.h
  4. 1
      src/base/bittorrent/private/resumedatasavingmanager.cpp
  5. 1
      src/base/bittorrent/torrentcreatorthread.cpp
  6. 1
      src/base/bittorrent/torrenthandle.cpp
  7. 2
      src/base/bittorrent/torrenthandle.h
  8. 1
      src/base/bittorrent/trackerentry.h
  9. 2
      src/base/filesystemwatcher.cpp
  10. 3
      src/base/http/connection.h
  11. 6
      src/base/http/irequesthandler.h
  12. 1
      src/base/http/responsegenerator.cpp
  13. 5
      src/base/http/responsegenerator.h
  14. 1
      src/base/net/downloadmanager.h
  15. 1
      src/base/net/geoipmanager.cpp
  16. 1
      src/base/net/geoipmanager.h
  17. 1
      src/base/net/private/geoipdatabase.cpp
  18. 1
      src/base/net/smtp.h
  19. 1
      src/base/preferences.cpp
  20. 2
      src/base/preferences.h
  21. 1
      src/base/profile.h
  22. 1
      src/base/rss/rss_autodownloader.cpp
  23. 1
      src/base/rss/rss_autodownloader.h
  24. 1
      src/base/rss/rss_autodownloadrule.cpp
  25. 1
      src/base/rss/rss_autodownloadrule.h
  26. 2
      src/base/rss/rss_session.cpp
  27. 1
      src/base/rss/rss_session.h
  28. 1
      src/base/scanfoldersmodel.h
  29. 1
      src/base/search/searchdownloadhandler.h
  30. 1
      src/base/search/searchpluginmanager.cpp
  31. 1
      src/base/utils/fs.cpp
  32. 1
      src/base/utils/misc.h
  33. 1
      src/base/utils/password.cpp
  34. 3
      src/base/utils/string.h
  35. 1
      src/gui/addnewtorrentdialog.cpp
  36. 1
      src/gui/advancedsettings.cpp
  37. 3
      src/gui/autoexpandabledialog.cpp
  38. 3
      src/gui/autoexpandabledialog.h
  39. 7
      src/gui/categoryfiltermodel.h
  40. 3
      src/gui/categoryfilterproxymodel.h
  41. 1
      src/gui/categoryfilterwidget.cpp
  42. 1
      src/gui/executionlogwidget.cpp
  43. 1
      src/gui/fspathedit.h
  44. 3
      src/gui/fspathedit_p.cpp
  45. 13
      src/gui/fspathedit_p.h
  46. 2
      src/gui/guiiconprovider.cpp
  47. 6
      src/gui/mainwindow.cpp
  48. 2
      src/gui/optionsdialog.cpp
  49. 1
      src/gui/optionsdialog.h
  50. 1
      src/gui/programupdater.cpp
  51. 1
      src/gui/programupdater.h
  52. 3
      src/gui/properties/downloadedpiecesbar.h
  53. 2
      src/gui/properties/peerlistwidget.cpp
  54. 14
      src/gui/properties/peerlistwidget.h
  55. 1
      src/gui/properties/propertieswidget.cpp
  56. 1
      src/gui/properties/proplistdelegate.cpp
  57. 1
      src/gui/properties/proplistdelegate.h
  58. 1
      src/gui/properties/speedwidget.h
  59. 3
      src/gui/properties/trackerlistwidget.cpp
  60. 4
      src/gui/properties/trackerlistwidget.h
  61. 2
      src/gui/properties/trackersadditiondialog.cpp
  62. 1
      src/gui/rss/automatedrssdownloader.cpp
  63. 3
      src/gui/rss/rsswidget.cpp
  64. 9
      src/gui/rss/rsswidget.h
  65. 1
      src/gui/scanfoldersdelegate.h
  66. 2
      src/gui/search/searchlistdelegate.cpp
  67. 1
      src/gui/search/searchsortmodel.cpp
  68. 1
      src/gui/search/searchsortmodel.h
  69. 12
      src/gui/search/searchwidget.cpp
  70. 1
      src/gui/statusbar.cpp
  71. 7
      src/gui/tagfiltermodel.h
  72. 3
      src/gui/tagfilterproxymodel.h
  73. 2
      src/gui/tagfilterwidget.cpp
  74. 2
      src/gui/torrentcontentmodel.cpp
  75. 11
      src/gui/torrentcontentmodel.h
  76. 6
      src/gui/torrentcontentmodelfile.h
  77. 6
      src/gui/torrentcontentmodelfolder.h
  78. 4
      src/gui/torrentcontentmodelitem.cpp
  79. 3
      src/gui/torrentcontentmodelitem.h
  80. 1
      src/gui/torrentcreatordialog.cpp
  81. 4
      src/gui/transferlistfilterswidget.cpp
  82. 1
      src/gui/transferlistfilterswidget.h
  83. 1
      src/gui/transferlistmodel.cpp
  84. 3
      src/webui/api/apicontroller.h
  85. 3
      src/webui/api/isessionmanager.h
  86. 3
      src/webui/api/searchcontroller.cpp
  87. 9
      src/webui/api/searchcontroller.h
  88. 2
      src/webui/api/serialize/serialize_torrent.cpp
  89. 1
      src/webui/api/synccontroller.cpp

3
src/base/bittorrent/addtorrentparams.h

@ -33,10 +33,11 @@
#include <QVector> #include <QVector>
#include "../tristatebool.h" #include "../tristatebool.h"
#include "downloadpriority.h"
namespace BitTorrent namespace BitTorrent
{ {
enum class DownloadPriority;
struct AddTorrentParams struct AddTorrentParams
{ {
QString name; QString name;

2
src/base/bittorrent/peerinfo.cpp

@ -28,6 +28,8 @@
#include "peerinfo.h" #include "peerinfo.h"
#include <QBitArray>
#include "base/bittorrent/torrenthandle.h" #include "base/bittorrent/torrenthandle.h"
#include "base/net/geoipmanager.h" #include "base/net/geoipmanager.h"
#include "base/unicodestrings.h" #include "base/unicodestrings.h"

3
src/base/bittorrent/peerinfo.h

@ -31,10 +31,11 @@
#include <libtorrent/peer_info.hpp> #include <libtorrent/peer_info.hpp>
#include <QBitArray>
#include <QCoreApplication> #include <QCoreApplication>
#include <QHostAddress> #include <QHostAddress>
class QBitArray;
namespace BitTorrent namespace BitTorrent
{ {
class TorrentHandle; class TorrentHandle;

1
src/base/bittorrent/private/resumedatasavingmanager.cpp

@ -29,7 +29,6 @@
#include "resumedatasavingmanager.h" #include "resumedatasavingmanager.h"
#include <QByteArray> #include <QByteArray>
#include <QDebug>
#include <QSaveFile> #include <QSaveFile>
#include "base/logger.h" #include "base/logger.h"

1
src/base/bittorrent/torrentcreatorthread.cpp

@ -43,7 +43,6 @@
#include "base/global.h" #include "base/global.h"
#include "base/utils/fs.h" #include "base/utils/fs.h"
#include "base/utils/misc.h"
#include "base/utils/string.h" #include "base/utils/string.h"
namespace namespace

1
src/base/bittorrent/torrenthandle.cpp

@ -59,6 +59,7 @@
#include "base/profile.h" #include "base/profile.h"
#include "base/tristatebool.h" #include "base/tristatebool.h"
#include "base/utils/fs.h" #include "base/utils/fs.h"
#include "downloadpriority.h"
#include "peerinfo.h" #include "peerinfo.h"
#include "session.h" #include "session.h"
#include "trackerentry.h" #include "trackerentry.h"

2
src/base/bittorrent/torrenthandle.h

@ -45,7 +45,6 @@
#include <QVector> #include <QVector>
#include "private/speedmonitor.h" #include "private/speedmonitor.h"
#include "downloadpriority.h"
#include "infohash.h" #include "infohash.h"
#include "torrentinfo.h" #include "torrentinfo.h"
@ -58,6 +57,7 @@ class QUrl;
namespace BitTorrent namespace BitTorrent
{ {
enum class DownloadPriority;
class PeerInfo; class PeerInfo;
class Session; class Session;
class TrackerEntry; class TrackerEntry;

1
src/base/bittorrent/trackerentry.h

@ -30,7 +30,6 @@
#define BITTORRENT_TRACKERENTRY_H #define BITTORRENT_TRACKERENTRY_H
#include <libtorrent/announce_entry.hpp> #include <libtorrent/announce_entry.hpp>
#include <libtorrent/torrent_info.hpp>
class QString; class QString;

2
src/base/filesystemwatcher.cpp

@ -37,11 +37,9 @@
#endif #endif
#include "base/algorithm.h" #include "base/algorithm.h"
#include "base/bittorrent/magneturi.h"
#include "base/bittorrent/torrentinfo.h" #include "base/bittorrent/torrentinfo.h"
#include "base/global.h" #include "base/global.h"
#include "base/logger.h" #include "base/logger.h"
#include "base/preferences.h"
#include "base/utils/fs.h" #include "base/utils/fs.h"
namespace namespace

3
src/base/http/connection.h

@ -34,13 +34,12 @@
#include <QElapsedTimer> #include <QElapsedTimer>
#include <QObject> #include <QObject>
#include "types.h"
class QTcpSocket; class QTcpSocket;
namespace Http namespace Http
{ {
class IRequestHandler; class IRequestHandler;
struct Response;
class Connection : public QObject class Connection : public QObject
{ {

6
src/base/http/irequesthandler.h

@ -29,10 +29,12 @@
#ifndef HTTP_IREQUESTHANDLER_H #ifndef HTTP_IREQUESTHANDLER_H
#define HTTP_IREQUESTHANDLER_H #define HTTP_IREQUESTHANDLER_H
#include "types.h"
namespace Http namespace Http
{ {
struct Environment;
struct Request;
struct Response;
class IRequestHandler class IRequestHandler
{ {
public: public:

1
src/base/http/responsegenerator.cpp

@ -31,6 +31,7 @@
#include <QDateTime> #include <QDateTime>
#include "base/http/types.h"
#include "base/utils/gzip.h" #include "base/utils/gzip.h"
QByteArray Http::toByteArray(Response response) QByteArray Http::toByteArray(Response response)

5
src/base/http/responsegenerator.h

@ -31,10 +31,13 @@
#ifndef HTTP_RESPONSEGENERATOR_H #ifndef HTTP_RESPONSEGENERATOR_H
#define HTTP_RESPONSEGENERATOR_H #define HTTP_RESPONSEGENERATOR_H
#include "types.h" class QByteArray;
class QString;
namespace Http namespace Http
{ {
struct Response;
QByteArray toByteArray(Response response); QByteArray toByteArray(Response response);
QString httpDate(); QString httpDate();
void compressContent(Response &response); void compressContent(Response &response);

1
src/base/net/downloadmanager.h

@ -32,7 +32,6 @@
#include <QHash> #include <QHash>
#include <QNetworkAccessManager> #include <QNetworkAccessManager>
#include <QNetworkRequest>
#include <QObject> #include <QObject>
#include <QQueue> #include <QQueue>
#include <QSet> #include <QSet>

1
src/base/net/geoipmanager.cpp

@ -30,7 +30,6 @@
#include "geoipmanager.h" #include "geoipmanager.h"
#include <QDateTime> #include <QDateTime>
#include <QDebug>
#include <QDir> #include <QDir>
#include <QFile> #include <QFile>
#include <QHostAddress> #include <QHostAddress>

1
src/base/net/geoipmanager.h

@ -30,7 +30,6 @@
#ifndef NET_GEOIPMANAGER_H #ifndef NET_GEOIPMANAGER_H
#define NET_GEOIPMANAGER_H #define NET_GEOIPMANAGER_H
#include <QCache>
#include <QObject> #include <QObject>
class QHostAddress; class QHostAddress;

1
src/base/net/private/geoipdatabase.cpp

@ -32,7 +32,6 @@
#include <QHostAddress> #include <QHostAddress>
#include <QVariant> #include <QVariant>
#include "base/types.h"
#include "geoipdatabase.h" #include "geoipdatabase.h"
namespace namespace

1
src/base/net/smtp.h

@ -36,7 +36,6 @@
#include <QAbstractSocket> #include <QAbstractSocket>
#include <QByteArray> #include <QByteArray>
#include <QHash> #include <QHash>
#include <QMetaType>
#include <QObject> #include <QObject>
#include <QString> #include <QString>

1
src/base/preferences.cpp

@ -59,7 +59,6 @@
#include "global.h" #include "global.h"
#include "settingsstorage.h" #include "settingsstorage.h"
#include "utils/fs.h" #include "utils/fs.h"
#include "utils/misc.h"
Preferences *Preferences::m_instance = nullptr; Preferences *Preferences::m_instance = nullptr;

2
src/base/preferences.h

@ -31,13 +31,13 @@
#define PREFERENCES_H #define PREFERENCES_H
#include <QList> #include <QList>
#include <QStringList>
#include "base/utils/net.h" #include "base/utils/net.h"
class QDateTime; class QDateTime;
class QNetworkCookie; class QNetworkCookie;
class QSize; class QSize;
class QStringList;
class QTime; class QTime;
class QVariant; class QVariant;

1
src/base/profile.h

@ -35,6 +35,7 @@
#include <QSettings> #include <QSettings>
class QString; class QString;
class Application; class Application;
namespace Private namespace Private

1
src/base/rss/rss_autodownloader.cpp

@ -30,7 +30,6 @@
#include <QDataStream> #include <QDataStream>
#include <QDebug> #include <QDebug>
#include <QJsonArray>
#include <QJsonDocument> #include <QJsonDocument>
#include <QJsonObject> #include <QJsonObject>
#include <QJsonValue> #include <QJsonValue>

1
src/base/rss/rss_autodownloader.h

@ -40,6 +40,7 @@
class QThread; class QThread;
class QTimer; class QTimer;
class Application; class Application;
class AsyncFileStorage; class AsyncFileStorage;
struct ProcessingJob; struct ProcessingJob;

1
src/base/rss/rss_autodownloadrule.cpp

@ -32,7 +32,6 @@
#include <algorithm> #include <algorithm>
#include <QDebug> #include <QDebug>
#include <QDir>
#include <QHash> #include <QHash>
#include <QJsonArray> #include <QJsonArray>
#include <QJsonObject> #include <QJsonObject>

1
src/base/rss/rss_autodownloadrule.h

@ -35,6 +35,7 @@
class QDateTime; class QDateTime;
class QJsonObject; class QJsonObject;
class QRegularExpression; class QRegularExpression;
class TriStateBool; class TriStateBool;
namespace RSS namespace RSS

2
src/base/rss/rss_session.cpp

@ -31,14 +31,12 @@
#include "rss_session.h" #include "rss_session.h"
#include <QDebug> #include <QDebug>
#include <QDir>
#include <QJsonDocument> #include <QJsonDocument>
#include <QJsonObject> #include <QJsonObject>
#include <QJsonValue> #include <QJsonValue>
#include <QSaveFile> #include <QSaveFile>
#include <QString> #include <QString>
#include <QThread> #include <QThread>
#include <QVariantHash>
#include "../asyncfilestorage.h" #include "../asyncfilestorage.h"
#include "../global.h" #include "../global.h"

1
src/base/rss/rss_session.h

@ -68,6 +68,7 @@
#include <QTimer> #include <QTimer>
class QThread; class QThread;
class Application; class Application;
class AsyncFileStorage; class AsyncFileStorage;

1
src/base/scanfoldersmodel.h

@ -33,6 +33,7 @@
#include <QList> #include <QList>
class QStringList; class QStringList;
class FileSystemWatcher; class FileSystemWatcher;
class ScanFoldersModel : public QAbstractListModel class ScanFoldersModel : public QAbstractListModel

1
src/base/search/searchdownloadhandler.h

@ -31,6 +31,7 @@
#include <QObject> #include <QObject>
class QProcess; class QProcess;
class SearchPluginManager; class SearchPluginManager;
class SearchDownloadHandler : public QObject class SearchDownloadHandler : public QObject

1
src/base/search/searchpluginmanager.cpp

@ -31,7 +31,6 @@
#include <memory> #include <memory>
#include <QDebug>
#include <QDir> #include <QDir>
#include <QDirIterator> #include <QDirIterator>
#include <QDomDocument> #include <QDomDocument>

1
src/base/utils/fs.cpp

@ -49,7 +49,6 @@
#include <unistd.h> #include <unistd.h>
#endif #endif
#include <QCoreApplication>
#include <QDebug> #include <QDebug>
#include <QDir> #include <QDir>
#include <QDirIterator> #include <QDirIterator>

1
src/base/utils/misc.h

@ -37,6 +37,7 @@
#endif #endif
class QString; class QString;
enum class ShutdownDialogAction; enum class ShutdownDialogAction;
/* Miscellaneous functions that can be useful */ /* Miscellaneous functions that can be useful */

1
src/base/utils/password.cpp

@ -37,7 +37,6 @@
#include "bytearray.h" #include "bytearray.h"
#include "random.h" #include "random.h"
#include "string.h"
namespace Utils namespace Utils
{ {

3
src/base/utils/string.h

@ -31,7 +31,8 @@
#define UTILS_STRING_H #define UTILS_STRING_H
#include <QLatin1String> #include <QLatin1String>
#include <QString>
class QString;
class TriStateBool; class TriStateBool;

1
src/gui/addnewtorrentdialog.cpp

@ -43,7 +43,6 @@
#include "base/bittorrent/torrenthandle.h" #include "base/bittorrent/torrenthandle.h"
#include "base/global.h" #include "base/global.h"
#include "base/net/downloadmanager.h" #include "base/net/downloadmanager.h"
#include "base/preferences.h"
#include "base/settingsstorage.h" #include "base/settingsstorage.h"
#include "base/torrentfileguard.h" #include "base/torrentfileguard.h"
#include "base/utils/fs.h" #include "base/utils/fs.h"

1
src/gui/advancedsettings.cpp

@ -30,7 +30,6 @@
#include <limits> #include <limits>
#include <QFont>
#include <QHeaderView> #include <QHeaderView>
#include <QHostAddress> #include <QHostAddress>
#include <QNetworkInterface> #include <QNetworkInterface>

3
src/gui/autoexpandabledialog.cpp

@ -28,9 +28,6 @@
#include "autoexpandabledialog.h" #include "autoexpandabledialog.h"
#include <QDesktopWidget>
#include "mainwindow.h"
#include "ui_autoexpandabledialog.h" #include "ui_autoexpandabledialog.h"
#include "utils.h" #include "utils.h"

3
src/gui/autoexpandabledialog.h

@ -31,7 +31,8 @@
#include <QDialog> #include <QDialog>
#include <QLineEdit> #include <QLineEdit>
#include <QString>
class QString;
namespace Ui namespace Ui
{ {

7
src/gui/categoryfiltermodel.h

@ -30,15 +30,16 @@
#define CATEGORYFILTERMODEL_H #define CATEGORYFILTERMODEL_H
#include <QAbstractItemModel> #include <QAbstractItemModel>
#include <QModelIndex>
class QModelIndex;
class CategoryModelItem;
namespace BitTorrent namespace BitTorrent
{ {
class TorrentHandle; class TorrentHandle;
} }
class CategoryModelItem;
class CategoryFilterModel : public QAbstractItemModel class CategoryFilterModel : public QAbstractItemModel
{ {
Q_OBJECT Q_OBJECT

3
src/gui/categoryfilterproxymodel.h

@ -30,7 +30,8 @@
#define CATEGORYFILTERPROXYMODEL_H #define CATEGORYFILTERPROXYMODEL_H
#include <QSortFilterProxyModel> #include <QSortFilterProxyModel>
#include <QString>
class QString;
class CategoryFilterProxyModel : public QSortFilterProxyModel class CategoryFilterProxyModel : public QSortFilterProxyModel
{ {

1
src/gui/categoryfilterwidget.cpp

@ -29,7 +29,6 @@
#include "categoryfilterwidget.h" #include "categoryfilterwidget.h"
#include <QAction> #include <QAction>
#include <QHeaderView>
#include <QMenu> #include <QMenu>
#include "base/bittorrent/session.h" #include "base/bittorrent/session.h"

1
src/gui/executionlogwidget.cpp

@ -28,7 +28,6 @@
#include "executionlogwidget.h" #include "executionlogwidget.h"
#include <QColor>
#include <QDateTime> #include <QDateTime>
#include <QPalette> #include <QPalette>

1
src/gui/fspathedit.h

@ -29,7 +29,6 @@
#ifndef QBT_FSPATHEDIT_H #ifndef QBT_FSPATHEDIT_H
#define QBT_FSPATHEDIT_H #define QBT_FSPATHEDIT_H
#include <QScopedPointer>
#include <QWidget> #include <QWidget>
namespace Private namespace Private

3
src/gui/fspathedit_p.cpp

@ -29,8 +29,11 @@
#include "fspathedit_p.h" #include "fspathedit_p.h"
#include <QCompleter> #include <QCompleter>
#include <QContextMenuEvent>
#include <QDir> #include <QDir>
#include <QFileInfo> #include <QFileInfo>
#include <QFileSystemModel>
#include <QMenu>
#include <QStringList> #include <QStringList>
#include <QStyle> #include <QStyle>

13
src/gui/fspathedit_p.h

@ -29,20 +29,19 @@
#ifndef QBT_GUI_FSPATHEDIT_P_H #ifndef QBT_GUI_FSPATHEDIT_P_H
#define QBT_GUI_FSPATHEDIT_P_H #define QBT_GUI_FSPATHEDIT_P_H
#include <QAction>
#include <QComboBox> #include <QComboBox>
#include <QCompleter>
#include <QContextMenuEvent>
#include <QFileIconProvider> #include <QFileIconProvider>
#include <QFileSystemModel>
#include <QKeyEvent>
#include <QLineEdit> #include <QLineEdit>
#include <QMenu>
#include <QStringRef>
#include <QValidator> #include <QValidator>
#include <QVector> #include <QVector>
class QAction;
class QCompleter;
class QContextMenuEvent;
class QFileSystemModel;
class QKeyEvent;
class QStringList; class QStringList;
class QStringRef;
namespace Private namespace Private
{ {

2
src/gui/guiiconprovider.cpp

@ -31,9 +31,7 @@
#include <QHash> #include <QHash>
#include <QIcon> #include <QIcon>
#include <QVector>
#if (defined(Q_OS_UNIX) && !defined(Q_OS_MAC)) #if (defined(Q_OS_UNIX) && !defined(Q_OS_MAC))
#include <QDir>
#include <QFile> #include <QFile>
#endif #endif

6
src/gui/mainwindow.cpp

@ -28,7 +28,6 @@
#include "mainwindow.h" #include "mainwindow.h"
#include <QClipboard>
#include <QCloseEvent> #include <QCloseEvent>
#include <QDebug> #include <QDebug>
#include <QDesktopServices> #include <QDesktopServices>
@ -38,7 +37,6 @@
#include <QMimeData> #include <QMimeData>
#include <QProcess> #include <QProcess>
#include <QPushButton> #include <QPushButton>
#include <QScrollBar>
#include <QShortcut> #include <QShortcut>
#include <QSplitter> #include <QSplitter>
#include <QStatusBar> #include <QStatusBar>
@ -71,7 +69,6 @@
#include "base/utils/password.h" #include "base/utils/password.h"
#include "aboutdialog.h" #include "aboutdialog.h"
#include "addnewtorrentdialog.h" #include "addnewtorrentdialog.h"
#include "application.h"
#include "autoexpandabledialog.h" #include "autoexpandabledialog.h"
#include "cookiesdialog.h" #include "cookiesdialog.h"
#include "downloadfromurldialog.h" #include "downloadfromurldialog.h"
@ -96,9 +93,6 @@
#include "ui_mainwindow.h" #include "ui_mainwindow.h"
#include "utils.h" #include "utils.h"
#ifdef Q_OS_WIN
#include "base/net/downloadmanager.h"
#endif
#ifdef Q_OS_MAC #ifdef Q_OS_MAC
#include "macutilities.h" #include "macutilities.h"
#endif #endif

2
src/gui/optionsdialog.cpp

@ -35,7 +35,6 @@
#include <QCloseEvent> #include <QCloseEvent>
#include <QDebug> #include <QDebug>
#include <QDesktopServices> #include <QDesktopServices>
#include <QDesktopWidget>
#include <QDialogButtonBox> #include <QDialogButtonBox>
#include <QEvent> #include <QEvent>
#include <QFileDialog> #include <QFileDialog>
@ -45,7 +44,6 @@
#include "base/bittorrent/session.h" #include "base/bittorrent/session.h"
#include "base/global.h" #include "base/global.h"
#include "base/http/server.h"
#include "base/net/dnsupdater.h" #include "base/net/dnsupdater.h"
#include "base/net/portforwarder.h" #include "base/net/portforwarder.h"
#include "base/net/proxyconfigurationmanager.h" #include "base/net/proxyconfigurationmanager.h"

1
src/gui/optionsdialog.h

@ -34,6 +34,7 @@
class QAbstractButton; class QAbstractButton;
class QCloseEvent; class QCloseEvent;
class QListWidgetItem; class QListWidgetItem;
class AdvancedSettings; class AdvancedSettings;
// actions on double-click on torrents // actions on double-click on torrents

1
src/gui/programupdater.cpp

@ -36,7 +36,6 @@
#include <QXmlStreamReader> #include <QXmlStreamReader>
#include "base/net/downloadmanager.h" #include "base/net/downloadmanager.h"
#include "base/utils/fs.h"
namespace namespace
{ {

1
src/gui/programupdater.h

@ -30,7 +30,6 @@
#define PROGRAMUPDATER_H #define PROGRAMUPDATER_H
#include <QObject> #include <QObject>
#include <QUrl>
namespace Net namespace Net
{ {

3
src/gui/properties/downloadedpiecesbar.h

@ -31,10 +31,11 @@
#include <QBitArray> #include <QBitArray>
#include <QVector> #include <QVector>
#include <QWidget>
#include "piecesbar.h" #include "piecesbar.h"
class QWidget;
class DownloadedPiecesBar : public PiecesBar class DownloadedPiecesBar : public PiecesBar
{ {
using base = PiecesBar; using base = PiecesBar;

2
src/gui/properties/peerlistwidget.cpp

@ -46,13 +46,11 @@
#include "base/net/geoipmanager.h" #include "base/net/geoipmanager.h"
#include "base/net/reverseresolution.h" #include "base/net/reverseresolution.h"
#include "base/preferences.h" #include "base/preferences.h"
#include "base/unicodestrings.h"
#include "guiiconprovider.h" #include "guiiconprovider.h"
#include "peerlistdelegate.h" #include "peerlistdelegate.h"
#include "peerlistsortmodel.h" #include "peerlistsortmodel.h"
#include "peersadditiondialog.h" #include "peersadditiondialog.h"
#include "propertieswidget.h" #include "propertieswidget.h"
#include "speedlimitdialog.h"
PeerListWidget::PeerListWidget(PropertiesWidget *parent) PeerListWidget::PeerListWidget(PropertiesWidget *parent)
: QTreeView(parent) : QTreeView(parent)

14
src/gui/properties/peerlistwidget.h

@ -35,18 +35,18 @@
#include <QShortcut> #include <QShortcut>
#include <QTreeView> #include <QTreeView>
namespace Net class QSortFilterProxyModel;
{ class QStandardItem;
class ReverseResolution; class QStandardItemModel;
}
class PeerListDelegate; class PeerListDelegate;
class PeerListSortModel; class PeerListSortModel;
class PropertiesWidget; class PropertiesWidget;
class QSortFilterProxyModel; namespace Net
class QStandardItem; {
class QStandardItemModel; class ReverseResolution;
}
namespace BitTorrent namespace BitTorrent
{ {

1
src/gui/properties/propertieswidget.cpp

@ -29,6 +29,7 @@
#include "propertieswidget.h" #include "propertieswidget.h"
#include <QAction> #include <QAction>
#include <QClipboard>
#include <QDateTime> #include <QDateTime>
#include <QDebug> #include <QDebug>
#include <QDir> #include <QDir>

1
src/gui/properties/proplistdelegate.cpp

@ -45,7 +45,6 @@
#include "base/utils/misc.h" #include "base/utils/misc.h"
#include "base/utils/string.h" #include "base/utils/string.h"
#include "propertieswidget.h" #include "propertieswidget.h"
#include "torrentcontentmodelitem.h"
namespace namespace
{ {

1
src/gui/properties/proplistdelegate.h

@ -35,6 +35,7 @@ class QAbstractItemModel;
class QModelIndex; class QModelIndex;
class QPainter; class QPainter;
class QStyleOptionViewItem; class QStyleOptionViewItem;
class PropertiesWidget; class PropertiesWidget;
// Defines for properties list columns // Defines for properties list columns

1
src/gui/properties/speedwidget.h

@ -38,6 +38,7 @@ class QHBoxLayout;
class QLabel; class QLabel;
class QMenu; class QMenu;
class QVBoxLayout; class QVBoxLayout;
class PropertiesWidget; class PropertiesWidget;
class ComboBoxMenuButton : public QComboBox class ComboBoxMenuButton : public QComboBox

3
src/gui/properties/trackerlistwidget.cpp

@ -30,12 +30,14 @@
#include <QAction> #include <QAction>
#include <QApplication> #include <QApplication>
#include <QClipboard>
#include <QColor> #include <QColor>
#include <QDebug> #include <QDebug>
#include <QHash> #include <QHash>
#include <QHeaderView> #include <QHeaderView>
#include <QMenu> #include <QMenu>
#include <QMessageBox> #include <QMessageBox>
#include <QShortcut>
#include <QStringList> #include <QStringList>
#include <QTableView> #include <QTableView>
#include <QTreeWidgetItem> #include <QTreeWidgetItem>
@ -47,7 +49,6 @@
#include "base/bittorrent/trackerentry.h" #include "base/bittorrent/trackerentry.h"
#include "base/global.h" #include "base/global.h"
#include "base/preferences.h" #include "base/preferences.h"
#include "base/utils/misc.h"
#include "autoexpandabledialog.h" #include "autoexpandabledialog.h"
#include "guiiconprovider.h" #include "guiiconprovider.h"
#include "propertieswidget.h" #include "propertieswidget.h"

4
src/gui/properties/trackerlistwidget.h

@ -29,13 +29,13 @@
#ifndef TRACKERLIST_H #ifndef TRACKERLIST_H
#define TRACKERLIST_H #define TRACKERLIST_H
#include <QClipboard>
#include <QList> #include <QList>
#include <QShortcut>
#include <QTreeWidget> #include <QTreeWidget>
#include "propertieswidget.h" #include "propertieswidget.h"
class QShortcut;
#define NB_STICKY_ITEM 3 #define NB_STICKY_ITEM 3
namespace BitTorrent namespace BitTorrent

2
src/gui/properties/trackersadditiondialog.cpp

@ -36,8 +36,6 @@
#include "base/bittorrent/trackerentry.h" #include "base/bittorrent/trackerentry.h"
#include "base/global.h" #include "base/global.h"
#include "base/net/downloadmanager.h" #include "base/net/downloadmanager.h"
#include "base/utils/fs.h"
#include "base/utils/misc.h"
#include "guiiconprovider.h" #include "guiiconprovider.h"
#include "ui_trackersadditiondialog.h" #include "ui_trackersadditiondialog.h"

1
src/gui/rss/automatedrssdownloader.cpp

@ -30,7 +30,6 @@
#include "automatedrssdownloader.h" #include "automatedrssdownloader.h"
#include <QCursor> #include <QCursor>
#include <QDebug>
#include <QFileDialog> #include <QFileDialog>
#include <QMenu> #include <QMenu>
#include <QMessageBox> #include <QMessageBox>

3
src/gui/rss/rsswidget.cpp

@ -31,13 +31,12 @@
#include "rsswidget.h" #include "rsswidget.h"
#include <QClipboard> #include <QClipboard>
#include <QDebug>
#include <QDesktopServices> #include <QDesktopServices>
#include <QDragMoveEvent> #include <QDragMoveEvent>
#include <QMenu> #include <QMenu>
#include <QMessageBox> #include <QMessageBox>
#include <QRegularExpression> #include <QRegularExpression>
#include <QStandardItemModel> #include <QShortcut>
#include <QString> #include <QString>
#include "base/bittorrent/session.h" #include "base/bittorrent/session.h"

9
src/gui/rss/rsswidget.h

@ -31,14 +31,15 @@
#ifndef RSSWIDGET_H #ifndef RSSWIDGET_H
#define RSSWIDGET_H #define RSSWIDGET_H
#include <QPointer> #include <QWidget>
#include <QShortcut>
class ArticleListWidget;
class FeedListWidget;
class QListWidgetItem; class QListWidgetItem;
class QShortcut;
class QTreeWidgetItem; class QTreeWidgetItem;
class ArticleListWidget;
class FeedListWidget;
namespace Ui namespace Ui
{ {
class RSSWidget; class RSSWidget;

1
src/gui/scanfoldersdelegate.h

@ -36,6 +36,7 @@ class QModelIndex;
class QPainter; class QPainter;
class QStyleOptionViewItem; class QStyleOptionViewItem;
class QTreeView; class QTreeView;
class PropertiesWidget; class PropertiesWidget;
class ScanFoldersDelegate : public QItemDelegate class ScanFoldersDelegate : public QItemDelegate

2
src/gui/search/searchlistdelegate.cpp

@ -28,10 +28,8 @@
#include "searchlistdelegate.h" #include "searchlistdelegate.h"
#include <QCoreApplication>
#include <QModelIndex> #include <QModelIndex>
#include <QPainter> #include <QPainter>
#include <QProgressBar>
#include <QStyleOptionViewItem> #include <QStyleOptionViewItem>
#include "base/utils/misc.h" #include "base/utils/misc.h"

1
src/gui/search/searchsortmodel.cpp

@ -29,6 +29,7 @@
#include "searchsortmodel.h" #include "searchsortmodel.h"
#include "base/global.h" #include "base/global.h"
#include "base/utils/string.h"
SearchSortModel::SearchSortModel(QObject *parent) SearchSortModel::SearchSortModel(QObject *parent)
: base(parent) : base(parent)

1
src/gui/search/searchsortmodel.h

@ -31,7 +31,6 @@
#include <QSortFilterProxyModel> #include <QSortFilterProxyModel>
#include <QStringList> #include <QStringList>
#include "base/utils/string.h"
class SearchSortModel : public QSortFilterProxyModel class SearchSortModel : public QSortFilterProxyModel
{ {

12
src/gui/search/searchwidget.cpp

@ -36,30 +36,18 @@
#endif #endif
#include <QDebug> #include <QDebug>
#include <QHeaderView>
#include <QMessageBox> #include <QMessageBox>
#include <QMimeData>
#include <QProcess>
#include <QRegularExpression> #include <QRegularExpression>
#include <QShortcut> #include <QShortcut>
#include <QSortFilterProxyModel>
#include <QStandardItemModel>
#include <QTextStream> #include <QTextStream>
#include <QTreeView>
#include "base/bittorrent/session.h"
#include "base/global.h" #include "base/global.h"
#include "base/preferences.h"
#include "base/search/searchpluginmanager.h" #include "base/search/searchpluginmanager.h"
#include "base/search/searchhandler.h" #include "base/search/searchhandler.h"
#include "base/utils/foreignapps.h" #include "base/utils/foreignapps.h"
#include "base/utils/fs.h"
#include "addnewtorrentdialog.h"
#include "guiiconprovider.h" #include "guiiconprovider.h"
#include "mainwindow.h" #include "mainwindow.h"
#include "pluginselectdialog.h" #include "pluginselectdialog.h"
#include "searchlistdelegate.h"
#include "searchsortmodel.h"
#include "searchjobwidget.h" #include "searchjobwidget.h"
#include "ui_searchwidget.h" #include "ui_searchwidget.h"

1
src/gui/statusbar.cpp

@ -39,7 +39,6 @@
#include "base/bittorrent/session.h" #include "base/bittorrent/session.h"
#include "base/bittorrent/sessionstatus.h" #include "base/bittorrent/sessionstatus.h"
#include "base/utils/misc.h" #include "base/utils/misc.h"
#include "guiiconprovider.h"
#include "speedlimitdialog.h" #include "speedlimitdialog.h"
#include "utils.h" #include "utils.h"

7
src/gui/tagfiltermodel.h

@ -30,17 +30,18 @@
#define TAGFILTERMODEL_H #define TAGFILTERMODEL_H
#include <QAbstractListModel> #include <QAbstractListModel>
#include <QModelIndex>
#include <QSet> #include <QSet>
#include <QVector> #include <QVector>
class QModelIndex;
class TagModelItem;
namespace BitTorrent namespace BitTorrent
{ {
class TorrentHandle; class TorrentHandle;
} }
class TagModelItem;
class TagFilterModel : public QAbstractListModel class TagFilterModel : public QAbstractListModel
{ {
Q_OBJECT Q_OBJECT

3
src/gui/tagfilterproxymodel.h

@ -30,7 +30,8 @@
#define TAGFILTERPROXYMODEL_H #define TAGFILTERPROXYMODEL_H
#include <QSortFilterProxyModel> #include <QSortFilterProxyModel>
#include <QString>
class QString;
class TagFilterProxyModel : public QSortFilterProxyModel class TagFilterProxyModel : public QSortFilterProxyModel
{ {

2
src/gui/tagfilterwidget.cpp

@ -29,8 +29,6 @@
#include "tagfilterwidget.h" #include "tagfilterwidget.h"
#include <QAction> #include <QAction>
#include <QDebug>
#include <QHeaderView>
#include <QMenu> #include <QMenu>
#include <QMessageBox> #include <QMessageBox>

2
src/gui/torrentcontentmodel.cpp

@ -49,9 +49,9 @@
#endif #endif
#include "base/bittorrent/downloadpriority.h" #include "base/bittorrent/downloadpriority.h"
#include "base/bittorrent/torrentinfo.h"
#include "base/global.h" #include "base/global.h"
#include "base/utils/fs.h" #include "base/utils/fs.h"
#include "base/utils/misc.h"
#include "guiiconprovider.h" #include "guiiconprovider.h"
#include "torrentcontentmodelfile.h" #include "torrentcontentmodelfile.h"
#include "torrentcontentmodelfolder.h" #include "torrentcontentmodelfolder.h"

11
src/gui/torrentcontentmodel.h

@ -30,16 +30,21 @@
#define TORRENTCONTENTMODEL_H #define TORRENTCONTENTMODEL_H
#include <QAbstractItemModel> #include <QAbstractItemModel>
#include <QModelIndex>
#include <QVariant>
#include <QVector> #include <QVector>
#include "base/bittorrent/torrentinfo.h"
#include "torrentcontentmodelitem.h" #include "torrentcontentmodelitem.h"
class QFileIconProvider; class QFileIconProvider;
class QModelIndex;
class QVariant;
class TorrentContentModelFile; class TorrentContentModelFile;
namespace BitTorrent
{
class TorrentInfo;
}
class TorrentContentModel : public QAbstractItemModel class TorrentContentModel : public QAbstractItemModel
{ {
Q_OBJECT Q_OBJECT

6
src/gui/torrentcontentmodelfile.h

@ -29,9 +29,13 @@
#ifndef TORRENTCONTENTMODELFILE_H #ifndef TORRENTCONTENTMODELFILE_H
#define TORRENTCONTENTMODELFILE_H #define TORRENTCONTENTMODELFILE_H
#include "base/bittorrent/downloadpriority.h"
#include "torrentcontentmodelitem.h" #include "torrentcontentmodelitem.h"
namespace BitTorrent
{
enum class DownloadPriority;
}
class TorrentContentModelFile : public TorrentContentModelItem class TorrentContentModelFile : public TorrentContentModelItem
{ {
public: public:

6
src/gui/torrentcontentmodelfolder.h

@ -29,9 +29,13 @@
#ifndef TORRENTCONTENTMODELFOLDER_H #ifndef TORRENTCONTENTMODELFOLDER_H
#define TORRENTCONTENTMODELFOLDER_H #define TORRENTCONTENTMODELFOLDER_H
#include "base/bittorrent/downloadpriority.h"
#include "torrentcontentmodelitem.h" #include "torrentcontentmodelitem.h"
namespace BitTorrent
{
enum class DownloadPriority;
}
class TorrentContentModelFolder : public TorrentContentModelItem class TorrentContentModelFolder : public TorrentContentModelItem
{ {
public: public:

4
src/gui/torrentcontentmodelitem.cpp

@ -28,10 +28,6 @@
#include "torrentcontentmodelitem.h" #include "torrentcontentmodelitem.h"
#include <QDebug>
#include "base/utils/misc.h"
#include "base/utils/fs.h"
#include "torrentcontentmodelfolder.h" #include "torrentcontentmodelfolder.h"
TorrentContentModelItem::TorrentContentModelItem(TorrentContentModelFolder *parent) TorrentContentModelItem::TorrentContentModelItem(TorrentContentModelFolder *parent)

3
src/gui/torrentcontentmodelitem.h

@ -30,10 +30,11 @@
#define TORRENTCONTENTMODELITEM_H #define TORRENTCONTENTMODELITEM_H
#include <QList> #include <QList>
#include <QVariant>
#include "base/bittorrent/downloadpriority.h" #include "base/bittorrent/downloadpriority.h"
class QVariant;
class TorrentContentModelFolder; class TorrentContentModelFolder;
class TorrentContentModelItem class TorrentContentModelItem

1
src/gui/torrentcreatordialog.cpp

@ -30,7 +30,6 @@
#include "torrentcreatordialog.h" #include "torrentcreatordialog.h"
#include <QCloseEvent> #include <QCloseEvent>
#include <QDebug>
#include <QFileDialog> #include <QFileDialog>
#include <QMessageBox> #include <QMessageBox>
#include <QMimeData> #include <QMimeData>

4
src/gui/transferlistfilterswidget.cpp

@ -29,7 +29,6 @@
#include "transferlistfilterswidget.h" #include "transferlistfilterswidget.h"
#include <QCheckBox> #include <QCheckBox>
#include <QDebug>
#include <QIcon> #include <QIcon>
#include <QListWidgetItem> #include <QListWidgetItem>
#include <QMenu> #include <QMenu>
@ -49,12 +48,9 @@
#include "base/torrentfilter.h" #include "base/torrentfilter.h"
#include "base/utils/fs.h" #include "base/utils/fs.h"
#include "base/utils/string.h" #include "base/utils/string.h"
#include "autoexpandabledialog.h"
#include "categoryfilterwidget.h" #include "categoryfilterwidget.h"
#include "guiiconprovider.h" #include "guiiconprovider.h"
#include "tagfilterwidget.h" #include "tagfilterwidget.h"
#include "transferlistdelegate.h"
#include "transferlistmodel.h"
#include "transferlistwidget.h" #include "transferlistwidget.h"
#include "utils.h" #include "utils.h"

1
src/gui/transferlistfilterswidget.h

@ -34,6 +34,7 @@
class QCheckBox; class QCheckBox;
class QResizeEvent; class QResizeEvent;
class TransferListWidget; class TransferListWidget;
namespace BitTorrent namespace BitTorrent

1
src/gui/transferlistmodel.cpp

@ -38,7 +38,6 @@
#include "base/bittorrent/session.h" #include "base/bittorrent/session.h"
#include "base/bittorrent/torrenthandle.h" #include "base/bittorrent/torrenthandle.h"
#include "base/global.h" #include "base/global.h"
#include "base/torrentfilter.h"
#include "base/utils/fs.h" #include "base/utils/fs.h"
static QIcon getIconByState(BitTorrent::TorrentState state); static QIcon getIconByState(BitTorrent::TorrentState state);

3
src/webui/api/apicontroller.h

@ -31,9 +31,10 @@
#include <QMap> #include <QMap>
#include <QObject> #include <QObject>
#include <QSet> #include <QSet>
#include <QString>
#include <QVariant> #include <QVariant>
class QString;
struct ISessionManager; struct ISessionManager;
using StringMap = QMap<QString, QString>; using StringMap = QMap<QString, QString>;
using DataMap = QMap<QString, QByteArray>; using DataMap = QMap<QString, QByteArray>;

3
src/webui/api/isessionmanager.h

@ -28,9 +28,10 @@
#pragma once #pragma once
#include <QString>
#include <QVariant> #include <QVariant>
class QString;
struct ISession struct ISession
{ {
virtual ~ISession() = default; virtual ~ISession() = default;

3
src/webui/api/searchcontroller.cpp

@ -28,6 +28,8 @@
#include "searchcontroller.h" #include "searchcontroller.h"
#include <QJsonArray>
#include <QJsonObject>
#include <QSharedPointer> #include <QSharedPointer>
#include "base/global.h" #include "base/global.h"
@ -37,6 +39,7 @@
#include "base/utils/random.h" #include "base/utils/random.h"
#include "base/utils/string.h" #include "base/utils/string.h"
#include "apierror.h" #include "apierror.h"
#include "isessionmanager.h"
class SearchPluginManager; class SearchPluginManager;

9
src/webui/api/searchcontroller.h

@ -29,15 +29,16 @@
#pragma once #pragma once
#include <QHash> #include <QHash>
#include <QJsonArray>
#include <QJsonObject>
#include <QList> #include <QList>
#include <QString>
#include "base/search/searchpluginmanager.h" #include "base/search/searchpluginmanager.h"
#include "apicontroller.h" #include "apicontroller.h"
#include "isessionmanager.h"
class QJsonArray;
class QJsonObject;
class QStringList;
struct ISession;
struct SearchResult; struct SearchResult;
class SearchController : public APIController class SearchController : public APIController

2
src/webui/api/serialize/serialize_torrent.cpp

@ -30,10 +30,8 @@
#include <QDateTime> #include <QDateTime>
#include "base/bittorrent/session.h"
#include "base/bittorrent/torrenthandle.h" #include "base/bittorrent/torrenthandle.h"
#include "base/utils/fs.h" #include "base/utils/fs.h"
#include "base/utils/string.h"
namespace namespace
{ {

1
src/webui/api/synccontroller.cpp

@ -40,7 +40,6 @@
#include "base/global.h" #include "base/global.h"
#include "base/net/geoipmanager.h" #include "base/net/geoipmanager.h"
#include "base/preferences.h" #include "base/preferences.h"
#include "base/utils/fs.h"
#include "base/utils/string.h" #include "base/utils/string.h"
#include "apierror.h" #include "apierror.h"
#include "freediskspacechecker.h" #include "freediskspacechecker.h"

Loading…
Cancel
Save