X-Git-Url: http://git.maemo.org/git/?a=blobdiff_plain;ds=sidebyside;f=Client%2Fmaemo5location.cpp;h=535cef358427263db70aadc2675fab080e0e04b9;hb=28d7fdcbf1646f7b175907bf79718d7495ee7935;hp=a8065fd09c90d25341bf3aa978658214fac4f580;hpb=2902e3c96a34377d252d222ff60ce11f46556882;p=speedfreak diff --git a/Client/maemo5location.cpp b/Client/maemo5location.cpp index a8065fd..535cef3 100755 --- a/Client/maemo5location.cpp +++ b/Client/maemo5location.cpp @@ -9,6 +9,7 @@ //#ifdef Q_WS_MAEMO_5 #include "maemo5locationprivate.h" #include "maemo5location.h" +#include /** *Default constructor of this class. @@ -16,6 +17,7 @@ */ Maemo5Location::Maemo5Location(QObject* parent):QObject(parent) { + qDebug() << "__Maemo5Location"; ptr = new Maemo5LocationPrivate(this); connect(ptr, SIGNAL(agnss()), this, SIGNAL(agnss())); @@ -33,7 +35,9 @@ Maemo5Location::Maemo5Location(QObject* parent):QObject(parent) */ Maemo5Location::~Maemo5Location() { - delete ptr; + qDebug() << "__~Maemo5Location"; + if(ptr) + delete ptr; } /** @@ -41,6 +45,7 @@ Maemo5Location::~Maemo5Location() */ void Maemo5Location::startPollingGPS() { + qDebug() << "__Maemo5Location: startPollingGPS"; ptr->get_agnss(); } @@ -49,6 +54,7 @@ void Maemo5Location::startPollingGPS() */ void Maemo5Location::stopPollingGPS() { + qDebug() << "__Maemo5Location: stopPollingGPS"; ptr->stop(); }