KPublicTransport
locationhistorymodel.cpp
24 return QStandardPaths::writableLocation(dataLoc) + QLatin1String("/org.kde.kpublictransport/location-history/");
142 data.lastUse = QDateTime::fromString(obj.value(QLatin1String("lastUse")).toString(), Qt::ISODate);
void addLocation(const KPublicTransport::Location &loc)
Add a location to the history.
Definition locationhistorymodel.cpp:90
static Location fromJson(const QJsonObject &obj)
Deserialize a Location object from JSON.
Definition location.cpp:550
static QJsonObject toJson(const Location &loc)
Serializes one Location object to JSON.
Definition location.cpp:488
static Location merge(const Location &lhs, const Location &rhs)
Merge two departure instances.
Definition location.cpp:411
static bool isSame(const Location &lhs, const Location &rhs)
Checks if to instances refer to the same location (which does not necessarily mean they are exactly e...
Definition location.cpp:305
QString path(const QString &relativePath)
Query operations and data types for accessing realtime public transport information from online servi...
Definition attribution.cpp:16
void beginInsertRows(const QModelIndex &parent, int first, int last)
void beginRemoveRows(const QModelIndex &parent, int first, int last)
void beginResetModel()
bool checkIndex(const QModelIndex &index, CheckIndexOptions options) const const
void dataChanged(const QModelIndex &topLeft, const QModelIndex &bottomRight, const QList< int > &roles)
void endInsertRows()
void endRemoveRows()
void endResetModel()
bool removeRow(int row, const QModelIndex &parent)
virtual QHash< int, QByteArray > roleNames() const const
virtual QModelIndex index(int row, int column, const QModelIndex &parent) const const override
QDateTime currentDateTime()
QDateTime fromString(QStringView string, QStringView format, QCalendar cal)
QString toString(QStringView format, QCalendar cal) const const
Files
bool mkpath(const QString &dirPath) const const
bool hasNext() const const
bool remove()
ReadOnly
Compact
QJsonDocument fromJson(const QByteArray &json, QJsonParseError *error)
iterator insert(QLatin1StringView key, const QJsonValue &value)
int row() const const
Q_EMITQ_EMIT
QObject * parent() const const
AppDataLocation
QString writableLocation(StandardLocation type)
ISODate
WithoutBraces
QUuid createUuid()
QString toString(StringFormat mode) const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Oct 11 2024 12:12:54 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Oct 11 2024 12:12:54 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.