Changes: added GPS class and made app get from location from GPS
[ptas] / zouba / location_p.cpp
index 8eac5e0..5e74595 100644 (file)
@@ -1,3 +1,4 @@
+#include <stdio.h>
 #include "location_p.h"
 
 #include <QXmlStreamReader>
@@ -18,6 +19,10 @@ LocationPrivate::LocationPrivate() :
 {
 }
 
+LocationPrivate::~LocationPrivate()
+{
+}
+
 void LocationPrivate::parseReply( const QByteArray &reply )
 {
   QXmlStreamReader xml( reply );
@@ -44,6 +49,11 @@ void LocationPrivate::parseReply( const QByteArray &reply )
   }
 }
 
+void LocationPrivate::setX( uint x )
+{
+  m_x = QString( "%1" ).arg( x );
+}
+
 void LocationPrivate::setX( QString x )
 {
   m_x = x;
@@ -54,6 +64,11 @@ QString LocationPrivate::x() const
   return m_x;
 }
 
+void LocationPrivate::setY( uint y )
+{
+  m_y = QString( "%1" ).arg( y );
+}
+
 void LocationPrivate::setY( QString y )
 {
   m_y = y;