mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Add instance method for GpsLocation
This way we can call members from different parts of the code. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
1bfcf5c0f8
commit
962341ae9f
2 changed files with 23 additions and 3 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue