X-Git-Url: http://git.maemo.org/git/?p=speedfreak;a=blobdiff_plain;f=Client%2Fmaemo5location.cpp;h=535cef358427263db70aadc2675fab080e0e04b9;hp=a8065fd09c90d25341bf3aa978658214fac4f580;hb=ac84b058f9433e99aee2f560ef4f4e634d6900f7;hpb=e753d97cfeafbe574fbd6f51c4f06dfebd0141e4 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(); }