Moved the from and to locations out of HttpClient into main, and added set/get method...
[ptas] / zouba / qt / httpclient_p.h
index 9c04bd9..e0ee685 100644 (file)
@@ -3,6 +3,8 @@
 
 #include "routedata.h"
 
+#include "location.h"
+
 #include <QObject>
 
 class HttpClientPrivate: public QObject
@@ -13,6 +15,37 @@ public:
   HttpClientPrivate( QObject *parent=0 );
   ~HttpClientPrivate();
 
+  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 // HTTPCLIENT_P_H