8 #include <QNetworkReply>
9 #include <QNetworkAccessManager>
13 class Route: public QObject
21 Q_PROPERTY(Location fromLocation READ fromLocation WRITE setFromLocation);
22 Q_PROPERTY(Location toLocation READ toLocation WRITE setToLocation);
25 * \brief Gets the route data from the server
30 \brief Get the from location
31 \return The from location
33 const Location &fromLocation();
36 \brief Get the to location
37 \return The to location
39 const Location &toLocation();
44 * \brief Sets the from location
45 * \param fromLocation The from location
47 void setFromLocation( const Location &location=Location() );
50 * \brief Sets the to location
51 * \param toLocation The to location
53 void setToLocation( const Location &location=Location() );
56 * \brief Toggles the route direction.
58 void toggleDirection();
61 void routeReady( QList<RouteData> );
64 void replyFinished( QNetworkReply* );
68 QNetworkAccessManager *manager;