KActivitiesStats 5.109.0
|
Structure containing data of one of the results. More...
#include <resultset.h>
Public Types | |
enum | LinkStatus { NotLinked = 0 , Unknown = 1 , Linked = 2 } |
Public Member Functions | |
Result (const Result &result) | |
Result (Result &&result) | |
uint | firstUpdate () const |
Timestamp of the first update. | |
uint | lastUpdate () const |
Timestamp of the last update. | |
QStringList | linkedActivities () const |
Contains the activities this resource is linked to for the queries that care about resource linking. | |
LinkStatus | linkStatus () const |
Differentiates between linked and non-linked resources in mixed queries. | |
QString | mimetype () const |
Mimetype of the resource, or URL if title is not known. | |
Result & | operator= (Result result) |
QString | resource () const |
String representation of resource (can represent an url or a path) | |
double | score () const |
The score calculated based on the usage statistics. | |
void | setFirstUpdate (uint firstUpdate) |
void | setLastUpdate (uint lastUpdate) |
void | setLinkedActivities (QStringList activities) |
void | setLinkStatus (LinkStatus linkedStatus) |
void | setMimetype (QString mimetype) |
void | setResource (QString resource) |
void | setScore (double score) |
void | setTitle (QString title) |
QString | title () const |
Title of the resource, or URL if title is not known. | |
QUrl | url () const |
Url representation of a resource based on internal resource, readonly,. | |
Structure containing data of one of the results.
uint KActivities::Stats::ResultSet::Result::firstUpdate | ( | ) | const |
Timestamp of the first update.
uint KActivities::Stats::ResultSet::Result::lastUpdate | ( | ) | const |
Timestamp of the last update.
QStringList KActivities::Stats::ResultSet::Result::linkedActivities | ( | ) | const |
Contains the activities this resource is linked to for the queries that care about resource linking.
LinkStatus KActivities::Stats::ResultSet::Result::linkStatus | ( | ) | const |
Differentiates between linked and non-linked resources in mixed queries.
QString KActivities::Stats::ResultSet::Result::mimetype | ( | ) | const |
Mimetype of the resource, or URL if title is not known.
QString KActivities::Stats::ResultSet::Result::resource | ( | ) | const |
String representation of resource (can represent an url or a path)
double KActivities::Stats::ResultSet::Result::score | ( | ) | const |
The score calculated based on the usage statistics.
QString KActivities::Stats::ResultSet::Result::title | ( | ) | const |
Title of the resource, or URL if title is not known.
QUrl KActivities::Stats::ResultSet::Result::url | ( | ) | const |
Url representation of a resource based on internal resource, readonly,.