//#ifdef Q_WS_MAEMO_5
#include "maemo5locationprivate.h"
#include "maemo5location.h"
+#include <QDebug>
/**
*Default constructor of this class.
*/
Maemo5Location::Maemo5Location(QObject* parent):QObject(parent)
{
+ qDebug() << "__Maemo5Location";
ptr = new Maemo5LocationPrivate(this);
connect(ptr, SIGNAL(agnss()), this, SIGNAL(agnss()));
*/
Maemo5Location::~Maemo5Location()
{
- delete ptr;
+ qDebug() << "__~Maemo5Location";
+ if(ptr)
+ delete ptr;
}
/**
*/
void Maemo5Location::startPollingGPS()
{
+ qDebug() << "__Maemo5Location: startPollingGPS";
ptr->get_agnss();
}
*/
void Maemo5Location::stopPollingGPS()
{
+ qDebug() << "__Maemo5Location: stopPollingGPS";
ptr->stop();
}