akonadi
itemsync.cpp
128 if ( !mFinished ) { // prevent double result emission, can happen since checkDone() is called from all over the place
153 kDebug() << "Received: " << items.count() << "In total: " << d->mTotalItemsProcessed << " Wanted: " << d->mTotalItems;
175 void ItemSync::setIncrementalSyncItems( const Item::List &changedItems, const Item::List &removedItems )
288 return QString::fromLatin1("Collection %1 (%2)").arg( mSyncCollection.id() ).arg( mSyncCollection.name() );
298 // TODO: do the transaction handling in a nicer way instead, only creating TransactionSequences when really needed
302 if ( (mTransactionMode == ItemSync::SingleTransaction && !mCurrentTransaction) || mTransactionMode == ItemSync::MultipleTransactions) {
306 QObject::connect( mCurrentTransaction, SIGNAL(result(KJob*)), q, SLOT(slotTransactionResult(KJob*)) );
474 // propagate the first error we got but continue, we might still be fed with stuff from a resource
491 d->execute(); // end this in an ordered way, since we have an error set no real change will be done
void disableRevisionCheck()
Disables the check of the revision number.
Definition: itemmodifyjob.cpp:398
virtual bool updateItem(const Item &storedItem, Item &newItem)
Reimplement this method to customize the synchronization algorithm.
Definition: itemsync.cpp:214
void setFullSyncItems(const Item::List &items)
Sets the full item list for the collection.
Definition: itemsync.cpp:145
Use no transaction at all, provides highest responsiveness (might therefore feel faster even when act...
Definition: itemsync.h:162
void setIncrementalSyncItems(const Item::List &changedItems, const Item::List &removedItems)
Sets the item lists for incrementally syncing the collection.
Definition: itemsync.cpp:175
Use a single transaction for the entire sync process (default), provides maximum consistency ("all or...
Definition: itemsync.h:160
void setAutomaticCommittingEnabled(bool enable)
Disable automatic committing.
Definition: transactionsequence.cpp:197
Syncs between items known to a client (usually a resource) and the Akonadi storage.
Definition: itemsync.h:54
Job that deletes items from the Akonadi storage.
Definition: itemdeletejob.h:62
void setFetchScope(ItemFetchScope &fetchScope)
Sets the item fetch scope.
Definition: itemsync.cpp:190
void setFetchScope(ItemFetchScope &fetchScope)
Sets the item fetch scope.
Definition: itemfetchjob.cpp:259
void setIgnoreJobFailure(KJob *job)
Sets which job of the sequence might fail without rolling back the complete transaction.
Definition: transactionsequence.cpp:175
void deliveryDone()
Notify ItemSync that all remote items have been delivered.
Definition: itemsync.cpp:461
ItemSync(const Collection &collection, QObject *parent=0)
Creates a new item synchronizer.
Definition: itemsync.cpp:134
void commit()
Commits the transaction as soon as all pending sub-jobs finished successfully.
Definition: transactionsequence.cpp:144
Job that creates a new item in the Akonadi storage.
Definition: itemcreatejob.h:73
Specifies which parts of an item should be fetched from the Akonadi storage.
Definition: itemfetchscope.h:68
Use one transaction per chunk of delivered items, good compromise between the other two when using st...
Definition: itemsync.h:161
void setTotalItems(int amount)
Set the amount of items which you are going to return in total by using the setFullSyncItems() method...
Definition: itemsync.cpp:160
Base class for jobs that need to run a sequence of sub-jobs in a transaction.
Definition: transactionsequence.h:69
void rollback()
Aborts the sync process and rolls back all not yet committed transactions.
Definition: itemsync.cpp:484
Job that modifies an existing item in the Akonadi storage.
Definition: itemmodifyjob.h:97
Definition: job_p.h:31
virtual QByteArray serialized() const =0
Returns a QByteArray representation of the attribute which will be storaged.
void setTransactionMode(TransactionMode mode)
Set the transaction mode to use for this sync.
Definition: itemsync.cpp:494
void setCacheOnly(bool cacheOnly)
Sets whether payload data should be requested from remote sources or just from the local cache...
Definition: itemfetchscope.cpp:106
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Mon Jul 21 2014 08:03:54 by doxygen 1.8.6 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2014 The KDE developers.
Generated on Mon Jul 21 2014 08:03:54 by doxygen 1.8.6 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.