From 2c81a5dadc01fa5aaf22dc0af30c7163e4c81728 Mon Sep 17 00:00:00 2001 From: Jonathan Bauer Date: Thu, 24 Mar 2011 12:12:26 +0100 Subject: cleanups.... --- src/fbgui.h | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) (limited to 'src/fbgui.h') diff --git a/src/fbgui.h b/src/fbgui.h index a870dba..6350ee2 100644 --- a/src/fbgui.h +++ b/src/fbgui.h @@ -11,7 +11,8 @@ # General information about OpenSLX can be found under http://openslx.org # # -# Main class of the fbgui. +# Main class of the fbgui: +# - Manages display of components and their communications # */ @@ -32,7 +33,7 @@ #define DEFAULT_FILE_TRIGGER "/tmp/fbgui/trigger" -// Global settings +// Global settings variables extern QString serialLocation; extern QString fileToTriggerURL; extern QString sessionID; @@ -53,11 +54,12 @@ private: // setup procedures void setupDebugSplit(); void createActions(); - bool checkHost() const; + + // functions to trigger the loading of baseURL void watchForTrigger(); + bool checkHost() const; void loadURL(); - // widgets constituing the gui QWebView* _webView; QSplitter* _splitter; @@ -67,14 +69,16 @@ private: QAction* _quit; QAction* _toggleDebug; - // + // watcher to detect changes in the observed directory QFileSystemWatcher* _watcher; private slots: - void checkForTrigger(const QString& dirname); - // slots for processing actions + // action slots void toggleDebug(); + // checks if the change reported by _watcher is the one we are looking for + // e.g. fileToTriggerURL has been created, ignores other events. + void checkForTrigger(const QString& dirname); }; #endif // FBGUI_H -- cgit v1.2.3-55-g7522