7#ifndef KACTIVITIES_STATS_TERMS_H
8#define KACTIVITIES_STATS_TERMS_H
10#include <initializer_list>
16#include "kactivitiesstats_export.h"
32enum KACTIVITIESSTATS_EXPORT
Order {
54struct KACTIVITIESSTATS_EXPORT
Limit {
66struct KACTIVITIESSTATS_EXPORT
Offset {
76struct KACTIVITIESSTATS_EXPORT
Type {
90 inline Type(std::initializer_list<QString> types)
95 Type(QStringList types);
98 const QStringList values;
107struct KACTIVITIESSTATS_EXPORT
Agent {
123 inline Agent(std::initializer_list<QString> agents)
128 Agent(QStringList agents);
129 Agent(QString agent);
131 const QStringList values;
156 inline Activity(std::initializer_list<QString> activities)
164 const QStringList values;
172struct KACTIVITIESSTATS_EXPORT
Url {
193 inline Url(std::initializer_list<QString> urlPatterns)
194 : values(urlPatterns)
198 Url(QStringList urlPatterns);
199 Url(QString urlPattern);
201 const QStringList values;
209struct KACTIVITIESSTATS_EXPORT
Date {
211 Date(QDate start, QDate end);
214 static Date yesterday();
215 static Date currentWeek();
216 static Date previousWeek();
217 static Date fromString(QString);
227KACTIVITIESSTATS_EXPORT
230KACTIVITIESSTATS_EXPORT
233KACTIVITIESSTATS_EXPORT
236KACTIVITIESSTATS_EXPORT
239KACTIVITIESSTATS_EXPORT
242KACTIVITIESSTATS_EXPORT
245KACTIVITIESSTATS_EXPORT
248KACTIVITIESSTATS_EXPORT
251KACTIVITIESSTATS_EXPORT
Order
Enumerator specifying the ordering in which the results of the query should be listed.
Definition terms.h:32
@ OrderByUrl
Order by uri, alphabetically.
Definition terms.h:36
@ RecentlyCreatedFirst
Recently created resources first.
Definition terms.h:35
@ OrderByTitle
Order by uri, alphabetically.
Definition terms.h:37
@ HighScoredFirst
Resources with the highest scores first.
Definition terms.h:33
@ RecentlyUsedFirst
Recently used resources first.
Definition terms.h:34
Select
Which resources should be returned.
Definition terms.h:43
@ LinkedResources
Resources linked to an activity, or globally.
Definition terms.h:44
@ AllResources
Combined set of accessed and linked resources.
Definition terms.h:46
@ UsedResources
Resources that have been accessed.
Definition terms.h:45
Term to filter the resources according the activity in which they were accessed.
Definition terms.h:140
static Activity global()
Show resources linked to all activities.
static Activity current()
Show resources linked to all activities.
static Activity any()
Show resources accessed in / linked to any activity.
Term to filter the resources according the agent (application) which accessed it.
Definition terms.h:107
static Agent current()
Show resources accessed/linked by the current application.
static Agent global()
Show resources not tied to a specific agent.
static Agent any()
Show resources accessed/linked by any application.
On which start access date do you want to filter ?
Definition terms.h:209
How many items do you need?
Definition terms.h:54
How many items to skip? This can be specified only if limit is also set to a finite value.
Definition terms.h:66
Term to filter the resources according to their types.
Definition terms.h:76
static Type files()
Show non-directory resources.
static Type directories()
Show directory resources aka folders.
static Type any()
Show resources of any type.
Url filtering.
Definition terms.h:172
static Url file()
Show local files, smb, fish, ftp and sftp.
static Url startsWith(const QString &prefix)
Show only resources that start with the specified prefix.
static Url localFile()
Show local files.
static Url contains(const QString &infix)
Show resources that contain the specified infix.