10#include "kdav_export.h"
14#include <QSharedDataPointer>
44 typedef QVector<DavItem>
List;
59 DavItem(
const DavUrl &url,
const QString &contentType,
const QByteArray &data,
const QString &etag);
96 Q_REQUIRED_RESULT QByteArray
data()
const;
108 Q_REQUIRED_RESULT QString
etag()
const;
111 QSharedDataPointer<DavItemPrivate> d;
114KDAV_EXPORT QDataStream &operator<<(QDataStream &out,
const DavItem &item);
115KDAV_EXPORT QDataStream &operator>>(QDataStream &in,
DavItem &item);
A helper class to store information about DAV resources.
Definition davitem.h:39
DavUrl url() const
Returns the URL that identifies the item.
QString contentType() const
Returns the content type of the item.
QVector< DavItem > List
Defines a list of DAV item objects.
Definition davitem.h:44
DavItem(const DavUrl &url, const QString &contentType, const QByteArray &data, const QString &etag)
Creates a new DAV item.
QString etag() const
Returns the ETag of the item.
QByteArray data() const
Returns the raw content data of the item.
void setContentType(const QString &type)
Sets the content type of the item.
DavItem()
Creates an empty DAV item.
void setEtag(const QString &etag)
Sets the etag of the item.
void setData(const QByteArray &data)
Sets the raw content data of the item.
void setUrl(const DavUrl &url)
Sets the url that identifies the item.
A helper class to combine URL and protocol of a DAV URL.
Definition davurl.h:27
The KDAV namespace.
Definition davjobbase.h:17