520b89ddcc290ce364d435fab1578bcc71ded412
[ptas] / zouba / qt / route_p.h
1 #ifndef ROUTE_P_H
2 #define ROUTE_P_H
3
4 #include "routedata.h"
5
6 #include "location.h"
7
8 #include <QObject>
9
10 class RoutePrivate: public QObject
11 {
12   Q_OBJECT
13
14 public:
15   RoutePrivate( QObject *parent=0 );
16   ~RoutePrivate();
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   void setFromLocation( Location fromLocation );
24
25   Location fromLocation();
26
27   void setToLocation( Location toLocation );
28
29   Location toLocation();
30
31 private:
32   Location m_fromLocation;
33   Location m_toLocation;
34
35   QString parseJORECode( const QString &joreCode ) const;
36 };
37 #endif // ROUTE_P_H