Added common utilities source directory to unit test include path
[ptas] / zouba / location_p.cpp
index 8eac5e0..79fb912 100644 (file)
@@ -1,3 +1,4 @@
+#include <stdio.h>
 #include "location_p.h"
 
 #include <QXmlStreamReader>
@@ -18,8 +19,13 @@ LocationPrivate::LocationPrivate() :
 {
 }
 
+LocationPrivate::~LocationPrivate()
+{
+}
+
 void LocationPrivate::parseReply( const QByteArray &reply )
 {
+  qDebug() << "parsing";
   QXmlStreamReader xml( reply );
 
   while ( !xml.atEnd() ) {
@@ -40,10 +46,16 @@ void LocationPrivate::parseReply( const QByteArray &reply )
     qDebug() << "xml error";
     m_valid = false;
   } else {
+    qDebug() << "(" << m_x << "," << m_y << ")";
     m_valid = true;
   }
 }
 
+void LocationPrivate::setX( uint x )
+{
+  m_x = QString( "%1" ).arg( x );
+}
+
 void LocationPrivate::setX( QString x )
 {
   m_x = x;
@@ -54,6 +66,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;