3 #include "maemo5locationprivate.h"
5 #include "Maemo5Location_stub.h"
7 #include "maemo5location.h"
10 *Default constructor of this class.
11 *@param QObject pointer to parent object. By default the value is NULL.
13 Maemo5Location::Maemo5Location(QObject* parent):QObject(parent)
15 // QMessageBox::about(new QWidget(),"Connect to gps","");
16 ptr = new Maemo5LocationPrivate(this);
17 connect(ptr,SIGNAL(agnss()),this,SIGNAL(agnss()));
18 connect(ptr,SIGNAL(awcp()),this,SIGNAL(awcp()));
19 connect(ptr,SIGNAL(locationUpdated()),this,SIGNAL(locationUpdated()));
20 connect(ptr,SIGNAL(connected()),this,SIGNAL(connected()));
25 *Destructor of this class. Should be used to release all allocated resources.
27 Maemo5Location::~Maemo5Location()
31 double Maemo5Location::getLatitude()
33 return ptr->get_lat();
35 double Maemo5Location::getLongitude()
37 return ptr->get_lon();