KDAV 5.109.0
Public Member Functions | List of all members
KDAV::DavItemModifyJob

A job that modifies a DAV item on the DAV server. More...

#include <KDAV/DavItemModifyJob>

Public Member Functions

 DavItemModifyJob (const DavItem &item, QObject *parent=nullptr)
 Creates a new DAV item modify job.
 
DavItem freshItem () const
 Returns the item that triggered the conflict, if any.
 
int freshResponseCode () const
 Returns the response code we got when fetching the fresh item.
 
DavItem item () const
 Returns the modified item including the updated ETag information.
 
QUrl itemUrl () const
 
void start () override
 Starts the job.
 
- Public Member Functions inherited from KDAV::DavJobBase
 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

- Protected Member Functions inherited from KDAV::DavJobBase
 DavJobBase (DavJobBasePrivate *dd, QObject *parent=nullptr)
 
- Protected Attributes inherited from KDAV::DavJobBase
std::unique_ptr< DavJobBasePrivate > d_ptr
 

Detailed Description

A job that modifies a DAV item on the DAV server.

Constructor & Destructor Documentation

◆ DavItemModifyJob()

KDAV::DavItemModifyJob::DavItemModifyJob ( const DavItem item,
QObject *  parent = nullptr 
)
explicit

Creates a new DAV item modify job.

Parameters
itemThe item that shall be modified.
parentThe parent object.

Member Function Documentation

◆ freshItem()

DavItem KDAV::DavItemModifyJob::freshItem ( ) const

Returns the item that triggered the conflict, if any.

◆ freshResponseCode()

int KDAV::DavItemModifyJob::freshResponseCode ( ) const

Returns the response code we got when fetching the fresh item.

◆ item()

DavItem KDAV::DavItemModifyJob::item ( ) const

Returns the modified item including the updated ETag information.

◆ start()

void KDAV::DavItemModifyJob::start ( )
override

Starts the job.