#include <EvolutionSyncSource.h>
Public Member Functions | |
Items (EvolutionSyncSource &source, const string &type, SyncState state) | |
SyncItem * | start () |
SyncItem * | iterate () |
bool | addItem (const string &uid) |
Definition at line 629 of file EvolutionSyncSource.h.
EvolutionSyncSource::Items::Items | ( | EvolutionSyncSource & | source, | |
const string & | type, | |||
SyncState | state | |||
) | [inline] |
Definition at line 636 of file EvolutionSyncSource.h.
bool EvolutionSyncSource::Items::addItem | ( | const string & | uid | ) |
add to list, with logging
Definition at line 537 of file EvolutionSyncSource.cpp.
References EvolutionSyncSource::logItem().
Referenced by EvolutionContactSource::beginSyncThrow().
SyncItem * EvolutionSyncSource::Items::iterate | ( | ) |
return current item if available, step to next one
Definition at line 507 of file EvolutionSyncSource.cpp.
References EvolutionSyncSource::createItem(), EvolutionSyncSource::getMimeType(), EvolutionSyncSource::handleException(), and EvolutionSyncSource::m_deletedItems.
Referenced by EvolutionSyncSource::getNextDeletedItem(), EvolutionSyncSource::getNextItem(), EvolutionSyncSource::getNextItemKey(), EvolutionSyncSource::getNextNewItem(), EvolutionSyncSource::getNextUpdatedItem(), and start().
SyncItem * EvolutionSyncSource::Items::start | ( | ) |
start iterating, return first item if available
Lists items in increasing lexical order. This is not required by the SyncML standard, but it makes debugging easier. The EvolutionCalendarSource relies on it: its uids are shorter for parent items and thus they appear in the list before their children.
Definition at line 500 of file EvolutionSyncSource.cpp.
References iterate().
Referenced by EvolutionSyncSource::getFirstDeletedItem(), EvolutionSyncSource::getFirstItem(), EvolutionSyncSource::getFirstItemKey(), EvolutionSyncSource::getFirstNewItem(), and EvolutionSyncSource::getFirstUpdatedItem().