summaryrefslogtreecommitdiffstats
path: root/src/fbgui.h
diff options
context:
space:
mode:
authorJonathan Bauer2011-04-14 17:20:05 +0200
committerJonathan Bauer2011-04-14 17:20:05 +0200
commitc1f72546e694f30c7ffa5cad35643df5e460a76b (patch)
tree3f4100c8d01d3e2a5704f141c06ae2ff9fe5d8ef /src/fbgui.h
parenttrigger watch fix & waiting cursor until URL (diff)
downloadfbgui-c1f72546e694f30c7ffa5cad35643df5e460a76b.tar.gz
fbgui-c1f72546e694f30c7ffa5cad35643df5e460a76b.tar.xz
fbgui-c1f72546e694f30c7ffa5cad35643df5e460a76b.zip
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
Diffstat (limited to 'src/fbgui.h')
-rw-r--r--src/fbgui.h8
1 files changed, 5 insertions, 3 deletions
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