summaryrefslogtreecommitdiffstats
path: root/core/gpslocation.h
diff options
context:
space:
mode:
Diffstat (limited to 'core/gpslocation.h')
-rw-r--r--core/gpslocation.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/core/gpslocation.h b/core/gpslocation.h
index 60e16e186..02377bfca 100644
--- a/core/gpslocation.h
+++ b/core/gpslocation.h
@@ -24,6 +24,9 @@ class GpsLocation : public QObject {
Q_OBJECT
public:
GpsLocation(void (*showMsgCB)(const char *msg), QObject *parent);
+ ~GpsLocation();
+ static GpsLocation *instance();
+ static bool hasInstance();
bool applyLocations();
int getGpsNum() const;
bool hasLocationsSource();
@@ -40,6 +43,7 @@ private:
QNetworkReply *reply;
QString userAgent;
void (*showMessageCB)(const char *msg);
+ static GpsLocation *m_Instance;
bool waitingForPosition;
QMap<qint64, gpsTracker> m_trackers;
QList<gpsTracker> m_deletedTrackers;