41 lines
875 B
C++
41 lines
875 B
C++
#ifndef MAINWINDOW_H
|
|
#define MAINWINDOW_H
|
|
|
|
#include <QMainWindow>
|
|
#include <QListWidgetItem>
|
|
#include <QString>
|
|
#include <QTextStream>
|
|
|
|
namespace Ui {
|
|
class MainWindow;
|
|
}
|
|
|
|
class MainWindow : public QMainWindow {
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit MainWindow(QWidget *parent = Q_NULLPTR);
|
|
MainWindow(const MainWindow &) = delete;
|
|
~MainWindow();
|
|
MainWindow &operator=(const MainWindow &) = delete;
|
|
|
|
public slots:
|
|
void loadFile();
|
|
void loadFromClipboard();
|
|
void filter(QString f);
|
|
void showResult(QListWidgetItem *item);
|
|
void refreshResults();
|
|
|
|
private:
|
|
Ui::MainWindow *ui;
|
|
|
|
void load(QTextStream &textStream);
|
|
bool runProcess(const QString &programName, const QStringList & arguments);
|
|
bool wget(const QString &url);
|
|
bool unpackArchive(const QString &archiveName);
|
|
|
|
QStringList mAllErrors;
|
|
};
|
|
|
|
#endif // MAINWINDOW_H
|