summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
Diffstat (limited to 'core')
-rw-r--r--core/gpslocation.cpp10
-rw-r--r--core/gpslocation.h2
2 files changed, 11 insertions, 1 deletions
diff --git a/core/gpslocation.cpp b/core/gpslocation.cpp
index 012b24403..72f0bb557 100644
--- a/core/gpslocation.cpp
+++ b/core/gpslocation.cpp
@@ -321,6 +321,16 @@ void GpsLocation::loadFromStorage()
}
}
+QString GpsLocation::getFixString()
+{
+ // only used for debugging
+ QString res;
+ struct gpsTracker gpsEntry;
+ foreach (gpsEntry, m_trackers.values())
+ res += QString("%1: %2; %3 ; \"%4\"\n").arg(gpsEntry.when).arg(gpsEntry.location.lat.udeg).arg(gpsEntry.location.lon.udeg).arg(gpsEntry.name);
+ return res;
+}
+
void GpsLocation::replaceFixToStorage(gpsTracker &gt)
{
if (!m_trackers.keys().contains(gt.when)) {
diff --git a/core/gpslocation.h b/core/gpslocation.h
index ea3373d3b..eb61fe7ef 100644
--- a/core/gpslocation.h
+++ b/core/gpslocation.h
@@ -37,7 +37,7 @@ public:
bool hasLocationsSource();
QString currentPosition();
void setLogCallBack(void (*showMsgCB)(const char *msg));
-
+ QString getFixString();
QMap<qint64, gpsTracker> currentGPSInfo() const;
private: