KActivitiesStats 5.109.0
|
Class that can query the KActivities usage tracking mechanism for resources. More...
#include <KActivities/Stats/ResultSet>
Classes | |
class | Result |
Structure containing data of one of the results. More... | |
Public Types | |
typedef Result | value_type |
ResultSet is a container. | |
Public Member Functions | |
ResultSet (const ResultSet &source) | |
ResultSet (Query query) | |
Creates the ResultSet from the specified query. | |
ResultSet (ResultSet &&source) | |
Result | at (int index) const |
const_iterator | begin () const |
const_iterator | cbegin () const |
Alias for begin. | |
const_iterator | cend () const |
Alias for end. | |
const_iterator | constBegin () const |
Alias for begin. | |
const_iterator | constEnd () const |
Alias for end. | |
const_iterator | end () const |
ResultSet & | operator= (ResultSet source) |
Class that can query the KActivities usage tracking mechanism for resources.
Note: It is important to note that you should not create long-living instances of ResultSet. It might lock the database and break proper updating mechanisms. If you want a list of results that automatically get updated, use ResultModel.
ResultSet is meant to be used when you just need to fetch a few results like this:
ResultSet is a container.
This notifies the generic algorithms from STL and others of the contained type.
KActivities::Stats::ResultSet::ResultSet | ( | Query | query | ) |
Creates the ResultSet from the specified query.
Result KActivities::Stats::ResultSet::at | ( | int | index | ) | const |
index | of the result |
const_iterator KActivities::Stats::ResultSet::begin | ( | ) | const |
|
inline |
Alias for begin.
|
inline |
Alias for end.
|
inline |
Alias for begin.
|
inline |
Alias for end.
const_iterator KActivities::Stats::ResultSet::end | ( | ) | const |