/* 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 #include 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 killProcess(); void writeOutput(); void extractionFinished(); private: void start(); void setClose(); void setCancel(); QString mArchive; QString mExtractTo; QPushButton *mCancelClose; QTextEdit *mOutput; QProcess *mExtractor; }; #endif