diff options
Diffstat (limited to 'client/browser/src/mainwindow.h')
-rw-r--r-- | client/browser/src/mainwindow.h | 65 |
1 files changed, 65 insertions, 0 deletions
diff --git a/client/browser/src/mainwindow.h b/client/browser/src/mainwindow.h new file mode 100644 index 00000000..de712e56 --- /dev/null +++ b/client/browser/src/mainwindow.h @@ -0,0 +1,65 @@ +#ifndef MAINWINDOW_H +#define MAINWINDOW_H + +#define PROTOCOL "command:" +#define ENVIRONMENT "OGLOGFILE" +//#define ENVIRONMENT "OGIP,OGSERVER,OGLOG" + +#include <QWidget> +#include <QProcess> +#include <QMap> +#include <QMainWindow> + +class QWebView; +class QTextEdit; +class QVBoxLayout; +class QProcess; +class QStringList; +class QString; +class QUrl; +class QFile; +class QTextStream; +class QDockWidget; + +class MainWindow : public QMainWindow +{ + Q_OBJECT + + public: + MainWindow(QWidget *parent = 0); + ~MainWindow(); + + public slots: + // Funcion que maneja los links + void slotLinkHandle(const QUrl& url); + void slotWebLoadStarted(); + void slotWebLoadFinished(bool ok); + void slotWebLoadProgress(int progress); + + // Funciones que manejan cada vez que el proceso hace algo + void slotProcessStarted(); + void slotProcessFinished(int code,QProcess::ExitStatus status); + void slotProcessError(QProcess::ProcessError error); + void slotProcessOutput(); + void slotProcessErrorOutput(); + + //Functions + protected: + int readEnvironmentValues(); + + + protected: + QWebView *web; + QTextEdit *text; + QDockWidget *dock; + + QProcess *process; + QStringList output; + QStringList errors; + + QMap<QString,QString> env; + QFile *logfile; + QTextStream *logstream; +}; + +#endif // MAINWINDOW_H |