diff options
author | Tomaz Canabrava <tomaz.canabrava@gmail.com> | 2015-05-10 12:44:35 -0300 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2015-05-10 11:14:20 -0700 |
commit | 627de38c01f6bcba56221ed3703bd08d1d215168 (patch) | |
tree | 1bdd70a21eb5b707dcd11a7b0bf9a18db5ff5ca4 /divesitehelpers.h | |
parent | 412844c02b5180e67337de2404629163d0434574 (diff) | |
download | subsurface-627de38c01f6bcba56221ed3703bd08d1d215168.tar.gz |
Get the location information in a separate thread
This makes Subsurface usable faster for those without a good internet
connection when they are opening an older data file.
While parsing, we are only feeding an vector of locations, after the
parsing is done, we traverse the vector searching for the information on
the web.
I need to also add a way to stop if there`s no internet connection - but
this will be another patch.
Also, fixed two small memory leaks from the old imp.
[Dirk Hohndel: cleaned up the whitespace mess]
Signed-off-by: Tomaz Canabrava <tomaz.canabrava@gmail.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'divesitehelpers.h')
-rw-r--r-- | divesitehelpers.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/divesitehelpers.h b/divesitehelpers.h new file mode 100644 index 000000000..68c195674 --- /dev/null +++ b/divesitehelpers.h @@ -0,0 +1,17 @@ +#ifndef DIVESITEHELPERS_H +#define DIVESITEHELPERS_H + +#include "units.h" +#include <QThread> + +class ReverseGeoLoockupThread : public QThread { +Q_OBJECT +public: + static ReverseGeoLoockupThread *instance(); + void run() Q_DECL_OVERRIDE; + +private: + ReverseGeoLoockupThread(QObject *parent = 0); +}; + +#endif // DIVESITEHELPERS_H |