KDAV::DavCollectionsFetchJob Class
class KDAV::DavCollectionsFetchJobA job that fetches all DAV collection. More...
Header: | #include <KDAV/DavCollectionsFetchJob> |
CMake: | find_package(KF6 REQUIRED COMPONENTS DAV) target_link_libraries(mytarget PRIVATE KF6::DAV) |
Inherits: | KDAV::DavJobBase |
Public Functions
DavCollectionsFetchJob(const KDAV::DavUrl &url, QObject *parent = nullptr) | |
KDAV::DavCollection::List | collections() const |
KDAV::DavUrl | davUrl() const |
Reimplemented Public Functions
virtual void | start() override |
Signals
void | collectionDiscovered(KDAV::Protocol protocol, const QString &collectionUrl, const QString &configuredUrl) |
Detailed Description
This job is used to fetch all DAV collection that are available under a certain DAV URL.
Member Function Documentation
[explicit]
DavCollectionsFetchJob::DavCollectionsFetchJob(const KDAV::DavUrl &url, QObject *parent = nullptr)
Creates a new DAV collections fetch job.
url The DAV URL of the DAV collection whose sub collections shall be fetched.
parent The parent object.
[signal]
void DavCollectionsFetchJob::collectionDiscovered(KDAV::Protocol protocol, const QString &collectionUrl, const QString &configuredUrl)
This signal is emitted every time a new collection has been discovered.
collectionUrl The URL of the discovered collection
configuredUrl The URL given to the job
KDAV::DavCollection::List DavCollectionsFetchJob::collections() const
Returns the list of fetched DAV collections.
KDAV::DavUrl DavCollectionsFetchJob::davUrl() const
Return the DavUrl used by this job
[override virtual]
void DavCollectionsFetchJob::start()
Reimplements: KJob::start().
Starts the job.