Libkdav2
davitemmodifyjob.cpp
35 auto job = DavManager::self()->createModifyJob(mItem.data(), itemUrl(), mItem.contentType().toUtf8(), mItem.etag().toUtf8());
QVariant location(const QVariant &res)
DavItem item() const
Returns the modified item including the updated etag information.
Definition: davitemmodifyjob.cpp:39
void result(KJob *job)
static DavManager * self()
Returns the global instance of the DAV manager.
Definition: davmanager.cpp:52
void setUserInfo(const QString &userInfo, QUrl::ParsingMode mode)
QString url(QUrl::FormattingOptions options) const const
Protocol protocol() const
Returns the DAV protocol dialect that is used to retrieve the DAV object.
Definition: davurl.cpp:51
TolerantMode
QMetaObject::Connection connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
DavItem item() const
Returns the fetched item including current etag information.
Definition: davitemfetchjob.cpp:38
DavItem freshItem() const
Returns the item that triggered the conflict, if any.
Definition: davitemmodifyjob.cpp:44
unsigned int latestHttpStatusCode() const
Get the latest http status code.
Definition: davjobbase.cpp:39
int freshResponseCode() const
Returns the http response code we got when fetching the fresh item.
Definition: davitemmodifyjob.cpp:49
QByteArray toUtf8() const const
void setErrorFromJob(DavJob *, ErrorNumber jobErrorCode=ERR_PROBLEM_WITH_REQUEST)
Set the error of this job from a failed DavJob (executed by this job).
Definition: davjobbase.cpp:99
DavItemModifyJob(const DavItem &item, QObject *parent=nullptr)
Creates a new dav item modify job.
Definition: davitemmodifyjob.cpp:28
void setPath(const QString &path, QUrl::ParsingMode mode)
A job that fetches a DAV item from the DAV server.
Definition: davitemfetchjob.h:34
void emitResult()
int error() const
QUrl fromUserInput(const QString &userInput)
DavJob * createModifyJob(const QByteArray &data, const QUrl &url, const QByteArray &contentType, const QByteArray &etag)
Returns a preconfigured DAV PUT job with a If-Match header, that matches the.
Definition: davmanager.cpp:112
This file is part of the KDE documentation.
Documentation copyright © 1996-2022 The KDE developers.
Generated on Mon Aug 15 2022 04:07:29 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2022 The KDE developers.
Generated on Mon Aug 15 2022 04:07:29 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.