From c1f72546e694f30c7ffa5cad35643df5e460a76b Mon Sep 17 00:00:00 2001 From: Jonathan Bauer Date: Thu, 14 Apr 2011 17:20:05 +0200 Subject: Download manager now threaded (Ticket #205) & change the watcher to create the trigger file and wait til it is modified, changing the file (f.e. writing something) triggers URL load --- src/fbgui.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src/fbgui.h') diff --git a/src/fbgui.h b/src/fbgui.h index 4ad17df..287b295 100644 --- a/src/fbgui.h +++ b/src/fbgui.h @@ -34,6 +34,7 @@ // Global settings variables +extern QThread dmThread; extern QString serialLocation; extern QString fileToTriggerURL; extern QString sessionID; @@ -49,6 +50,7 @@ class fbgui : public QMainWindow public: fbgui(); + ~fbgui(); private: //------------------- @@ -100,9 +102,9 @@ private slots: // toggles debug console when action _toggleDebugConsole happens. void toggleDebugConsole(); - // 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); + // triggered by fileChanged Signal of _watcher + // deletes _watcher, since we don't need it anymore and tries to load URL. + void prepareURLLoad(); }; #endif // FBGUI_H -- cgit v1.2.3-55-g7522