KDAV 5.109.0
|
A helper class to store information about DAV resources. More...
#include <KDAV/DavItem>
Public Types | |
typedef QVector< DavItem > | List |
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. | |
DavItem & | operator= (const DavItem &other) |
DavItem & | operator= (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. | |
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.
typedef QVector<DavItem> KDAV::DavItem::List |
Defines a list of DAV item objects.
KDAV::DavItem::DavItem | ( | ) |
Creates an empty DAV item.
KDAV::DavItem::DavItem | ( | const DavUrl & | url, |
const QString & | contentType, | ||
const QByteArray & | data, | ||
const QString & | etag | ||
) |
Creates a new DAV item.
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. |
QString KDAV::DavItem::contentType | ( | ) | const |
Returns the content type of the item.
QByteArray KDAV::DavItem::data | ( | ) | const |
Returns the raw content data of the item.
QString KDAV::DavItem::etag | ( | ) | const |
Returns the ETag of the item.
void KDAV::DavItem::setContentType | ( | const QString & | type | ) |
Sets the content type
of the item.
void KDAV::DavItem::setData | ( | const QByteArray & | data | ) |
Sets the raw content data
of the item.
void KDAV::DavItem::setEtag | ( | const QString & | etag | ) |
Sets the etag
of the item.
void KDAV::DavItem::setUrl | ( | const DavUrl & | url | ) |
Sets the url
that identifies the item.
DavUrl KDAV::DavItem::url | ( | ) | const |
Returns the URL that identifies the item.