mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2026-01-05 07:02:31 -06:00
Follow project coding style. Issue #2192.
This commit is contained in:
@@ -31,48 +31,49 @@
|
||||
#ifndef CREATE_TORRENT_IMP_H
|
||||
#define CREATE_TORRENT_IMP_H
|
||||
|
||||
#include "ui_createtorrent.h"
|
||||
#include "ui_torrentcreatordlg.h"
|
||||
|
||||
namespace BitTorrent
|
||||
{
|
||||
class TorrentCreatorThread;
|
||||
}
|
||||
|
||||
class TorrentCreatorDlg : public QDialog, private Ui::createTorrentDialog{
|
||||
Q_OBJECT
|
||||
class TorrentCreatorDlg : public QDialog, private Ui::createTorrentDialog
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
TorrentCreatorDlg(QWidget *parent = 0);
|
||||
~TorrentCreatorDlg();
|
||||
int getPieceSize() const;
|
||||
TorrentCreatorDlg(QWidget *parent = 0);
|
||||
~TorrentCreatorDlg();
|
||||
int getPieceSize() const;
|
||||
|
||||
public slots:
|
||||
void updateProgressBar(int progress);
|
||||
void on_cancelButton_clicked();
|
||||
void updateProgressBar(int progress);
|
||||
void on_cancelButton_clicked();
|
||||
|
||||
protected slots:
|
||||
void on_createButton_clicked();
|
||||
void on_addFile_button_clicked();
|
||||
void on_addFolder_button_clicked();
|
||||
void handleCreationFailure(QString msg);
|
||||
void handleCreationSuccess(QString path, QString branch_path);
|
||||
void setInteractionEnabled(bool enabled);
|
||||
void showProgressBar(bool show);
|
||||
void on_checkAutoPieceSize_clicked(bool checked);
|
||||
void updateOptimalPieceSize();
|
||||
void saveTrackerList();
|
||||
void loadTrackerList();
|
||||
void on_createButton_clicked();
|
||||
void on_addFile_button_clicked();
|
||||
void on_addFolder_button_clicked();
|
||||
void handleCreationFailure(QString msg);
|
||||
void handleCreationSuccess(QString path, QString branch_path);
|
||||
void setInteractionEnabled(bool enabled);
|
||||
void showProgressBar(bool show);
|
||||
void on_checkAutoPieceSize_clicked(bool checked);
|
||||
void updateOptimalPieceSize();
|
||||
void saveTrackerList();
|
||||
void loadTrackerList();
|
||||
|
||||
protected:
|
||||
void closeEvent(QCloseEvent *event);
|
||||
void closeEvent(QCloseEvent *event);
|
||||
|
||||
private:
|
||||
void saveSettings();
|
||||
void loadSettings();
|
||||
void saveSettings();
|
||||
void loadSettings();
|
||||
|
||||
private:
|
||||
BitTorrent::TorrentCreatorThread *m_creatorThread;
|
||||
QList<int> m_pieceSizes;
|
||||
BitTorrent::TorrentCreatorThread *m_creatorThread;
|
||||
QList<int> m_pieceSizes;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user