KDAV 5.109.0
Signals | Public Member Functions | List of all members
KDAV::DavCollectionsMultiFetchJob

A job that fetches all DAV collection. More...

#include <KDAV/DavCollectionsMultiFetchJob>

Signals

void collectionDiscovered (KDAV::Protocol protocol, const QString &collectionUrl, const QString &configuredUrl)
 This signal is emitted every time a new collection has been discovered.
 

Public Member Functions

 DavCollectionsMultiFetchJob (const DavUrl::List &urls, QObject *parent=nullptr)
 Creates a new DAV collections multi fetch job.
 
DavCollection::List collections () const
 Returns the list of fetched DAV collections.
 
void start () override
 Starts the job.
 

Detailed Description

A job that fetches all DAV collection.

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.

Constructor & Destructor Documentation

◆ DavCollectionsMultiFetchJob()

KDAV::DavCollectionsMultiFetchJob::DavCollectionsMultiFetchJob ( const DavUrl::List urls,
QObject *  parent = nullptr 
)
explicit

Creates a new DAV collections multi fetch job.

Parameters
urlsThe list of DAV URLs whose sub collections shall be fetched.
parentThe parent object.

Member Function Documentation

◆ collectionDiscovered

void KDAV::DavCollectionsMultiFetchJob::collectionDiscovered ( KDAV::Protocol  protocol,
const QString &  collectionUrl,
const QString &  configuredUrl 
)
signal

This signal is emitted every time a new collection has been discovered.

Parameters
collectionUrlThe URL of the discovered collection
configuredUrlThe URL given to the job

◆ collections()

DavCollection::List KDAV::DavCollectionsMultiFetchJob::collections ( ) const

Returns the list of fetched DAV collections.

◆ start()

void KDAV::DavCollectionsMultiFetchJob::start ( )
override

Starts the job.