KDAV::DavItem
#include <KDAV/DavItem>
Public Types | |
typedef QList< DavItem > | List |
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 |
DavItem & | operator= (const DavItem &other) |
DavItem & | operator= (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.
Member Typedef Documentation
◆ List
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
-
url The URL that identifies the item. contentType The content type of the item. data The actual raw content data of the item. etag The 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.
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.
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:
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:13:08 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.