Libkdav2
davitemmodifyjob.cpp
35 auto job = DavManager::self()->createModifyJob(mItem.data(), itemUrl(), mItem.contentType().toUtf8(), mItem.etag().toUtf8());
A job that fetches a DAV item from the DAV server.
Definition davitemfetchjob.h:35
DavItem item() const
Returns the fetched item including current etag information.
Definition davitemfetchjob.cpp:38
DavItem item() const
Returns the modified item including the updated etag information.
Definition davitemmodifyjob.cpp:39
DavItemModifyJob(const DavItem &item, QObject *parent=nullptr)
Creates a new dav item modify job.
Definition davitemmodifyjob.cpp:28
int freshResponseCode() const
Returns the http response code we got when fetching the fresh item.
Definition davitemmodifyjob.cpp:49
DavItem freshItem() const
Returns the item that triggered the conflict, if any.
Definition davitemmodifyjob.cpp:44
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
unsigned int latestHttpStatusCode() const
Get the latest http status code.
Definition davjobbase.cpp:39
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
static DavManager * self()
Returns the global instance of the DAV manager.
Definition davmanager.cpp:52
Protocol protocol() const
Returns the DAV protocol dialect that is used to retrieve the DAV object.
Definition davurl.cpp:51
void emitResult()
int error() const
void result(KJob *job)
QVariant location(const QVariant &res)
QMetaObject::Connection connect(const QObject *sender, PointerToMemberFunction signal, Functor functor)
T qobject_cast(QObject *object)
QByteArray toUtf8() const const
TolerantMode
QUrl fromUserInput(const QString &userInput, const QString &workingDirectory, UserInputResolutionOptions options)
void setPath(const QString &path, ParsingMode mode)
void setUserInfo(const QString &userInfo, ParsingMode mode)
QString url(FormattingOptions options) const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Dec 6 2024 12:00:37 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Dec 6 2024 12:00:37 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.