Moved the from and to locations out of HttpClient into main, and added set/get method...
[ptas] / zouba / qt / httpclient_p.h
1 #ifndef HTTPCLIENT_P_H
2 #define HTTPCLIENT_P_H
3
4 #include "routedata.h"
5
6 #include "location.h"
7
8 #include <QObject>
9
10 class HttpClientPrivate: public QObject
11 {
12   Q_OBJECT
13
14 public:
15   HttpClientPrivate( QObject *parent=0 );
16   ~HttpClientPrivate();
17
18   Q_PROPERTY(Location fromLocation READ fromLocation WRITE setFromLocation);
19   Q_PROPERTY(Location toLocation READ toLocation WRITE setFromLocation);
20
21   RouteData parseReply( const QByteArray &reply );
22
23   /*!
24     * \brief Sets the from location
25     * \param fromLocation The from location
26     */
27   void setFromLocation( Location fromLocation );
28
29   /*!
30     \brief Get the from location
31     \return The from location
32     */
33   Location fromLocation();
34
35   /*!
36     * \brief Sets the to location
37     * \param toLocation The to location
38     */
39   void setToLocation( Location toLocation );
40
41   /*!
42     \brief Get the to location
43     \return The to location
44     */
45   Location toLocation();
46
47 private:
48   Location m_fromLocation;
49   Location m_toLocation;
50 };
51 #endif // HTTPCLIENT_P_H