Moved files to make zouba the only project.
[ptas] / src / route_p.h
diff --git a/src/route_p.h b/src/route_p.h
new file mode 100644 (file)
index 0000000..fddce34
--- /dev/null
@@ -0,0 +1,42 @@
+#ifndef ROUTE_P_H
+#define ROUTE_P_H
+
+#include "routedata.h"
+
+#include "location.h"
+
+#include <QObject>
+
+class RoutePrivate: public QObject
+{
+  Q_OBJECT
+
+public:
+  RoutePrivate( QObject *parent=0 );
+  ~RoutePrivate();
+
+  QList<RouteData> parseReply( const QByteArray &reply );
+
+  Q_PROPERTY(Location* fromLocation READ fromLocation WRITE setFromLocation);
+  Q_PROPERTY(Location* toLocation READ toLocation WRITE setToLocation);
+
+  void setFromLocation( Location *fromLocation );
+
+  Location *fromLocation() const;
+
+  void setToLocation( Location *toLocation );
+
+  Location *toLocation() const;
+
+  bool toValid();
+  bool fromValid();
+
+private:
+  bool     m_fromValid;
+  bool     m_toValid;
+  Location *m_fromLocation;
+  Location *m_toLocation;
+
+  QString parseJORECode( const QString &joreCode ) const;
+};
+#endif // ROUTE_P_H