28 DavItemPrivate(
DavItem *qPtr) : q(qPtr) {}
30 void fillFrom(
const DavItemPrivate &other);
40void DavItemPrivate::fillFrom(
const DavItemPrivate& other)
43 mContentType = other.mContentType;
50 : d(std::unique_ptr<DavItemPrivate>(new DavItemPrivate(this)))
55 : d(std::unique_ptr<DavItemPrivate>(new DavItemPrivate(this)))
64 : d(std::unique_ptr<DavItemPrivate>(new DavItemPrivate(this)))
66 d->fillFrom(*other.d.get());
71 d->fillFrom(*other.d.get());
96 return d->mContentType;
121 stream << item.
url();
123 stream << item.
data();
124 stream << item.
etag();
136 stream >> contentType;
140 item =
DavItem(url, contentType, data, etag);
A helper class to store information about DAV resources.
QString contentType() const
Returns the content type of the item.
DavUrl url() const
Returns the url that identifies the item.
void setEtag(const QString &etag)
Sets the etag of the item.
QByteArray data() const
Returns the raw content data of the item.
DavItem()
Creates an empty DAV item.
void setUrl(const DavUrl &url)
Sets the url that identifies the item.
void setData(const QByteArray &data)
Sets the raw content data of the item.
QString etag() const
Returns the etag of the item.
void setContentType(const QString &type)
Sets the content type of the item.
A helper class to combine url and protocol of a DAV url.
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 4 2024 16:32:58 by
doxygen 1.12.0 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.