ed328da23715ba5eaf9d600870c86a22302e062c
[ptas] / zouba / 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   QList<RouteData> parseReply( const QByteArray &reply );
22
23   void setFromLocation( const Location &fromLocation );
24
25   const Location &fromLocation();
26
27   void setToLocation( const Location &toLocation );
28
29   const Location &toLocation();
30
31   bool toValid();
32   bool fromValid();
33
34 private:
35   bool     m_fromValid;
36   bool     m_toValid;
37   Location m_fromLocation;
38   Location m_toLocation;
39
40   QString parseJORECode( const QString &joreCode ) const;
41 };
42 #endif // ROUTE_P_H