KDAV::DavItemsListJob Class
class KDAV::DavItemsListJobA job that lists all DAV items inside a DAV collection. More...
Header: | #include <KDAV/DavItemsListJob> |
CMake: | find_package(KF6 REQUIRED COMPONENTS DAV) target_link_libraries(mytarget PRIVATE KF6::DAV) |
Inherits: | KDAV::DavJobBase |
Public Functions
DavItemsListJob(const KDAV::DavUrl &url, const std::shared_ptr<KDAV::EtagCache> &cache, QObject *parent = nullptr) | |
KDAV::DavItem::List | changedItems() const |
QStringList | deletedItems() const |
KDAV::DavItem::List | items() const |
void | setContentMimeTypes(const QStringList &types) |
void | setTimeRange(const QString &start, const QString &end) |
Reimplemented Public Functions
virtual void | start() override |
Detailed Description
Member Function Documentation
DavItemsListJob::DavItemsListJob(const KDAV::DavUrl &url, const std::shared_ptr<KDAV::EtagCache> &cache, QObject *parent = nullptr)
Creates a new DAV items list job.
url The URL of the DAV collection.
parent The parent object.
KDAV::DavItem::List DavItemsListJob::changedItems() const
Returns the list of items that were changed on the server.
QStringList DavItemsListJob::deletedItems() const
Returns the list of items URLs that were not seen in the backend. As this is based on the ETag cache this may contain dependent items.
KDAV::DavItem::List DavItemsListJob::items() const
Returns the list of items seen including identifier URL and ETag information.
void DavItemsListJob::setContentMimeTypes(const QStringList &types)
Limits the mime types of the items requested.
If no mime type is given then all will be requested.
types The list of mime types to include
void DavItemsListJob::setTimeRange(const QString &start, const QString &end)
Sets the start and end time to list items for.
start The range start, in format "date with UTC time"
end The range end, in format "date with UTC time"
[override virtual]
void DavItemsListJob::start()
Reimplements: KJob::start().
Starts the job.