summaryrefslogtreecommitdiffstats
path: root/src/ndgui.h
diff options
context:
space:
mode:
authorNiklas Goby2011-11-23 11:56:19 +0100
committerNiklas Goby2011-11-23 11:56:19 +0100
commitc0b6b199a9878bc1e95907200501211c09c1e66c (patch)
tree0079c34c6536e5f1d0414aebde1793db60a78f35 /src/ndgui.h
parentdeleted the NetworkDiscovery and UnixDomainSocketServer folder (diff)
downloadfbgui-c0b6b199a9878bc1e95907200501211c09c1e66c.tar.gz
fbgui-c0b6b199a9878bc1e95907200501211c09c1e66c.tar.xz
fbgui-c0b6b199a9878bc1e95907200501211c09c1e66c.zip
created modules
Diffstat (limited to 'src/ndgui.h')
-rw-r--r--src/ndgui.h115
1 files changed, 0 insertions, 115 deletions
diff --git a/src/ndgui.h b/src/ndgui.h
deleted file mode 100644
index 41a7bbf..0000000
--- a/src/ndgui.h
+++ /dev/null
@@ -1,115 +0,0 @@
-/**
- * Copyright (c) 2010,2011 - RZ Uni Freiburg
- * Copyright (c) 2010,2011 - OpenSLX Project
- *
- * This program/file is free software distributed under the GPL version 2.
- * See http://openslx.org/COPYING
- *
- * If you have any feedback please consult http://openslx.org/feedback and
- * send your feedback to feedback@openslx.org
- *
- * General information about OpenSLX can be found under http://openslx.org
- */
-
-
-
-#ifndef NDGUI_H
-#define NDGUI_H
-
-#include <QtGui>
-#include <QtWebKit>
-#include <QVariant>
-
-#include "fbgui.h"
-#include "loggerengine.h"
-#include "networkdiscovery.h"
-
-
-extern QString gServerIp;
-extern bool gAutoUp;
-extern QString gSocketServerPath;
-extern QString gPathToDhcpExe;
-
-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);
-
-public slots:
- 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 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);
-
- signals:
- void initFbgui();
-
-private slots:
- void setUserChoiceTrue();
-
-private:
-
- QString _tag;
-
- void createAction();
-
- bool _userChoice;
-
- bool _started;
-
- QWebView* _webView;
-
- QAction* _allowUserChoice;
-
- QAction* _tryAgain;
-
- NetworkDiscovery* _networkDiscovery;
-
- QList<QString> _ifNameList; // maps interfaceName to its gateway
-
- QList<QString> _manConfList;
-
- QString _manualConfInterfaces;
-
- // QSplitter to split the main window in two resizable frames.
- QSplitter* _splitter;
- // QTextEdit implementing a minimalistic debug console.
- QTextEdit* _debugConsole;
-
- // triggers toggleDebugConsole()
- QAction* _toggleDebugConsole;
-
- void init();
- void setupLayout();
- void createDebugConsole();
- void toggleDebugConsole();
-
-
-};
-
-#endif // NDGUI_H