2010-12-08 08:26:18 +01:00
|
|
|
#ifndef MAINWINDOW_H
|
|
|
|
#define MAINWINDOW_H
|
|
|
|
|
2010-12-10 04:50:08 +01:00
|
|
|
#include "../WiiQt/includes.h"
|
|
|
|
#include "../WiiQt/nusdownloader.h"
|
|
|
|
#include "../WiiQt/nanddump.h"
|
2010-12-08 08:26:18 +01:00
|
|
|
|
|
|
|
namespace Ui {
|
|
|
|
class MainWindow;
|
|
|
|
}
|
|
|
|
|
|
|
|
class MainWindow : public QMainWindow
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
|
|
|
explicit MainWindow( QWidget *parent = 0 );
|
|
|
|
~MainWindow();
|
|
|
|
|
|
|
|
private:
|
|
|
|
Ui::MainWindow *ui;
|
|
|
|
|
|
|
|
NusDownloader nus;
|
|
|
|
NandDump nand;
|
|
|
|
|
|
|
|
void ShowMessage( const QString& mes );
|
|
|
|
|
2010-12-09 12:30:25 +01:00
|
|
|
//do something with a completed download
|
|
|
|
void SaveJobToFolder( NusJob job );
|
|
|
|
void SaveJobToWad( NusJob job );
|
|
|
|
|
2010-12-08 19:07:57 +01:00
|
|
|
|
|
|
|
|
2010-12-08 08:26:18 +01:00
|
|
|
public slots:
|
|
|
|
//slots for getting info from the NUS downloader
|
|
|
|
void GetError( const QString &message, NusJob job );
|
|
|
|
void NusIsDone();
|
|
|
|
void ReceiveTitleFromNus( NusJob job );
|
|
|
|
|
|
|
|
|
|
|
|
private slots:
|
2010-12-22 01:25:08 +01:00
|
|
|
void on_pushButton_CachePathBrowse_clicked();
|
2010-12-09 06:45:12 +01:00
|
|
|
void on_actionFlush_triggered();
|
|
|
|
void on_actionSetting_txt_triggered();
|
2010-12-16 21:07:38 +01:00
|
|
|
void on_actionImportWad_triggered();
|
2010-12-08 08:26:18 +01:00
|
|
|
void on_pushButton_wad_clicked();
|
|
|
|
void on_pushButton_decFolder_clicked();
|
|
|
|
void on_pushButton_nandPath_clicked();
|
|
|
|
void on_radioButton_wad_toggled(bool checked);
|
|
|
|
void on_radioButton_folder_toggled(bool checked);
|
|
|
|
void on_radioButton_nand_toggled(bool checked);
|
|
|
|
void on_pushButton_GetTitle_clicked();
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // MAINWINDOW_H
|