|
|
|
@ -37,31 +37,38 @@ class TorrentCreatorThread;
@@ -37,31 +37,38 @@ class TorrentCreatorThread;
|
|
|
|
|
|
|
|
|
|
class TorrentCreatorDlg : public QDialog, private Ui::createTorrentDialog{ |
|
|
|
|
Q_OBJECT |
|
|
|
|
|
|
|
|
|
public: |
|
|
|
|
TorrentCreatorDlg(QWidget *parent = 0); |
|
|
|
|
~TorrentCreatorDlg(); |
|
|
|
|
int getPieceSize() const; |
|
|
|
|
|
|
|
|
|
signals: |
|
|
|
|
void torrent_to_seed(QString path); |
|
|
|
|
public: |
|
|
|
|
TorrentCreatorDlg(QWidget *parent = 0); |
|
|
|
|
~TorrentCreatorDlg(); |
|
|
|
|
int getPieceSize() const; |
|
|
|
|
|
|
|
|
|
public slots: |
|
|
|
|
void updateProgressBar(int progress); |
|
|
|
|
void on_cancelButton_clicked(); |
|
|
|
|
signals: |
|
|
|
|
void torrent_to_seed(QString path); |
|
|
|
|
|
|
|
|
|
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(); |
|
|
|
|
public slots: |
|
|
|
|
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(); |
|
|
|
|
|
|
|
|
|
protected: |
|
|
|
|
void closeEvent(QCloseEvent *event); |
|
|
|
|
|
|
|
|
|
private: |
|
|
|
|
void saveSettings(); |
|
|
|
|
void loadSettings(); |
|
|
|
|
|
|
|
|
|
private: |
|
|
|
|
TorrentCreatorThread *creatorThread; |
|
|
|
|