PlasmaActivitiesStats

cleaning.h
1/*
2 SPDX-FileCopyrightText: 2015, 2016 Ivan Cukic <ivan.cukic(at)kde.org>
3
4 SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
5*/
6
7#ifndef CLEANING_H
8#define CLEANING_H
9
10#include "query.h"
11#include "terms.h"
12#include <QString>
13
14namespace KActivities
15{
16namespace Stats
17{
18/**
19 * Forget the resource(s) for the specified activity and agent
20 */
21void PLASMAACTIVITIESSTATS_EXPORT forgetResource(Terms::Activity activity, Terms::Agent agent, const QString &resource);
22
23enum PLASMAACTIVITIESSTATS_EXPORT TimeUnit {
24 Hours,
25 Days,
26 Months,
27};
28
29/**
30 * Forget recent stats for the specified activity and time
31 */
32void PLASMAACTIVITIESSTATS_EXPORT forgetRecentStats(Terms::Activity activity, int count, TimeUnit what);
33
34/**
35 * Forget events that are older than the specified number of months
36 */
37void PLASMAACTIVITIESSTATS_EXPORT forgetEarlierStats(Terms::Activity activity, int months);
38
39/**
40 * Forget resources that match the specified query
41 */
42void PLASMAACTIVITIESSTATS_EXPORT forgetResources(const Query &query);
43
44} // namespace Stats
45} // namespace KActivities
46
47#endif // CLEANING_H
The activities system tracks resources (documents, contacts, etc.) that the user has used.
Definition query.h:54
Term to filter the resources according the activity in which they were accessed.
Definition terms.h:139
Term to filter the resources according the agent (application) which accessed it.
Definition terms.h:106
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

KDE's Doxygen guidelines are available online.