KDAV 5.109.0
|
A job that modifies a DAV collection. More...
#include <KDAV/DavCollectionModifyJob>
Public Member Functions | |
DavCollectionModifyJob (const DavUrl &url, QObject *parent=nullptr) | |
Creates a new DAV collection modify job. | |
void | removeProperty (const QString &property, const QString &ns) |
Sets the property that shall be removed by the job. | |
void | setProperty (const QString &property, const QString &value, const QString &ns=QString()) |
Sets the property that shall be modified by the job. | |
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 modifies a DAV collection.
This job is used to modify a property of a DAV collection on the DAV server.
|
explicit |
Creates a new DAV collection modify job.
url | The DAV URL that identifies the collection. |
parent | The parent object. |
void KDAV::DavCollectionModifyJob::removeProperty | ( | const QString & | property, |
const QString & | ns | ||
) |
Sets the property that shall be removed by the job.
property | The name of the property. |
ns | The XML namespace that shall be used for the property name. |
void KDAV::DavCollectionModifyJob::setProperty | ( | const QString & | property, |
const QString & | value, | ||
const QString & | ns = QString() |
||
) |
Sets the property that shall be modified by the job.
property | The name of the property. |
value | The value of the property. |
ns | The XML namespace that shall be used for the property name. |
|
override |
Starts the job.