2018-01-01 09:22:11 +01:00
|
|
|
#ifndef MAINWINDOW_H
|
|
|
|
#define MAINWINDOW_H
|
|
|
|
|
|
|
|
#include <QMainWindow>
|
|
|
|
#include <QListWidgetItem>
|
2019-01-14 17:49:10 +01:00
|
|
|
#include <QString>
|
|
|
|
#include <QTextStream>
|
2018-01-01 09:22:11 +01:00
|
|
|
|
|
|
|
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();
|
2019-01-14 17:49:10 +01:00
|
|
|
void loadFromClipboard();
|
2018-01-01 09:22:11 +01:00
|
|
|
void showResult(QListWidgetItem *item);
|
|
|
|
|
|
|
|
private:
|
|
|
|
Ui::MainWindow *ui;
|
2019-01-12 09:16:43 +01:00
|
|
|
|
2019-01-14 17:49:10 +01:00
|
|
|
void load(QTextStream &textStream);
|
2019-01-12 09:16:43 +01:00
|
|
|
bool runProcess(const QString &programName, const QStringList & arguments);
|
2019-02-16 17:52:36 +01:00
|
|
|
bool wget(const QString &url);
|
|
|
|
bool unpackArchive(const QString &archiveName);
|
2018-01-01 09:22:11 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // MAINWINDOW_H
|