KDAV2::DavItem
#include <davitem.h>
Public Types | |
typedef QVector< DavItem > | List |
Public Member Functions | |
DavItem () | |
DavItem (const DavItem &other) | |
DavItem (const DavUrl &url, const QString &contentType, const QByteArray &data, const QString &etag) | |
QString | contentType () const |
QByteArray | data () const |
QString | etag () const |
DavItem & | operator= (const DavItem &other) |
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/3]
DavItem::DavItem | ( | ) |
Creates an empty DAV item.
Definition at line 49 of file davitem.cpp.
◆ DavItem() [2/3]
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 54 of file davitem.cpp.
◆ DavItem() [3/3]
DavItem::DavItem | ( | const DavItem & | other | ) |
Definition at line 63 of file davitem.cpp.
◆ ~DavItem()
DavItem::~DavItem | ( | ) |
Definition at line 75 of file davitem.cpp.
Member Function Documentation
◆ contentType()
QString DavItem::contentType | ( | ) | const |
Returns the content type of the item.
Definition at line 94 of file davitem.cpp.
◆ data()
QByteArray DavItem::data | ( | ) | const |
Returns the raw content data of the item.
Definition at line 104 of file davitem.cpp.
◆ etag()
QString DavItem::etag | ( | ) | const |
Returns the etag of the item.
Definition at line 114 of file davitem.cpp.
◆ operator=()
Definition at line 69 of file davitem.cpp.
◆ setContentType()
void DavItem::setContentType | ( | const QString & | type | ) |
Sets the content type
of the item.
Definition at line 89 of file davitem.cpp.
◆ setData()
void DavItem::setData | ( | const QByteArray & | data | ) |
Sets the raw content data
of the item.
Definition at line 99 of file davitem.cpp.
◆ setEtag()
void DavItem::setEtag | ( | const QString & | etag | ) |
Sets the etag
of the item.
Definition at line 109 of file davitem.cpp.
◆ setUrl()
void DavItem::setUrl | ( | const DavUrl & | url | ) |
Sets the url
that identifies the item.
Definition at line 79 of file davitem.cpp.
◆ url()
DavUrl DavItem::url | ( | ) | const |
Returns the url that identifies the item.
Definition at line 84 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:08:18 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.