Follow project coding style. Issue #2192.

This commit is contained in:
ngosang
2015-06-24 12:19:42 +02:00
parent 9d97c05889
commit 577ace4971
4 changed files with 199 additions and 188 deletions

View File

@@ -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