Akonadi
itemsync.h
54 * @param timestamp Optional timestamp of itemsync start. Will be used to detect local changes that happen
58 explicit ItemSync(const Collection &collection, const QDateTime ×tamp = {}, QObject *parent = nullptr);
130 SingleTransaction, ///< Use a single transaction for the entire sync process (default), provides maximum consistency ("all or nothing") and best
132 MultipleTransactions, ///< Use one transaction per chunk of delivered items, good compromise between the other two when using streaming
133 NoTransaction ///< Use no transaction at all, provides highest responsiveness (might therefore feel faster even when actually taking slightly longer),
139 * @note You must call this method before starting the sync, changes afterwards lead to undefined results.
159 * @note You must call this method before starting the sync, changes afterwards lead to undefined results.
173 * @note You must call this method before starting the sync, changes afterwards lead to undefined results.
194 * @note You must call this method before starting the sync, changes afterwards lead to undefined results.
ItemSync(const Collection &collection, const QDateTime ×tamp={}, QObject *parent=nullptr)
Creates a new item synchronizer.
Definition itemsync.cpp:183
void setTotalItems(int amount)
Set the amount of items which you are going to return in total by using the setFullSyncItems()/setInc...
Definition itemsync.cpp:223
void readyForNextBatch(int remainingBatchSize)
Signals the resource that new items can be delivered.
@ NoTransaction
Use no transaction at all, provides highest responsiveness (might therefore feel faster even when act...
Definition itemsync.h:133
@ MultipleTransactions
Use one transaction per chunk of delivered items, good compromise between the other two when using st...
Definition itemsync.h:132
@ SingleTransaction
Use a single transaction for the entire sync process (default), provides maximum consistency ("all or...
Definition itemsync.h:130
void setIncrementalSyncItems(const Item::List &changedItems, const Item::List &removedItems)
Sets the item lists for incrementally syncing the collection.
Definition itemsync.cpp:244
void setFullSyncItems(const Item::List &items)
Sets the full item list for the collection.
Definition itemsync.cpp:198
void doStart() override
This method must be reimplemented in the concrete jobs.
Definition itemsync.cpp:269
void rollback()
Aborts the sync process and rolls back all not yet committed transactions.
Definition itemsync.cpp:515
void deliveryDone()
Notify ItemSync that all remote items have been delivered.
Definition itemsync.cpp:491
void transactionCommitted()
KJob(QObject *parent=nullptr)
Helper integration between Akonadi and Qt.
Q_OBJECTQ_OBJECT
QObject * parent() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:49:57 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:49:57 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.