+#include <stdio.h>
#include "location_p.h"
#include <QXmlStreamReader>
{
}
+LocationPrivate::~LocationPrivate()
+{
+}
+
void LocationPrivate::parseReply( const QByteArray &reply )
{
+ qDebug() << "parsing";
QXmlStreamReader xml( reply );
while ( !xml.atEnd() ) {
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;
return m_x;
}
+void LocationPrivate::setY( uint y )
+{
+ m_y = QString( "%1" ).arg( y );
+}
+
void LocationPrivate::setY( QString y )
{
m_y = y;