Renamed the httpclient class.
[ptas] / zouba / qt / route_p.h
diff --git a/zouba/qt/route_p.h b/zouba/qt/route_p.h
new file mode 100644 (file)
index 0000000..57d3767
--- /dev/null
@@ -0,0 +1,51 @@
+#ifndef ROUTE_P_H
+#define ROUTE_P_H
+
+#include "routedata.h"
+
+#include "location.h"
+
+#include <QObject>
+
+class RoutePrivate: public QObject
+{
+  Q_OBJECT
+
+public:
+  RoutePrivate( QObject *parent=0 );
+  ~RoutePrivate();
+
+  Q_PROPERTY(Location fromLocation READ fromLocation WRITE setFromLocation);
+  Q_PROPERTY(Location toLocation READ toLocation WRITE setFromLocation);
+
+  RouteData parseReply( const QByteArray &reply );
+
+  /*!
+    * \brief Sets the from location
+    * \param fromLocation The from location
+    */
+  void setFromLocation( Location fromLocation );
+
+  /*!
+    \brief Get the from location
+    \return The from location
+    */
+  Location fromLocation();
+
+  /*!
+    * \brief Sets the to location
+    * \param toLocation The to location
+    */
+  void setToLocation( Location toLocation );
+
+  /*!
+    \brief Get the to location
+    \return The to location
+    */
+  Location toLocation();
+
+private:
+  Location m_fromLocation;
+  Location m_toLocation;
+};
+#endif // ROUTE_P_H