• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..03-May-2022-

LICENSES/H03-May-2022-

autotests/H03-May-2022-2,1801,567

src/H03-May-2022-5,1363,361

tests/model/H03-May-2022-1,030871

.git-blame-ignore-revsH A D04-Dec-2021142 54

.gitignoreH A D04-Dec-2021254 2524

.gitlab-ci.ymlH A D04-Dec-2021284 75

.kde-ci.ymlH A D04-Dec-2021182 97

.vim-template:cppH A D04-Dec-2021272 1710

.vim-template:hH A D04-Dec-2021357 2012

KF5ActivitiesStatsConfig.cmake.inH A D04-Dec-2021203 85

MAINTAINERH A D04-Dec-202177 41

README.developersH A D04-Dec-2021794 3017

README.mdH A D04-Dec-20211.3 KiB3021

TODOH A D04-Dec-2021891 2620

metainfo.yamlH A D04-Dec-2021486 2119

vim-extrarcH A D04-Dec-2021395 137

README.developers

1
2# Commit policy
3
4Every non-trivial patch must go through the review before it goes into the
5master branch.
6
7    https://phabricator.kde.org/
8        project:    KActivities
9
10If you don't have an account for identity.kde.org, you can send smaller
11patches to the plasma-devel@kde.org mailing list, or (please don't) directly
12to the repository maintainer (see MAINTAINER file).
13
14
15# Code policy
16
17The code needs to follow KDElibs coding style. You can find more information
18about the style here:
19
20    http://techbase.kde.org/Policies/Kdelibs_Coding_Style
21
22Macros in CMakeLists.txt should be lowercase throughout the project,
23and indentation should be 3, with the closing parenthesis in the same level
24as the content.
25
26Check out the KF5 policies:
27
28    https://community.kde.org/Frameworks/Policies
29
30

README.md

1# KActivitiesStats
2
3Library to access the usage statistics data collected by the KDE activity manager.
4
5## Introduction
6
7The KActivitiesStats library provides a querying mechanism for the data
8that the activity manager collects - which documents hae been opened by
9which applications, and what documents have been linked to which activity.
10The activity manager also keeps the score for each document which gets
11higher when a particular document has been often accessed or kept open
12for longer periods of time. This score is also available through the
13querying mechanism.
14
15## Usage
16
17The library provides the following important classes:
18
19- `KActivities::Stats::ResultSet` is a low level class that provides a forward iterator to the
20  list of results that match the specified query
21- `KActivities::Stats::ResultWatcher` provides signals when a new resource that matches a query
22  arrives, or when an existing one is gone (usage statistics cleared or some
23  for other reason)
24- `KActivities::Stats::ResultModel` provides a Qt data model that shows the resources that
25  match the specified query. This model should be subclassed to teach it
26  to handle the different resource types that you want to show as the results.
27
28Queries are defined by the `KActivities::Stats::Query` class using a simple range-like syntax.
29
30