diff options
author | Niklas | 2011-10-10 17:08:35 +0200 |
---|---|---|
committer | Niklas | 2011-10-10 17:08:35 +0200 |
commit | 5aa568daae23daa7ac190e56df469e9566075257 (patch) | |
tree | f339f20eccc838640cded864bf3fe37b056b4b36 /src/ndgui.h | |
parent | corrected some errors (diff) | |
download | fbgui-5aa568daae23daa7ac190e56df469e9566075257.tar.gz fbgui-5aa568daae23daa7ac190e56df469e9566075257.tar.xz fbgui-5aa568daae23daa7ac190e56df469e9566075257.zip |
new veriosn of the fbgui src (same as in fbgui-ng) combined with my networkDiscovery in front.
Diffstat (limited to 'src/ndgui.h')
-rw-r--r-- | src/ndgui.h | 75 |
1 files changed, 75 insertions, 0 deletions
diff --git a/src/ndgui.h b/src/ndgui.h new file mode 100644 index 0000000..eb30d7a --- /dev/null +++ b/src/ndgui.h @@ -0,0 +1,75 @@ +#ifndef NDGUI_H +#define NDGUI_H + +#include <QtGui> +#include <QtWebKit> +#include <QVariant> + +#include "loggerengine.h" +#include "networkdiscovery.h" + +class ndgui: public QMainWindow { +Q_OBJECT + +public: + ndgui(QMainWindow *parent = 0); + ~ndgui(); + Q_INVOKABLE QVariantList getManualConfInterfaces(); + Q_INVOKABLE int ip4_setManualConfiguration(QVariantMap result); + Q_INVOKABLE QString readLogFile(); + +public slots: + void handleConnectionEstablished(QString ifName); + void abortBoot(QString msg); + void chooseInterfaceDialog(QString msg); + void handleAllProcessesFinished(); + + void restartSystem(); + void shutDownSystem(); + void continueBoot(QString ifName, int userChoice); + + + void prepareNetworkDiscover(); + void startNetworkDiscovery(); + + /*test for html gui version*/ + 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 notifyCall(QString msg); + + signals: + void initFbgui(); + +private slots: + void setUserChoiceTrue(); + +private: + + QString _tag; + + void createAction(); + + bool _userChoice; + + bool _started; + + QWebView * _webView; + + QAction * _allowUserChoice; + + NetworkDiscovery networkDiscovery; + + QList<QString> _ifNameList; // maps interfaceName to its gateway + + QList<QString> _manConfList; + + QString _manualConfInterfaces; + + +}; + +#endif // NDGUI_H |