summaryrefslogtreecommitdiff
path: root/noncore/apps/advancedfm/output.h
Unidiff
Diffstat (limited to 'noncore/apps/advancedfm/output.h') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/apps/advancedfm/output.h32
1 files changed, 31 insertions, 1 deletions
diff --git a/noncore/apps/advancedfm/output.h b/noncore/apps/advancedfm/output.h
index c1e48da..199a684 100644
--- a/noncore/apps/advancedfm/output.h
+++ b/noncore/apps/advancedfm/output.h
@@ -11,6 +11,13 @@
11 11
12#include <qvariant.h> 12#include <qvariant.h>
13#include <qdialog.h> 13#include <qdialog.h>
14#include <qcstring.h>
15#include <qstringlist.h>
16#include <qlineedit.h>
17#include <qwhatsthis.h>
18
19#include <opie/oprocess.h>
20
14class QVBoxLayout; 21class QVBoxLayout;
15class QHBoxLayout; 22class QHBoxLayout;
16class QGridLayout; 23class QGridLayout;
@@ -21,15 +28,38 @@ class Output : public QDialog
21 Q_OBJECT 28 Q_OBJECT
22 29
23public: 30public:
24 Output( QWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0 ); 31 Output(const QStringList commands=0, QWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0 );
25 ~Output(); 32 ~Output();
26 33
27 QMultiLineEdit* OutputEdit; 34 QMultiLineEdit* OutputEdit;
28 35
29protected: 36protected:
30 QGridLayout* OutputLayout; 37 QGridLayout* OutputLayout;
38 OProcess *proc;
31protected slots: 39protected slots:
32 void saveOutput(); 40 void saveOutput();
41 void commandStdout(OProcess*, char *, int);
42 void commandStdin(const QByteArray &);
43 void commandStderr(OProcess*, char *, int);
44 void processFinished();
45 private:
46 QString cmmd;
47
48};
49
50class InputDialog : public QDialog
51{
52 Q_OBJECT
53
54public:
55 InputDialog( QWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0 );
56 ~InputDialog();
57 QString inputText;
58 QLineEdit* LineEdit1;
59 void setInputText(const QString &);
60private slots:
61 void returned();
62
33}; 63};
34 64
35#endif // OUTPUT_H 65#endif // OUTPUT_H