Go to file
luzhiping 4783f50ef2 update info 2022-08-22 16:45:24 +08:00
LICENSES Import Upstream version 5.92.0 2022-05-16 16:00:12 +08:00
autotests Import Upstream version 5.92.0 2022-05-16 16:00:12 +08:00
debian update info 2022-08-22 16:45:24 +08:00
src Import Upstream version 5.92.0 2022-05-16 16:00:12 +08:00
tests Import Upstream version 5.92.0 2022-05-16 16:00:12 +08:00
.git-blame-ignore-revs Import Upstream version 5.92.0 2022-05-16 16:00:12 +08:00
.gitignore Import Upstream version 5.92.0 2022-05-16 16:00:12 +08:00
.gitlab-ci.yml Import Upstream version 5.92.0 2022-05-16 16:00:12 +08:00
.kde-ci.yml Import Upstream version 5.92.0 2022-05-16 16:00:12 +08:00
.vim-template:cpp Import Upstream version 5.92.0 2022-05-16 16:00:12 +08:00
.vim-template:h Import Upstream version 5.92.0 2022-05-16 16:00:12 +08:00
CMakeLists.txt Import Upstream version 5.92.0 2022-05-16 16:00:12 +08:00
KF5ActivitiesStatsConfig.cmake.in Import Upstream version 5.92.0 2022-05-16 16:00:12 +08:00
MAINTAINER Import Upstream version 5.92.0 2022-05-16 16:00:12 +08:00
README.developers Import Upstream version 5.92.0 2022-05-16 16:00:12 +08:00
README.md Import Upstream version 5.92.0 2022-05-16 16:00:12 +08:00
TODO Import Upstream version 5.92.0 2022-05-16 16:00:12 +08:00
logo.png Import Upstream version 5.92.0 2022-05-16 16:00:12 +08:00
metainfo.yaml Import Upstream version 5.92.0 2022-05-16 16:00:12 +08:00
vim-extrarc Import Upstream version 5.92.0 2022-05-16 16:00:12 +08:00

README.md

KActivitiesStats

Library to access the usage statistics data collected by the KDE activity manager.

Introduction

The KActivitiesStats library provides a querying mechanism for the data that the activity manager collects - which documents hae been opened by which applications, and what documents have been linked to which activity. The activity manager also keeps the score for each document which gets higher when a particular document has been often accessed or kept open for longer periods of time. This score is also available through the querying mechanism.

Usage

The library provides the following important classes:

  • KActivities::Stats::ResultSet is a low level class that provides a forward iterator to the list of results that match the specified query
  • KActivities::Stats::ResultWatcher provides signals when a new resource that matches a query arrives, or when an existing one is gone (usage statistics cleared or some for other reason)
  • KActivities::Stats::ResultModel provides a Qt data model that shows the resources that match the specified query. This model should be subclassed to teach it to handle the different resource types that you want to show as the results.

Queries are defined by the KActivities::Stats::Query class using a simple range-like syntax.