From 432b03ceca63c71eab1ae218d743c31dedce48f5 Mon Sep 17 00:00:00 2001 From: Niklas Goby Date: Wed, 16 Mar 2011 19:09:08 +0100 Subject: some changes in the fbgui, ipWatcher --- src/fbgui.cpp | 13 +++++++++++++ src/fbgui.qrc | 1 + 2 files changed, 14 insertions(+) (limited to 'src') 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 #include @@ -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 @@ html/errorPage.html + html/loadAbout.html -- cgit v1.2.3-55-g7522