6 class Status
: public QObject
10 explicit Status(QObject
*parent
= nullptr);
11 Q_PROPERTY(bool cycling READ getCycling WRITE setCycling NOTIFY cyclingChanged
)
12 Q_PROPERTY(quint64 startTime READ getStartTime WRITE setStartTime NOTIFY startTimeChanged
)
14 bool getCycling() const;
15 quint64
getStartTime() const;
16 Q_INVOKABLE
void startJourney();
17 Q_INVOKABLE quint64
getDuration() const;
20 void cyclingChanged(bool cycling
);
21 void startTimeChanged(quint64 startTime
);
24 void setCycling(bool value
);
25 void setStartTime(quint64 value
);