summaryrefslogtreecommitdiffstats
path: root/src/fbgui.h
diff options
context:
space:
mode:
authorJonathan Bauer2011-03-24 12:12:26 +0100
committerJonathan Bauer2011-03-24 12:12:26 +0100
commit2c81a5dadc01fa5aaf22dc0af30c7163e4c81728 (patch)
treeb4fdc14f80e259635432b4a8af0d4196e03579fe /src/fbgui.h
parentmisc (diff)
downloadfbgui-2c81a5dadc01fa5aaf22dc0af30c7163e4c81728.tar.gz
fbgui-2c81a5dadc01fa5aaf22dc0af30c7163e4c81728.tar.xz
fbgui-2c81a5dadc01fa5aaf22dc0af30c7163e4c81728.zip
cleanups....
Diffstat (limited to 'src/fbgui.h')
-rw-r--r--src/fbgui.h18
1 files changed, 11 insertions, 7 deletions
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