summaryrefslogtreecommitdiffstats
path: root/subsurface-core/gpslocation.h
diff options
context:
space:
mode:
Diffstat (limited to 'subsurface-core/gpslocation.h')
-rw-r--r--subsurface-core/gpslocation.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/subsurface-core/gpslocation.h b/subsurface-core/gpslocation.h
index e0e825cb1..8fb3bb947 100644
--- a/subsurface-core/gpslocation.h
+++ b/subsurface-core/gpslocation.h
@@ -14,6 +14,8 @@ class GpsLocation : QObject
Q_OBJECT
public:
GpsLocation(void (*showMsgCB)(const char *msg), QObject *parent);
+ ~GpsLocation();
+ static GpsLocation *instance();
void applyLocations();
int getGpsNum() const;
QString getUserid(QString user, QString passwd);
@@ -27,8 +29,7 @@ private:
QNetworkReply *reply;
QString userAgent;
void (*showMessageCB)(const char *msg);
-
-signals:
+ static GpsLocation *m_Instance;
public slots:
void serviceEnable(bool toggle);