Flesh out UI, provide journey data model
[harbour-pedalo.git] / src / journey.cpp
diff --git a/src/journey.cpp b/src/journey.cpp
new file mode 100644 (file)
index 0000000..af13ec8
--- /dev/null
@@ -0,0 +1,52 @@
+#include "journey.h"
+#include <QDebug>
+
+Journey::Journey() :
+    start(0u),
+    duration(0u),
+    overtook(0u),
+    overtakenby(0u)
+{
+}
+
+Journey::Journey(quint64 start, quint32 duration, quint32 overtook, quint32 overtakenby) :
+    start(start),
+    duration(duration),
+    overtook(overtook),
+    overtakenby(overtakenby)
+{
+}
+
+quint64 Journey::getStart () const {
+    return start;
+}
+
+qint32 Journey::getDuration () const {
+    return duration;
+}
+
+qint32 Journey::getOvertook () const {
+    return overtook;
+}
+
+qint32 Journey::getOvertakenBy () const {
+    return overtakenby;
+}
+
+
+void Journey::setStart (const quint64 value) {
+    start = value;
+}
+
+void Journey::setDuration (qint32 value) {
+    duration = value;
+}
+
+void Journey::setOvertook (qint32 value) {
+    overtook = value;
+}
+
+void Journey::setOvertakenBy (qint32 value) {
+    overtakenby = value;
+}
+