summaryrefslogtreecommitdiffstats
path: root/extractordialog.h
diff options
context:
space:
mode:
Diffstat (limited to 'extractordialog.h')
-rw-r--r--extractordialog.h38
1 files changed, 38 insertions, 0 deletions
diff --git a/extractordialog.h b/extractordialog.h
new file mode 100644
index 0000000..80c7e2c
--- /dev/null
+++ b/extractordialog.h
@@ -0,0 +1,38 @@
+/*
+ This program is free software; you can redistribute it and/or
+ modify it under the terms of the GNU General Public License
+ as published by the Free Software Foundation; either version
+ 2 of the License, or (at your option) any later version.
+*/
+
+#ifndef EXTRACTORDIALOG_H
+#define EXTRACTORDIALOG_H
+
+#include <QDialog>
+#include <QProcess>
+
+class QTextEdit;
+class QPushButton;
+
+class ExtractorDialog : public QDialog {
+ Q_OBJECT
+ public:
+ ExtractorDialog(const QString &archive, const QString &extractTo, QWidget *parent = 0, Qt::WindowFlags f = 0);
+ ~ExtractorDialog() {};
+
+ private slots:
+ void processStatusChanged(QProcess::ProcessState newState);
+ void killProcess();
+ void writeOutput();
+
+ private:
+ void start();
+ QString mArchive;
+ QString mExtractTo;
+ QPushButton *mCancelClose;
+ QTextEdit *mOutput;
+ QProcess *mExtractor;
+};
+
+#endif
+