00001
00002
00003
00004
00005
00006
00007
00008
00009 #ifndef OUTPUT_H
00010 #define OUTPUT_H
00011
00012 #include <qvariant.h>
00013 #include <qdialog.h>
00014 #include <qcstring.h>
00015 #include <qstringlist.h>
00016 #include <qlineedit.h>
00017 #include <qwhatsthis.h>
00018
00019 #include <opie2/oprocess.h>
00020
00021 class QVBoxLayout;
00022 class QHBoxLayout;
00023 class QGridLayout;
00024 class QMultiLineEdit;
00025
00026 class Output : public QDialog
00027 {
00028 Q_OBJECT
00029
00030 public:
00031 Output(const QStringList commands=0, QWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0 );
00032 ~Output();
00033
00034 QMultiLineEdit* OutputEdit;
00035
00036 protected:
00037 QGridLayout* OutputLayout;
00038 Opie::Core::OProcess *proc;
00039 protected slots:
00040 void saveOutput();
00041 void commandStdout(Opie::Core::OProcess*, char *, int);
00042 void commandStdin(const QByteArray &);
00043 void commandStderr(Opie::Core::OProcess*, char *, int);
00044 void processFinished();
00045 private:
00046 QString cmmd;
00047
00048 };
00049
00050 class InputDialog : public QDialog
00051 {
00052 Q_OBJECT
00053
00054 public:
00055 InputDialog( QWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0 );
00056 ~InputDialog();
00057 QString inputText;
00058 QLineEdit* LineEdit1;
00059 void setInputText(const QString &);
00060 private slots:
00061 void returned();
00062
00063 };
00064
00065 #endif // OUTPUT_H