diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/fbgui.cpp | 13 | ||||
| -rw-r--r-- | src/fbgui.qrc | 1 |
2 files changed, 14 insertions, 0 deletions
diff --git a/src/fbgui.cpp b/src/fbgui.cpp index 8f738d3..3408b1e 100644 --- a/src/fbgui.cpp +++ b/src/fbgui.cpp @@ -1,6 +1,7 @@ #include "fbgui.h" #include "downloadManager.h" #include "javascriptInterface.h" +//#include "ipWatcher.h" #include <iostream> #include <QUrl> @@ -23,9 +24,21 @@ fbgui::fbgui() /* debug console test */ if (debug) logView = new logViewer(this); logView->write("fbgui initialization..."); + + + /* initialize "browser" */ checkHost(); + webView = new QWebView(this); + + /*show info page until the client has received an IP address*/ + /* + ipWatcher* ipw = new ipWatcher(QApplication::applicationDirPath()); + while(!ipw->ipReceived()){ + webView->load(QUrl("prc://html/loadAbout.html")); + } + */ webView->load(baseURL); /* initialize javascript interface */ diff --git a/src/fbgui.qrc b/src/fbgui.qrc index da051a4..8a2d434 100644 --- a/src/fbgui.qrc +++ b/src/fbgui.qrc @@ -1,5 +1,6 @@ <!DOCTYPE RCC><RCC version="1.0"> <qresource> <file>html/errorPage.html</file> + <file>html/loadAbout.html</file> </qresource> </RCC> |
