KDAV::DavCollectionsMultiFetchJob Class
class KDAV::DavCollectionsMultiFetchJobA job that fetches all DAV collection. More...
Header: | #include <KDAV/DavCollectionsMultiFetchJob> |
CMake: | find_package(KF6 REQUIRED COMPONENTS DAV) target_link_libraries(mytarget PRIVATE KF6::DAV) |
Inherits: | KCompositeJob |
Public Functions
DavCollectionsMultiFetchJob(const KDAV::DavUrl::List &urls, QObject *parent = nullptr) | |
KDAV::DavCollection::List | collections() 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 list of DAV URLs.
Note: This class just combines multiple calls of DavCollectionsFetchJob into one job.
Member Function Documentation
[explicit]
DavCollectionsMultiFetchJob::DavCollectionsMultiFetchJob(const KDAV::DavUrl::List &urls, QObject *parent = nullptr)
Creates a new DAV collections multi fetch job.
urls The list of DAV URLs whose sub collections shall be fetched.
parent The parent object.
[signal]
void DavCollectionsMultiFetchJob::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 DavCollectionsMultiFetchJob::collections() const
Returns the list of fetched DAV collections.
[override virtual]
void DavCollectionsMultiFetchJob::start()
Reimplements: KJob::start().
Starts the job.