Bump version to 0.2.2
[harbour-pedalo.git] / src / journeymodel.h
index 910821c..639c6d4 100644 (file)
@@ -15,7 +15,7 @@ public:
         StartRole = Qt::UserRole + 1,
         DurationRole,
         OvertookRole,
-        OvertakenByRole
+        OvertakenByRole,
     };
 
     QHash<int, QByteArray> roleNames() const;
@@ -39,6 +39,10 @@ public:
     Q_INVOKABLE static QDate epochToDate(quint64 epoch);
     Q_INVOKABLE static QTime epochToTime(quint64 epoch);
     Q_INVOKABLE static QDateTime epochToDateTime(quint64 epoch);
+
+    QList<Journey> const & getData() const;
+
+    void sort(int column, Qt::SortOrder order);
 signals:
     // General signals
     void journeysChanged();