calendarsupport
#include <incidencesearchjob.h>
Inherits ItemSearchJob.
Public Types | |
enum | Criterion { IncidenceUid } |
enum | Match { ExactMatch, StartsWithMatch, ContainsMatch } |
Public Member Functions | |
IncidenceSearchJob (QObject *parent=0) | |
~IncidenceSearchJob () | |
KCalCore::Incidence::List | incidences () const |
void | setLimit (int limit) |
void | setQuery (Criterion criterion, const QString &value, Match match) |
Detailed Description
Job that searches for calendar incidences in the Akonadi storage.
This job searches for calendar incidences (events, to-dos and journals) that match given search criteria and return the list of incidences.
Examples:
- Since
- 4.6
Definition at line 85 of file incidencesearchjob.h.
Member Enumeration Documentation
Describes the criteria that can be searched for.
Enumerator | |
---|---|
IncidenceUid |
The global unique identifier of the incidence.
|
Definition at line 105 of file incidencesearchjob.h.
Describes the type of pattern matching that shall be used.
- Since
- 4.6
Definition at line 114 of file incidencesearchjob.h.
Constructor & Destructor Documentation
|
explicit |
Creates a new incidence search job.
- Parameters
-
parent The parent object.
Definition at line 36 of file incidencesearchjob.cpp.
IncidenceSearchJob::~IncidenceSearchJob | ( | ) |
Destroys the incidence search job.
Definition at line 67 of file incidencesearchjob.cpp.
Member Function Documentation
KCalCore::Incidence::List IncidenceSearchJob::incidences | ( | ) | const |
Returns the incidences that matched the search criteria.
Definition at line 190 of file incidencesearchjob.cpp.
void IncidenceSearchJob::setLimit | ( | int | limit | ) |
Sets a limit
on how many results will be returned by this search job.
This is useful in situation where for example only the first search result is needed anyway, setting a limit of 1 here will greatly reduce the resource usage of Nepomuk during the search.
This needs to be called before calling setQuery() to have an effect. By default, the number of results is unlimited.
Definition at line 185 of file incidencesearchjob.cpp.
Sets the criterion
and value
for the search with match
.
- Since
- 4.6
Definition at line 72 of file incidencesearchjob.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:54:59 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.