Incorporated changes from bus project.
[ptas] / src / route_p.h
index fddce34..de858ee 100644 (file)
@@ -9,34 +9,32 @@
 
 class RoutePrivate: public QObject
 {
-  Q_OBJECT
+    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)
 
-  Q_PROPERTY(Location* fromLocation READ fromLocation WRITE setFromLocation);
-  Q_PROPERTY(Location* toLocation READ toLocation WRITE setToLocation);
-
-  void setFromLocation( Location *fromLocation );
+public:
+    RoutePrivate(QObject *parent=0);
+    ~RoutePrivate();
 
-  Location *fromLocation() const;
+    QList<RouteData> parseReply(const QByteArray &reply);
 
-  void setToLocation( Location *toLocation );
+    void setFromLocation(Location *fromLocation);
+    Location *fromLocation() const;
 
-  Location *toLocation() const;
+    void setToLocation(Location *toLocation);
+    Location *toLocation() const;
 
-  bool toValid();
-  bool fromValid();
+    bool toValid();
+    bool fromValid();
 
 private:
-  bool     m_fromValid;
-  bool     m_toValid;
-  Location *m_fromLocation;
-  Location *m_toLocation;
+    bool      m_fromValid;
+    bool      m_toValid;
+    Location *m_fromLocation;
+    Location *m_toLocation;
 
-  QString parseJORECode( const QString &joreCode ) const;
+    QString parseJORECode(const QString &joreCode) const;
 };
 #endif // ROUTE_P_H