mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2026-01-10 01:22:31 -06:00
Redesign main core classes.
This commit is contained in:
@@ -34,16 +34,12 @@
|
||||
#include <QDialog>
|
||||
#include <QStringList>
|
||||
|
||||
#include <libtorrent/torrent_info.hpp>
|
||||
#include <libtorrent/version.hpp>
|
||||
#include "core/bittorrent/torrentinfo.h"
|
||||
|
||||
QT_BEGIN_NAMESPACE
|
||||
namespace Ui {
|
||||
namespace Ui
|
||||
{
|
||||
class TorrentImportDlg;
|
||||
}
|
||||
QT_END_NAMESPACE
|
||||
|
||||
class QBtSession;
|
||||
|
||||
class TorrentImportDlg: public QDialog
|
||||
{
|
||||
@@ -52,22 +48,22 @@ class TorrentImportDlg: public QDialog
|
||||
public:
|
||||
explicit TorrentImportDlg(QWidget *parent = 0);
|
||||
~TorrentImportDlg();
|
||||
|
||||
static void importTorrent();
|
||||
|
||||
QString getTorrentPath() const;
|
||||
QString getContentPath() const;
|
||||
bool fileRenamed() const;
|
||||
boost::intrusive_ptr<libtorrent::torrent_info> torrent() const;
|
||||
BitTorrent::TorrentInfo torrent() const;
|
||||
bool skipFileChecking() const;
|
||||
|
||||
protected slots:
|
||||
void loadTorrent(const QString &torrent_path);
|
||||
void loadTorrent(const QString &torrentPath);
|
||||
void initializeFilesPath();
|
||||
|
||||
private slots:
|
||||
void on_browseTorrentBtn_clicked();
|
||||
|
||||
void on_browseContentBtn_clicked();
|
||||
|
||||
void on_importBtn_clicked();
|
||||
|
||||
protected:
|
||||
@@ -79,7 +75,8 @@ private:
|
||||
|
||||
private:
|
||||
Ui::TorrentImportDlg *ui;
|
||||
boost::intrusive_ptr<libtorrent::torrent_info> t;
|
||||
BitTorrent::TorrentInfo m_torrentInfo;
|
||||
// NOTE: Where do we use it?
|
||||
QStringList m_filesPath;
|
||||
QString m_contentPath;
|
||||
QString m_torrentPath;
|
||||
|
||||
Reference in New Issue
Block a user