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