KDAV 5.109.0
|
A job that search a DAV principal on a server. More...
#include <KDAV/DavPrincipalSearchJob>
Classes | |
struct | Result |
Simple struct to hold the search job results. More... | |
Public Types | |
enum | FilterType { DisplayName , EmailAddress } |
Types of search that are supported by this job. More... | |
Public Member Functions | |
DavPrincipalSearchJob (const DavUrl &url, FilterType type, const QString &filter, QObject *parent=nullptr) | |
Creates a new DAV principal search job. | |
DavUrl | davUrl () const |
Return the DavUrl used by this job. | |
void | fetchProperty (const QString &name, const QString &ns=QString()) |
Add a new property to fetch from the server. | |
QVector< Result > | results () const |
Get the job results. | |
void | start () override |
Starts the job. | |
![]() | |
DavJobBase (QObject *parent=nullptr) | |
bool | canRetryLater () const |
Check if the job can be retried later. | |
Error | davError () const |
Returns a instance of the KDAV:Error to be able to translate the error. | |
bool | hasConflict () const |
Check if the job failed because of a conflict. | |
int | latestResponseCode () const |
Get the latest response code. | |
Additional Inherited Members | |
![]() | |
DavJobBase (DavJobBasePrivate *dd, QObject *parent=nullptr) | |
![]() | |
std::unique_ptr< DavJobBasePrivate > | d_ptr |
A job that search a DAV principal on a server.
This job is used to search a principal on a server that implement the dav-property-search REPORT (RFC3744).
The properties to fetch are set with fetchProperty().
Types of search that are supported by this job.
DisplayName will match on the DAV displayname property. EmailAddress will match on the CalDav calendar-user-address-set property.
|
explicit |
Creates a new DAV principal search job.
url | The URL to use in the REPORT query. |
type | The type that the filter will match. |
filter | The filter that will be used to match the displayname attribute. |
parent | The parent object. |
void KDAV::DavPrincipalSearchJob::fetchProperty | ( | const QString & | name, |
const QString & | ns = QString() |
||
) |
Add a new property to fetch from the server.
name | The name of the property. |
ns | The namespace of this property, defaults to 'DAV:'. |
QVector< Result > KDAV::DavPrincipalSearchJob::results | ( | ) | const |
Get the job results.
|
override |
Starts the job.