11 friend class JourneyTimeDescending
;
12 friend class JourneyTimeAscending
;
15 Journey(quint64 start
, quint32 duration
, quint32 overtook
, quint32 overtakenby
);
17 quint64
getStart () const;
18 QDate
getStartDate() const;
19 QTime
getStartTime() const;
20 QTime
getEndTime() const;
21 qint32
getDuration () const;
22 qint32
getOvertook () const;
23 qint32
getOvertakenBy () const;
25 void setStart (const quint64 value
);
26 void setStartDate (const QDate
&value
);
27 void setStartTime (const QTime
&value
);
28 void setEndTime(const QTime
&value
);
29 void setDuration (qint32 value
);
30 void setOvertook (qint32 value
);
31 void setOvertakenBy (qint32 value
);
40 class JourneyTimeAscending
: std::binary_function
<Journey
,Journey
, bool> {
42 bool operator() (Journey
const &lhs
, Journey
const &rhs
) const {
43 return lhs
.start
< rhs
.start
;
47 class JourneyTimeDescending
: std::binary_function
<Journey
,Journey
, bool> {
49 bool operator() (Journey
const &lhs
, Journey
const &rhs
) const {
50 return lhs
.start
> rhs
.start
;