Libkdav2
davcollectionsfetchjob.cpp
45 connect(job, &DavPrincipalHomeSetsFetchJob::result, this, &DavCollectionsFetchJob::principalFetchFinished);
66 const QDomDocument collectionQuery = DavManager::self()->davProtocol(mUrl.protocol())->collectionsQuery()->buildQuery();
260 connect(individualFetchJob, &DavCollectionFetchJob::result, this, &DavCollectionsFetchJob::individualCollectionRefreshed);
virtual XMLQueryBuilder::Ptr collectionsQuery() const =0
Returns the XML document that represents the DAV query to list all available DAV collections.
ReadOnly
QString toDisplayString() const
Returns the url in a userfriendly way without login informations.
Definition: davurl.cpp:56
CaseInsensitive
Q_EMITQ_EMIT
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)
const DavProtocolBase * davProtocol(Protocol protocol)
Returns the DAV protocol dialect object for the given DAV protocol.
Definition: davmanager.cpp:140
bool isNull() const const
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
QString & prepend(QChar ch)
QString userName(QUrl::ComponentFormattingOptions options) const const
TolerantMode
bool setContent(const QByteArray &data, bool namespaceProcessing, QString *errorMsg, int *errorLine, int *errorColumn)
A helper class to store information about DAV collection.
Definition: davcollection.h:49
QMetaObject::Connection connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
void collectionDiscovered(int protocol, const QString &collectionUrl, const QString &configuredUrl)
This signal is emitted every time a new collection has been discovered.
int size() const const
QStringList homeSets() const
Returns the found home sets.
Definition: davprincipalhomesetsfetchjob.cpp:62
A job that fetches a DAV collection from the DAV server.
Definition: davcollectionfetchjob.h:35
bool isValid() const const
QString localName() const const
QString toDisplayString(QUrl::FormattingOptions options) const const
void setQuery(const QString &sourceCode, const QUrl &documentURI)
bool isEmpty() const const
DavCollectionsFetchJob(const DavUrl &url, QObject *parent=nullptr)
Creates a new dav collections fetch job.
Definition: davcollectionsfetchjob.cpp:36
DavCollection::List collections() const
Returns the list of fetched DAV collections.
Definition: davcollectionsfetchjob.cpp:52
QDomElement documentElement() const const
QDomElement KPIMKDAV2_EXPORT nextSiblingElementNS(const QDomElement &element, const QString &namespaceUri, const QString &tagName)
Returns the next sibling element of element that has the given tagName and is part of the namespaceUr...
Definition: utils.cpp:51
virtual bool supportsCTags() const =0
Return whether the dav protocol dialect supports CTags.
bool startsWith(const QString &s, Qt::CaseSensitivity cs) const const
Error davError() const
Returns a instance of the KDAV2:Error to be able to translate the error.
Definition: davjobbase.cpp:82
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
bool extractCollection(const QDomElement &response, DavUrl url, DavCollection &collection)
Extract a DavCollection from the response element of a PROPFIND result.
Definition: utils.cpp:185
void setPath(const QString &path, QUrl::ParsingMode mode)
A job that fetches home sets for a principal.
Definition: davprincipalhomesetsfetchjob.h:37
QString password(QUrl::ComponentFormattingOptions options) const const
int compare(const QString &other, Qt::CaseSensitivity cs) const const
void emitResult()
QDomElement KPIMKDAV2_EXPORT firstChildElementNS(const QDomElement &parent, const QString &namespaceUri, const QString &tagName)
Returns the first child element of parent that has the given tagName and is part of the namespaceUri.
Definition: utils.cpp:37
void evaluateTo(QXmlResultItems *result) const const
int error() const
DavJob * createPropFindJob(const QUrl &url, const QDomDocument &document, const QString &depth=QStringLiteral("1"))
Returns a preconfigured DAV PROPFIND job.
Definition: davmanager.cpp:66
void setError(int errorCode)
void setFocus(const QXmlItem &item)
QString & append(QChar ch)
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.