summaryrefslogtreecommitdiffstats
path: root/src/fbgui/ndgui.h
diff options
context:
space:
mode:
authorSebastian Schmelzer2011-12-03 13:31:09 +0100
committerSebastian Schmelzer2011-12-03 13:31:09 +0100
commit1b48532c662470f5dd4090d47e1e2c333e967caf (patch)
tree8c23d3eca5fa088b91887d528138b9e0462382fb /src/fbgui/ndgui.h
parentlet cmake find qxt (diff)
downloadfbgui-1b48532c662470f5dd4090d47e1e2c333e967caf.tar.gz
fbgui-1b48532c662470f5dd4090d47e1e2c333e967caf.tar.xz
fbgui-1b48532c662470f5dd4090d47e1e2c333e967caf.zip
codeformating, change to log4cxx
Diffstat (limited to 'src/fbgui/ndgui.h')
-rw-r--r--src/fbgui/ndgui.h104
1 files changed, 52 insertions, 52 deletions
diff --git a/src/fbgui/ndgui.h b/src/fbgui/ndgui.h
index 41a7bbf..d4ab0b1 100644
--- a/src/fbgui/ndgui.h
+++ b/src/fbgui/ndgui.h
@@ -21,7 +21,6 @@
#include <QVariant>
#include "fbgui.h"
-#include "loggerengine.h"
#include "networkdiscovery.h"
@@ -30,84 +29,85 @@ extern bool gAutoUp;
extern QString gSocketServerPath;
extern QString gPathToDhcpExe;
-class ndgui: public QMainWindow {
-Q_OBJECT
+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();
- Q_INVOKABLE QVariantMap getInterfaceConf(QString ifName);
+ ndgui(QMainWindow *parent = 0);
+ ~ndgui();
+ Q_INVOKABLE QVariantList getManualConfInterfaces();
+ Q_INVOKABLE int ip4_setManualConfiguration(QVariantMap result);
+ Q_INVOKABLE QString readLogFile();
+ Q_INVOKABLE QVariantMap getInterfaceConf(QString ifName);
public slots:
- void handleConnectionEstablished(QString ifName);
- void abortBoot(QString msg);
- void chooseInterfaceDialog(QString msg);
- void handleAllProcessesFinished();
+ void handleConnectionEstablished(QString ifName);
+ void abortBoot(QString msg);
+ void chooseInterfaceDialog(QString msg);
+ void handleAllProcessesFinished();
- void restartSystem();
- void shutDownSystem();
- void continueBoot(QString ifName);
- void continueBootWithoutCheck(QString ifName);
- void tryAgain();
+ void restartSystem();
+ void shutDownSystem();
+ void continueBoot(QString ifName);
+ void continueBootWithoutCheck(QString ifName);
+ void tryAgain();
- void startSingleShot();
- void startNetworkDiscovery();
+ void startSingleShot();
+ 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);
+ /*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();
+signals:
+ void initFbgui();
private slots:
- void setUserChoiceTrue();
+ void setUserChoiceTrue();
private:
- QString _tag;
+ QString _tag;
- void createAction();
+ void createAction();
- bool _userChoice;
+ bool _userChoice;
- bool _started;
+ bool _started;
- QWebView* _webView;
+ QWebView* _webView;
- QAction* _allowUserChoice;
+ QAction* _allowUserChoice;
- QAction* _tryAgain;
+ QAction* _tryAgain;
- NetworkDiscovery* _networkDiscovery;
+ NetworkDiscovery* _networkDiscovery;
- QList<QString> _ifNameList; // maps interfaceName to its gateway
+ QList<QString> _ifNameList; // maps interfaceName to its gateway
- QList<QString> _manConfList;
+ QList<QString> _manConfList;
- QString _manualConfInterfaces;
+ QString _manualConfInterfaces;
- // QSplitter to split the main window in two resizable frames.
- QSplitter* _splitter;
- // QTextEdit implementing a minimalistic debug console.
- QTextEdit* _debugConsole;
+ // QSplitter to split the main window in two resizable frames.
+ QSplitter* _splitter;
+ // QTextEdit implementing a minimalistic debug console.
+ QTextEdit* _debugConsole;
- // triggers toggleDebugConsole()
- QAction* _toggleDebugConsole;
+ // triggers toggleDebugConsole()
+ QAction* _toggleDebugConsole;
- void init();
- void setupLayout();
- void createDebugConsole();
- void toggleDebugConsole();
+ void init();
+ void setupLayout();
+ void createDebugConsole();
+ void toggleDebugConsole();
};