KDAV 5.109.0
Public Types | Public Member Functions | List of all members
KDAV::DavItem

A helper class to store information about DAV resources. More...

#include <KDAV/DavItem>

Public Types

typedef QVector< DavItemList
 Defines a list of DAV item objects.
 

Public Member Functions

 DavItem ()
 Creates an empty DAV item.
 
 DavItem (const DavItem &other)
 
 DavItem (const DavUrl &url, const QString &contentType, const QByteArray &data, const QString &etag)
 Creates a new DAV item.
 
 DavItem (DavItem &&)
 
QString contentType () const
 Returns the content type of the item.
 
QByteArray data () const
 Returns the raw content data of the item.
 
QString etag () const
 Returns the ETag of the item.
 
DavItemoperator= (const DavItem &other)
 
DavItemoperator= (DavItem &&)
 
void setContentType (const QString &type)
 Sets the content type of the item.
 
void setData (const QByteArray &data)
 Sets the raw content data of the item.
 
void setEtag (const QString &etag)
 Sets the etag of the item.
 
void setUrl (const DavUrl &url)
 Sets the url that identifies the item.
 
DavUrl url () const
 Returns the URL that identifies the item.
 

Detailed Description

A helper class to store information about DAV resources.

This class is used as container to transfer information about DAV resources between the Akonadi resource and the DAV jobs.

Note
While the DAV RFC names them DAV resource we call them items to comply to Akonadi terminology.

Member Typedef Documentation

◆ List

typedef QVector<DavItem> KDAV::DavItem::List

Defines a list of DAV item objects.

Constructor & Destructor Documentation

◆ DavItem() [1/2]

KDAV::DavItem::DavItem ( )

Creates an empty DAV item.

◆ DavItem() [2/2]

KDAV::DavItem::DavItem ( const DavUrl url,
const QString &  contentType,
const QByteArray &  data,
const QString &  etag 
)

Creates a new DAV item.

Parameters
urlThe URL that identifies the item.
contentTypeThe content type of the item.
dataThe actual raw content data of the item.
etagThe ETag of the item.

Member Function Documentation

◆ contentType()

QString KDAV::DavItem::contentType ( ) const

Returns the content type of the item.

◆ data()

QByteArray KDAV::DavItem::data ( ) const

Returns the raw content data of the item.

◆ etag()

QString KDAV::DavItem::etag ( ) const

Returns the ETag of the item.

See also
https://tools.ietf.org/html/rfc4918#section-8.6

◆ setContentType()

void KDAV::DavItem::setContentType ( const QString &  type)

Sets the content type of the item.

◆ setData()

void KDAV::DavItem::setData ( const QByteArray &  data)

Sets the raw content data of the item.

◆ setEtag()

void KDAV::DavItem::setEtag ( const QString &  etag)

Sets the etag of the item.

See also
https://tools.ietf.org/html/rfc4918#section-8.6

◆ setUrl()

void KDAV::DavItem::setUrl ( const DavUrl url)

Sets the url that identifies the item.

◆ url()

DavUrl KDAV::DavItem::url ( ) const

Returns the URL that identifies the item.