summaryrefslogtreecommitdiffstats
path: root/NetworkDiscovery/ndgui.cpp
diff options
context:
space:
mode:
authorNiklas2011-10-10 17:07:14 +0200
committerNiklas2011-10-10 17:07:14 +0200
commit8fbc0a431cc25292978323edc2f53bfa9f2c3c96 (patch)
tree3a0ab2d37255912baa4e0278a2ed56266202f518 /NetworkDiscovery/ndgui.cpp
parentadded some commtents to the ndgui (diff)
downloadfbgui-8fbc0a431cc25292978323edc2f53bfa9f2c3c96.tar.gz
fbgui-8fbc0a431cc25292978323edc2f53bfa9f2c3c96.tar.xz
fbgui-8fbc0a431cc25292978323edc2f53bfa9f2c3c96.zip
corrected some errors
Diffstat (limited to 'NetworkDiscovery/ndgui.cpp')
-rw-r--r--NetworkDiscovery/ndgui.cpp36
1 files changed, 36 insertions, 0 deletions
diff --git a/NetworkDiscovery/ndgui.cpp b/NetworkDiscovery/ndgui.cpp
index bbd6798..c1da989 100644
--- a/NetworkDiscovery/ndgui.cpp
+++ b/NetworkDiscovery/ndgui.cpp
@@ -222,6 +222,9 @@ int ndgui::ip4_setManualConfiguration(QVariantMap jsonArr) {
//////////////////////////////////////////////////
/************************************************/
+/**
+ * stellt ein ndgui/fbgui Objekt zur verwendung durch die html bereit.
+ */
void ndgui::attachToDOM(){
_webView->page()->mainFrame()->addToJavaScriptWindowObject(QString("fbgui"), this);
loadJQuery();
@@ -271,6 +274,9 @@ void ndgui::abortBoot(const QString msg) {
+/**
+ * opens ths chooseInterfaceDialog
+ */
void ndgui::chooseInterfaceDialog(const QString msg) {
QString code = QString("chooseInterfaceDialog(\%1)").arg(msg);
_webView->page()->mainFrame()->evaluateJavaScript(code);
@@ -278,6 +284,9 @@ void ndgui::chooseInterfaceDialog(const QString msg) {
+/**
+ * updates the over all status
+ */
void ndgui::updateStatus(const QString &status) {
if (status == "")
return;
@@ -287,6 +296,15 @@ void ndgui::updateStatus(const QString &status) {
+/**
+ * updates the progress bar for each interface.
+ *
+ * @param ifname
+ * the name ot the interface to update
+ *
+ * @param percent
+ * the progress in percent
+ */
void ndgui::updateIfProgressBar(const QString &ifName, const int& percent) {
if (percent == 0)
return;
@@ -296,6 +314,15 @@ void ndgui::updateIfProgressBar(const QString &ifName, const int& percent) {
+/**
+ * update the status for each interface
+ *
+ * @param ifName
+ * the name ot the interface to update
+ *
+ * @param status
+ * the new status of the interface.
+ */
void ndgui::updateIfStatus(const QString &ifName, const QString &status) {
if (ifName == "")
return;
@@ -305,6 +332,12 @@ void ndgui::updateIfStatus(const QString &ifName, const QString &status) {
+/**
+ * adds an interface to the DOM tree. Creates its progress bar and it's status label.
+ *
+ * @param ifName
+ * name of the new interface.
+ */
void ndgui::addInterface(const QString &ifName) {
if (ifName == "")
return;
@@ -315,6 +348,9 @@ void ndgui::addInterface(const QString &ifName) {
+/**
+ * just for debugging.
+ */
void ndgui::notifyCall(QString msg){
qDebug() << _tag << "------ called:" << msg;
}