Add journey model and list
[harbour-pedalo.git] / src / journey.h
index 45393b3..560937e 100644 (file)
@@ -3,6 +3,7 @@
 
 #include <QObject>
 #include <QTime>
+#include <QDate>
 
 class Journey
 {
@@ -11,11 +12,17 @@ public:
     Journey(quint64 start, quint32 duration, quint32 overtook, quint32 overtakenby);
 
     quint64 getStart () const;
+    QDate getStartDate() const;
+    QTime getStartTime() const;
+    QTime getEndTime() const;
     qint32 getDuration () const;
     qint32 getOvertook () const;
     qint32 getOvertakenBy () const;
 
     void setStart (const quint64 value);
+    void setStartDate (const QDate &value);
+    void setStartTime (const QTime &value);
+    void setEndTime(const QTime &value);
     void setDuration (qint32 value);
     void setOvertook (qint32 value);
     void setOvertakenBy (qint32 value);
@@ -27,5 +34,4 @@ private:
     quint32 overtakenby;
 };
 
-
 #endif // JOURNEY_H