KDAV::DavItem

Search for usage in LXR

KDAV::DavItem Class Reference

#include <KDAV/DavItem>

Public Types

typedef QList< DavItemList
 

Public Member Functions

 DavItem ()
 
 DavItem (const DavItem &other)
 
 DavItem (const DavUrl &url, const QString &contentType, const QByteArray &data, const QString &etag)
 
 DavItem (DavItem &&)
 
QString contentType () const
 
QByteArray data () const
 
QString etag () const
 
DavItemoperator= (const DavItem &other)
 
DavItemoperator= (DavItem &&)
 
void setContentType (const QString &type)
 
void setData (const QByteArray &data)
 
void setEtag (const QString &etag)
 
void setUrl (const DavUrl &url)
 
DavUrl url () const
 

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.

Definition at line 38 of file davitem.h.

Member Typedef Documentation

◆ List

Defines a list of DAV item objects.

Definition at line 44 of file davitem.h.

Constructor & Destructor Documentation

◆ DavItem() [1/2]

DavItem::DavItem ( )

Creates an empty DAV item.

Definition at line 22 of file davitem.cpp.

◆ DavItem() [2/2]

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.

Definition at line 27 of file davitem.cpp.

Member Function Documentation

◆ contentType()

QString DavItem::contentType ( ) const

Returns the content type of the item.

Definition at line 57 of file davitem.cpp.

◆ data()

QByteArray DavItem::data ( ) const

Returns the raw content data of the item.

Definition at line 67 of file davitem.cpp.

◆ etag()

QString DavItem::etag ( ) const

Returns the ETag of the item.

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

Definition at line 77 of file davitem.cpp.

◆ setContentType()

void DavItem::setContentType ( const QString & type)

Sets the content type of the item.

Definition at line 52 of file davitem.cpp.

◆ setData()

void DavItem::setData ( const QByteArray & data)

Sets the raw content data of the item.

Definition at line 62 of file davitem.cpp.

◆ setEtag()

void DavItem::setEtag ( const QString & etag)

Sets the etag of the item.

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

Definition at line 72 of file davitem.cpp.

◆ setUrl()

void DavItem::setUrl ( const DavUrl & url)

Sets the url that identifies the item.

Definition at line 42 of file davitem.cpp.

◆ url()

DavUrl DavItem::url ( ) const

Returns the URL that identifies the item.

Definition at line 47 of file davitem.cpp.


The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Tue Mar 26 2024 11:16:34 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.