diff options
Diffstat (limited to 'src/fbgui.cpp')
-rw-r--r-- | src/fbgui.cpp | 37 |
1 files changed, 18 insertions, 19 deletions
diff --git a/src/fbgui.cpp b/src/fbgui.cpp index 7c590c5..66e5670 100644 --- a/src/fbgui.cpp +++ b/src/fbgui.cpp @@ -23,9 +23,9 @@ fbgui::fbgui() { // test for libsys function - //SysInfoLibsysfs* sil = new SysInfoLibsysfs(); - //sil->getInfoAboutNetworkInterface(); - //sil->getInfoAboutClassNet(); + SysInfoLibsysfs* sil = new SysInfoLibsysfs(); + sil->getInfoAboutNetworkInterface(); + sil->getInfoAboutClassNet(); // start basic console debug log qxtLog->disableLoggerEngine("DEFAULT"); @@ -74,7 +74,6 @@ fbgui::fbgui() setAttribute(Qt::WA_QuitOnClose, true); setWindowFlags(Qt::FramelessWindowHint); showFullScreen(); - } //------------------------------------------------------------------------------------------- void fbgui::createActions() @@ -127,25 +126,12 @@ void fbgui::checkForTrigger(const QString& dirname) QFileInfo tfi(fileToTriggerURL); QFileInfo fi(dirname + "/" + tfi.fileName()); if (fi.exists()){ - qxtLog->debug() << fileToTriggerURL << " detected."; + qxtLog->debug() << "[watcher] " << fileToTriggerURL << " detected."; loadURL(); } else // do nothing / keep watching - qxtLog->debug() << "weird file!"; -} -//------------------------------------------------------------------------------------------- -bool fbgui::checkHost() const -{ - QHostInfo hostInfo = QHostInfo::fromName(baseURL.host()); - if (hostInfo.error() != QHostInfo::NoError){ - qxtLog->debug() << "Lookup of " << baseURL.host() << "failed. Exiting..."; - return false; - } - else{ - qxtLog->debug() << "Lookup of " << baseURL.host() << " succeeded."; - return true; - } + qxtLog->debug() << "[watcher] weird file!"; } //------------------------------------------------------------------------------------------- void fbgui::loadURL(){ @@ -185,6 +171,19 @@ void fbgui::loadURL(){ } } //------------------------------------------------------------------------------------------- +bool fbgui::checkHost() const +{ + QHostInfo hostInfo = QHostInfo::fromName(baseURL.host()); + if (hostInfo.error() != QHostInfo::NoError){ + qxtLog->debug() << "Lookup of " << baseURL.host() << "failed. Exiting..."; + return false; + } + else{ + qxtLog->debug() << "Lookup of " << baseURL.host() << " succeeded."; + return true; + } +} +//------------------------------------------------------------------------------------------- void fbgui::setupDebugSplit() { _debugConsole = new QTextEdit(this); |