PlasmaActivitiesStats
resultset.h
65 // TODO: KF6 rething the function names, and maybe their signature, perhaps leverage std::variant or std::optional to add semantics to the API
66 QString resource() const; ///< String representation of resource (can represent an url or a path)
67 QUrl url() const; ///< Url representation of a resource based on internal resource, readonly, @since 5.64
73 LinkStatus linkStatus() const; ///< Differentiates between linked and non-linked resources in mixed queries
74 QStringList linkedActivities() const; ///< Contains the activities this resource is linked to for the queries that care about resource linking
160 PLASMAACTIVITIESSTATS_EXPORT friend bool operator==(const const_iterator &left, const const_iterator &right);
161 PLASMAACTIVITIESSTATS_EXPORT friend bool operator!=(const const_iterator &left, const const_iterator &right);
163 PLASMAACTIVITIESSTATS_EXPORT friend bool operator<(const const_iterator &left, const const_iterator &right);
164 PLASMAACTIVITIESSTATS_EXPORT friend bool operator>(const const_iterator &left, const const_iterator &right);
166 PLASMAACTIVITIESSTATS_EXPORT friend bool operator<=(const const_iterator &left, const const_iterator &right);
167 PLASMAACTIVITIESSTATS_EXPORT friend bool operator>=(const const_iterator &left, const const_iterator &right);
227bool PLASMAACTIVITIESSTATS_EXPORT operator==(const ResultSet::const_iterator &left, const ResultSet::const_iterator &right);
228bool PLASMAACTIVITIESSTATS_EXPORT operator!=(const ResultSet::const_iterator &left, const ResultSet::const_iterator &right);
230bool PLASMAACTIVITIESSTATS_EXPORT operator<(const ResultSet::const_iterator &left, const ResultSet::const_iterator &right);
231bool PLASMAACTIVITIESSTATS_EXPORT operator>(const ResultSet::const_iterator &left, const ResultSet::const_iterator &right);
233bool PLASMAACTIVITIESSTATS_EXPORT operator<=(const ResultSet::const_iterator &left, const ResultSet::const_iterator &right);
234bool PLASMAACTIVITIESSTATS_EXPORT operator>=(const ResultSet::const_iterator &left, const ResultSet::const_iterator &right);
236ResultSet::const_iterator::difference_type PLASMAACTIVITIESSTATS_EXPORT operator-(const ResultSet::const_iterator &left, const ResultSet::const_iterator &right);
243 << result.score() << (result.title() != result.resource() ? result.title() : QString()) << result.lastUpdate()
The activities system tracks resources (documents, contacts, etc.) that the user has used.
Definition query.h:54
Structure containing data of one of the results.
Definition resultset.h:50
uint lastUpdate() const
Timestamp of the last update.
double score() const
The score calculated based on the usage statistics.
void setResource(QString resource)
Contains the initiating agent for this resource.
QString mimetype() const
Mimetype of the resource, or URL if title is not known.
QUrl url() const
Url representation of a resource based on internal resource, readonly,.
Definition resultset.cpp:104
QString title() const
Title of the resource, or URL if title is not known.
uint firstUpdate() const
Timestamp of the first update.
LinkStatus linkStatus() const
Differentiates between linked and non-linked resources in mixed queries.
QStringList linkedActivities() const
Contains the activities this resource is linked to for the queries that care about resource linking.
QString resource() const
String representation of resource (can represent an url or a path)
const_iterator begin() const
Definition resultset_iterator.cpp:165
QStringView right(qsizetype length) const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Feb 28 2025 12:01:02 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Feb 28 2025 12:01:02 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.