X-Git-Url: https://www.flypig.org.uk/git/?p=harbour-pedalo.git;a=blobdiff_plain;f=src%2Fjourney.cpp;fp=src%2Fjourney.cpp;h=af13ec851c2d6eda4ab89af15424cfd5c110a028;hp=0000000000000000000000000000000000000000;hb=0108947ead4cc9e0ff23fee82db2fb1fd7cb2dad;hpb=ad970e5488e00f84c984a7c0fee09c089d8fe5d1 diff --git a/src/journey.cpp b/src/journey.cpp new file mode 100644 index 0000000..af13ec8 --- /dev/null +++ b/src/journey.cpp @@ -0,0 +1,52 @@ +#include "journey.h" +#include + +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; +} +