KPublicTransport
locationhistorymodel.cpp
25 return QStandardPaths::writableLocation(dataLoc) + "/org.kde.kpublictransport/location-history/"_L1;
119void LocationHistoryModel::addPresetLocation(const Location &loc, const QDateTime &lastUse, int useCount)
void clearPresetLocations()
Remove all preset locations, only keeping the history locations.
Definition locationhistorymodel.cpp:145
void addPresetLocation(const KPublicTransport::Location &loc, const QDateTime &lastUse, int useCount)
Add a preset location.
Definition locationhistorymodel.cpp:119
void addLocation(const KPublicTransport::Location &loc)
Add a location to the history.
Definition locationhistorymodel.cpp:93
static Location fromJson(const QJsonObject &obj)
Deserialize a Location object from JSON.
Definition location.cpp:559
static QJsonObject toJson(const Location &loc)
Serializes one Location object to JSON.
Definition location.cpp:494
static Location merge(const Location &lhs, const Location &rhs)
Merge two departure instances.
Definition location.cpp:417
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:311
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)
bool isEmpty() const const
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 Sat Dec 21 2024 16:59:57 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 16:59:57 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.