|
|
@ -38,30 +38,37 @@ class TorrentCreatorThread; |
|
|
|
class TorrentCreatorDlg : public QDialog, private Ui::createTorrentDialog{ |
|
|
|
class TorrentCreatorDlg : public QDialog, private Ui::createTorrentDialog{ |
|
|
|
Q_OBJECT |
|
|
|
Q_OBJECT |
|
|
|
|
|
|
|
|
|
|
|
public: |
|
|
|
public: |
|
|
|
TorrentCreatorDlg(QWidget *parent = 0); |
|
|
|
TorrentCreatorDlg(QWidget *parent = 0); |
|
|
|
~TorrentCreatorDlg(); |
|
|
|
~TorrentCreatorDlg(); |
|
|
|
int getPieceSize() const; |
|
|
|
int getPieceSize() const; |
|
|
|
|
|
|
|
|
|
|
|
signals: |
|
|
|
signals: |
|
|
|
void torrent_to_seed(QString path); |
|
|
|
void torrent_to_seed(QString path); |
|
|
|
|
|
|
|
|
|
|
|
public slots: |
|
|
|
public slots: |
|
|
|
void updateProgressBar(int progress); |
|
|
|
void updateProgressBar(int progress); |
|
|
|
void on_cancelButton_clicked(); |
|
|
|
void on_cancelButton_clicked(); |
|
|
|
|
|
|
|
|
|
|
|
protected slots: |
|
|
|
protected slots: |
|
|
|
void on_createButton_clicked(); |
|
|
|
void on_createButton_clicked(); |
|
|
|
void on_addFile_button_clicked(); |
|
|
|
void on_addFile_button_clicked(); |
|
|
|
void on_addFolder_button_clicked(); |
|
|
|
void on_addFolder_button_clicked(); |
|
|
|
void handleCreationFailure(QString msg); |
|
|
|
void handleCreationFailure(QString msg); |
|
|
|
void handleCreationSuccess(QString path, QString branch_path); |
|
|
|
void handleCreationSuccess(QString path, QString branch_path); |
|
|
|
void setInteractionEnabled(bool enabled); |
|
|
|
void setInteractionEnabled(bool enabled); |
|
|
|
void showProgressBar(bool show); |
|
|
|
void showProgressBar(bool show); |
|
|
|
void on_checkAutoPieceSize_clicked(bool checked); |
|
|
|
void on_checkAutoPieceSize_clicked(bool checked); |
|
|
|
void updateOptimalPieceSize(); |
|
|
|
void updateOptimalPieceSize(); |
|
|
|
void saveTrackerList(); |
|
|
|
void saveTrackerList(); |
|
|
|
void loadTrackerList(); |
|
|
|
void loadTrackerList(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
protected: |
|
|
|
|
|
|
|
void closeEvent(QCloseEvent *event); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private: |
|
|
|
|
|
|
|
void saveSettings(); |
|
|
|
|
|
|
|
void loadSettings(); |
|
|
|
|
|
|
|
|
|
|
|
private: |
|
|
|
private: |
|
|
|
TorrentCreatorThread *creatorThread; |
|
|
|
TorrentCreatorThread *creatorThread; |
|
|
|