Add journey model and list
[harbour-pedalo.git] / src / journey.h
1 #ifndef JOURNEY_H
2 #define JOURNEY_H
3
4 #include <QObject>
5 #include <QTime>
6 #include <QDate>
7
8 class Journey
9 {
10 public:
11 Journey();
12 Journey(quint64 start, quint32 duration, quint32 overtook, quint32 overtakenby);
13
14 quint64 getStart () const;
15 QDate getStartDate() const;
16 QTime getStartTime() const;
17 QTime getEndTime() const;
18 qint32 getDuration () const;
19 qint32 getOvertook () const;
20 qint32 getOvertakenBy () const;
21
22 void setStart (const quint64 value);
23 void setStartDate (const QDate &value);
24 void setStartTime (const QTime &value);
25 void setEndTime(const QTime &value);
26 void setDuration (qint32 value);
27 void setOvertook (qint32 value);
28 void setOvertakenBy (qint32 value);
29
30 private:
31 quint64 start;
32 quint32 duration;
33 quint32 overtook;
34 quint32 overtakenby;
35 };
36
37 #endif // JOURNEY_H