From 8fbc0a431cc25292978323edc2f53bfa9f2c3c96 Mon Sep 17 00:00:00 2001 From: Niklas Date: Mon, 10 Oct 2011 17:07:14 +0200 Subject: corrected some errors --- NetworkDiscovery/ndgui.cpp | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) (limited to 'NetworkDiscovery/ndgui.cpp') 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; } -- cgit v1.2.3-55-g7522