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

A job to delete a DAV item on the DAV server. More...

#include <KDAV/DavItemDeleteJob>

Public Member Functions

 DavItemDeleteJob (const DavItem &item, QObject *parent=nullptr)
 Creates a new DAV item delete 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.
 
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 to delete a DAV item on the DAV server.

Constructor & Destructor Documentation

◆ DavItemDeleteJob()

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

Creates a new DAV item delete job.

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

Member Function Documentation

◆ freshItem()

DavItem KDAV::DavItemDeleteJob::freshItem ( ) const

Returns the item that triggered the conflict, if any.

◆ freshResponseCode()

int KDAV::DavItemDeleteJob::freshResponseCode ( ) const

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

◆ start()

void KDAV::DavItemDeleteJob::start ( )
override

Starts the job.