2018-01-01 09:22:11 +01:00
|
|
|
#ifndef MAINWINDOW_H
|
|
|
|
#define MAINWINDOW_H
|
|
|
|
|
|
|
|
#include <QMainWindow>
|
|
|
|
#include <QListWidgetItem>
|
|
|
|
|
|
|
|
namespace Ui {
|
2018-01-01 10:52:51 +01:00
|
|
|
class MainWindow;
|
2018-01-01 09:22:11 +01:00
|
|
|
}
|
|
|
|
|
2018-01-01 10:52:51 +01:00
|
|
|
class MainWindow : public QMainWindow {
|
2018-01-01 09:22:11 +01:00
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
2019-01-12 09:16:43 +01:00
|
|
|
explicit MainWindow(QWidget *parent = Q_NULLPTR);
|
2018-05-01 10:55:06 +02:00
|
|
|
MainWindow(const MainWindow &) = delete;
|
2018-01-01 09:22:11 +01:00
|
|
|
~MainWindow();
|
2018-05-01 10:55:06 +02:00
|
|
|
MainWindow &operator=(const MainWindow &) = delete;
|
2018-01-01 09:22:11 +01:00
|
|
|
|
|
|
|
public slots:
|
2018-01-02 23:39:30 +01:00
|
|
|
void loadFile();
|
2018-01-01 09:22:11 +01:00
|
|
|
void showResult(QListWidgetItem *item);
|
|
|
|
|
|
|
|
private:
|
|
|
|
Ui::MainWindow *ui;
|
2019-01-12 09:16:43 +01:00
|
|
|
|
|
|
|
bool runProcess(const QString &programName, const QStringList & arguments);
|
|
|
|
bool wget(const QString url);
|
|
|
|
bool unpackArchive(const QString archiveName);
|
2018-01-01 09:22:11 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // MAINWINDOW_H
|