Libkdav2
davcollectioncreatejob.cpp
83 connect(modifyJob, &DavCollectionFetchJob::result, this, &DavCollectionCreateJob::collectionModified);
97 connect(fetchJob, &DavCollectionFetchJob::result, this, &DavCollectionCreateJob::collectionRefreshed);
121 * <C:mkcalendar xmlns:D='DAV:'xmlns:C='urn:ietf:params:xml:ns:caldav' xmlns:ICAL="http://apple.com/ns/ical/">
139 auto mkcalElement = document.createElementNS(QStringLiteral("DAV:"), QStringLiteral("mkcalendar"));
144 setElement.appendChild(document.createElementNS(QStringLiteral("DAV:"), QStringLiteral("prop")));
159 QStringLiteral("urn:ietf:params:xml:ns:caldav"), QStringLiteral("supported-calendar-component-set")));
222 setElement.appendChild(document.createElementNS(QStringLiteral("DAV:"), QStringLiteral("prop")));
DavCollectionCreateJob(const DavCollection &collection, QObject *parent=nullptr)
Creates a new dav collection create job.
Definition davcollectioncreatejob.cpp:33
DavCollection collection() const
Returns the created DAV item including the correct identifier url and current etag information.
Definition davcollectioncreatejob.cpp:58
A job that fetches a DAV collection from the DAV server.
Definition davcollectionfetchjob.h:36
DavCollection collection() const
Returns the fetched collection including current etag information.
Definition davcollectionfetchjob.cpp:48
A job that modifies a DAV collection.
Definition davcollectionmodifyjob.h:42
void setProperty(const QString &property, const QString &value, const QString &ns=QString())
Sets the property that shall be modified by the job.
Definition davcollectionmodifyjob.cpp:33
A helper class to store information about DAV collection.
Definition davcollection.h:50
QString displayName() const
Returns the display name of the collection.
Definition davcollection.cpp:109
ContentTypes contentTypes() const
Returns the possible content types of the collection.
Definition davcollection.cpp:129
QColor color() const
Return the color of the collection, or an empty string if none was provided by the backend.
Definition davcollection.cpp:119
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
DavJob * createMkColJob(const QUrl &url)
Returns a preconfigured DAV MKCOL job.
Definition davmanager.cpp:119
static DavManager * self()
Returns the global instance of the DAV manager.
Definition davmanager.cpp:52
DavJob * createMkCalendarJob(const QUrl &url, const QDomDocument &document)
Returns a preconfigured DAV MKCALENDAR job.
Definition davmanager.cpp:133
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)
void setError(int errorCode)
bool isValid() const const
QString name(NameFormat format) const const
QDomElement createElementNS(const QString &nsURI, const QString &qName)
QDomText createTextNode(const QString &value)
void setAttribute(const QString &name, const QString &value)
QDomNode appendChild(const QDomNode &newChild)
QMetaObject::Connection connect(const QObject *sender, PointerToMemberFunction signal, Functor functor)
T qobject_cast(QObject *object)
bool isEmpty() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 22 2024 12:04:40 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 22 2024 12:04:40 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.