Added dialogs to change home and work locations.
[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   QList<RouteData> parseReply( const QByteArray &reply );
19
20   Q_PROPERTY(Location* fromLocation READ fromLocation WRITE setFromLocation);
21   Q_PROPERTY(Location* toLocation READ toLocation WRITE setToLocation);
22
23   void setFromLocation( Location *fromLocation );
24
25   Location *fromLocation() const;
26
27   void setToLocation( Location *toLocation );
28
29   Location *toLocation() const;
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