diff options
| author | Niklas | 2011-09-21 16:59:09 +0200 |
|---|---|---|
| committer | Niklas | 2011-09-21 16:59:09 +0200 |
| commit | 3b81d83bf449ef6242489805af15b7da7b197d58 (patch) | |
| tree | 26f78d0c6321a11acccf6418deb557033268a28c /LogReceiver/ndgui.h | |
| parent | the checkConnectivity method is working now. we use the rtnl functions of the... (diff) | |
| download | fbgui-3b81d83bf449ef6242489805af15b7da7b197d58.tar.gz fbgui-3b81d83bf449ef6242489805af15b7da7b197d58.tar.xz fbgui-3b81d83bf449ef6242489805af15b7da7b197d58.zip | |
gui is now html based. still some problems with the jQuery stuff. it does not display anything.
Diffstat (limited to 'LogReceiver/ndgui.h')
| -rw-r--r-- | LogReceiver/ndgui.h | 26 |
1 files changed, 16 insertions, 10 deletions
diff --git a/LogReceiver/ndgui.h b/LogReceiver/ndgui.h index b320770..fd34ec4 100644 --- a/LogReceiver/ndgui.h +++ b/LogReceiver/ndgui.h @@ -1,10 +1,8 @@ #ifndef NDGUI_H #define NDGUI_H -#include <QtGui/QWidget> -#include <QWebElement> -#include <QWebView> -#include <QWebFrame> +#include <QtGui> +#include <QtWebKit> #include <QProgressBar> #include <QLabel> #include <QGroupBox> @@ -16,17 +14,17 @@ #include "ui_ndgui.h" -class ndgui: public QWidget { +class ndgui: public QMainWindow { Q_OBJECT public: - ndgui(QWidget *parent = 0); + ndgui(QMainWindow *parent = 0); ~ndgui(); public slots: void handleProgress(QString ifName, int newValue); void addNewInterface(QString ifName); - void handleConnectionEstablished(QString ifName, QString gateway); + void handleConnectionEstablished(interfaceconfiguration *ifConf); void handleAbortBoot(QString msg); void handleUpdateStatusLabel(QString ifName, QString status); void handleAllProcessesFinished(); @@ -40,15 +38,23 @@ public slots: void showChooseInterfaceDialog(); /*test for html gui version*/ - void addInterface(); + void attachToDOM(); + void loadJQuery(); + void addInterface(const QString &ifName); + void updateIfStatus(const QString &ifName, const QString &status); + void updateStatus(const QString &status); + void updateIfProgressBar(const QString &ifName, const int& percent); + void loadFinished(bool ok); + void notifyCall(); private: Ui::ndguiClass ui; + QWebView * _webView; + LogReceiver logReceiver; - QStringList finalUsableInterfaces; - QMap<QString, QString> finalUsableIntefacesMap; // maps interfaceName to its gateway + QMap<QString, interfaceconfiguration*> finalUsableIntefacesMap; // maps interfaceName to its gateway int numberOfInterfaces; |
