mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-20 15:37:26 -06:00
Redesign main core classes.
This commit is contained in:
@@ -32,10 +32,12 @@
|
||||
#define TRANSFERLISTWIDGET_H
|
||||
|
||||
#include <QTreeView>
|
||||
#include <libtorrent/version.hpp>
|
||||
|
||||
class QBtSession;
|
||||
class QTorrentHandle;
|
||||
namespace BitTorrent
|
||||
{
|
||||
class TorrentHandle;
|
||||
}
|
||||
|
||||
class MainWindow;
|
||||
class TransferListDelegate;
|
||||
class TransferListSortModel;
|
||||
@@ -52,14 +54,15 @@ class TransferListWidget: public QTreeView
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
TransferListWidget(QWidget *parent, MainWindow *main_window, QBtSession* BTSession);
|
||||
TransferListWidget(QWidget *parent, MainWindow *main_window);
|
||||
~TransferListWidget();
|
||||
TorrentModel* getSourceModel() const;
|
||||
|
||||
public slots:
|
||||
void setSelectionLabel(QString label);
|
||||
void setRefreshInterval(int t);
|
||||
void setSelectedTorrentsLocation();
|
||||
void pauseAllTorrents();
|
||||
void resumeAllTorrents();
|
||||
void startSelectedTorrents();
|
||||
void forceStartSelectedTorrents();
|
||||
void startVisibleTorrents();
|
||||
@@ -113,13 +116,12 @@ private:
|
||||
bool openUrl(const QString& _path) const;
|
||||
|
||||
signals:
|
||||
void currentTorrentChanged(const QTorrentHandle &h);
|
||||
void currentTorrentChanged(BitTorrent::TorrentHandle *const torrent);
|
||||
|
||||
private:
|
||||
TransferListDelegate *listDelegate;
|
||||
TorrentModel *listModel;
|
||||
TransferListSortModel *nameFilterModel;
|
||||
QBtSession* BTSession;
|
||||
MainWindow *main_window;
|
||||
QShortcut *editHotkey;
|
||||
QShortcut *deleteHotkey;
|
||||
|
||||
Reference in New Issue
Block a user