akonadi
itemsync.cpp
144 return mDeliveryDone && mCurrentBatchRemoteItems.isEmpty() && mRemoteItemQueue.isEmpty() && mRemovedRemoteItemQueue.isEmpty() && mCurrentBatchRemovedRemoteItems.isEmpty();
158 if (mTransactionMode == ItemSync::MultipleTransactions || (mDeliveryDone && mRemoteItemQueue.isEmpty())) {
179 // prevent double result emission, can happen since checkDone() is called from all over the place
241void ItemSync::setIncrementalSyncItems(const Item::List &changedItems, const Item::List &removedItems)
302 QObject::connect(job, SIGNAL(itemsReceived(Akonadi::Item::List)), q, SLOT(slotItemsReceived(Akonadi::Item::List)));
334 return QString::fromLatin1("Collection %1 (%2)").arg(mSyncCollection.id()).arg(mSyncCollection.name());
449 kWarning() << "Creating/updating items from the akonadi database failed:" << job->errorString();
470 //we never want parallel transactions, single transaction just makes one big transaction, and multi transaction uses multiple transaction sequentially
475 QObject::connect(mCurrentTransaction, SIGNAL(result(KJob*)), q, SLOT(slotTransactionResult(KJob*)));
507 // propagate the first error we got but continue, we might still be fed with stuff from a resource
Job that creates a new item in the Akonadi storage.
Definition itemcreatejob.h:74
void setMerge(MergeOptions options)
Merge this item into an existing one if available.
Definition itemcreatejob.cpp:248
void setDeliveryOption(DeliveryOptions options)
Sets the mechanisms by which the items should be fetched.
Definition itemfetchjob.cpp:275
Specifies which parts of an item should be fetched from the Akonadi storage.
Definition itemfetchscope.h:70
void setFetchRemoteIdentification(bool retrieveRid)
Fetch remote identification for items.
Definition itemfetchscope.cpp:177
void setCacheOnly(bool cacheOnly)
Sets whether payload data should be requested from remote sources or just from the local cache.
Definition itemfetchscope.cpp:109
void fetchAllAttributes(bool fetch=true)
Sets whether all available attributes should be fetched.
Definition itemfetchscope.cpp:94
void setFetchModificationTime(bool retrieveMtime)
Enables retrieval of the item modification time.
Definition itemfetchscope.cpp:137
void fetchFullPayload(bool fetch=true)
Sets whether the full payload shall be fetched.
Definition itemfetchscope.cpp:70
Syncs between items known to a client (usually a resource) and the Akonadi storage.
Definition itemsync.h:55
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:220
virtual AKONADI_DEPRECATED bool updateItem(const Item &storedItem, Item &newItem)
Reimplement this method to customize the synchronization algorithm.
Definition itemsync.cpp:281
@ NoTransaction
Use no transaction at all, provides highest responsiveness (might therefore feel faster even when act...
Definition itemsync.h:173
@ MultipleTransactions
Use one transaction per chunk of delivered items, good compromise between the other two when using st...
Definition itemsync.h:172
void setDisableAutomaticDeliveryDone(bool disable)
Disables the automatic completion of the item sync, based on the number of delivered items.
Definition itemsync.cpp:235
void setIncrementalSyncItems(const Item::List &changedItems, const Item::List &removedItems)
Sets the item lists for incrementally syncing the collection.
Definition itemsync.cpp:241
void setFullSyncItems(const Item::List &items)
Sets the full item list for the collection.
Definition itemsync.cpp:196
ItemSync(const Collection &collection, QObject *parent=0)
Creates a new item synchronizer.
Definition itemsync.cpp:185
void rollback()
Aborts the sync process and rolls back all not yet committed transactions.
Definition itemsync.cpp:517
void deliveryDone()
Notify ItemSync that all remote items have been delivered.
Definition itemsync.cpp:494
int batchSize() const
Minimum number of items required to start processing in streaming mode.
Definition itemsync.cpp:534
void setMergeMode(MergeMode mergeMode)
Set what merge method should be used for next ItemSync run.
Definition itemsync.cpp:552
void setTransactionMode(TransactionMode mode)
Set the transaction mode to use for this sync.
Definition itemsync.cpp:528
Definition job_p.h:32
Base class for jobs that need to run a sequence of sub-jobs in a transaction.
Definition transactionsequence.h:70
void commit()
Commits the transaction as soon as all pending sub-jobs finished successfully.
Definition transactionsequence.cpp:154
void setIgnoreJobFailure(KJob *job)
Sets which job of the sequence might fail without rolling back the complete transaction.
Definition transactionsequence.cpp:186
void setAutomaticCommittingEnabled(bool enable)
Disable automatic committing.
Definition transactionsequence.cpp:209
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Wed Jan 24 2024 00:00:00 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Wed Jan 24 2024 00:00:00 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.