KDAV::DavItemsSyncJob Class
class KDAV::DavItemsSyncJobA job that uses the sync-token to fetch only new changes of a DAV collection. More...
| Header: | #include <KDAV/DavItemsSyncJob> |
| CMake: | find_package(KF6 REQUIRED COMPONENTS DAV)target_link_libraries(mytarget PRIVATE KF6::DAV) |
| Since: | 6.31 |
| Inherits: | KDAV::DavJobBase |
Public Functions
| DavItemsSyncJob(const KDAV::DavUrl &url, const QString &syncToken, QObject *parent = nullptr) | |
| DavItem::List | changedItems() const |
| QStringList | deletedItems() const |
| QString | newSyncToken() const |
Reimplemented Public Functions
| virtual void | start() override |
Detailed Description
Member Function Documentation
DavItemsSyncJob::DavItemsSyncJob(const KDAV::DavUrl &url, const QString &syncToken, QObject *parent = nullptr)
Creates a new DAV items sync job.
url The URL of the DAV collection.
parent The parent object.
DavItem::List DavItemsSyncJob::changedItems() const
Returns the list of items that were changed on the server.
Note: This sync-collection job cannot fetch mimeTypes, it will be empty
QStringList DavItemsSyncJob::deletedItems() const
Returns the list of items URLs that were deleted on the server.
QString DavItemsSyncJob::newSyncToken() const
Returns the new sync token, empty if none returned by the server.
[override virtual] void DavItemsSyncJob::start()
Reimplements: KJob::start().
Starts the job.