
Public Member Functions | |
| void | dumpDatabases (const string &suffix) |
| void | removeDatabases (const string &removeSuffix) |
| SourceList (const string &server, bool doLogging, SyncClient &client, bool quiet) | |
| void | setLogdir (const char *logDirPath, int maxlogdirs, int logLevel) |
| const string & | getPrevLogdir () const |
| void | setPath (const string &path) |
| bool | dumpLocalChanges (const string &oldSuffix, const string &newSuffix) |
| void | syncPrepare () |
| void | syncDone (bool success) |
| SyncSource ** | getSourceArray () |
| set< string > | getSources () |
| ~SourceList () | |
| EvolutionSyncSource * | operator[] (const string &name) |
| EvolutionSyncSource * | operator[] (int index) |
Definition at line 285 of file EvolutionSyncClient.cpp.
| SourceList::SourceList | ( | const string & | server, | |
| bool | doLogging, | |||
| SyncClient & | client, | |||
| bool | quiet | |||
| ) | [inline] |
Definition at line 338 of file EvolutionSyncClient.cpp.
| SourceList::~SourceList | ( | ) | [inline] |
Definition at line 562 of file EvolutionSyncClient.cpp.
| void SourceList::dumpDatabases | ( | const string & | suffix | ) | [inline] |
dump into files with a certain suffix
Definition at line 309 of file EvolutionSyncClient.cpp.
References EvolutionSyncSource::exportData().
Referenced by EvolutionSyncClient::status(), syncDone(), and syncPrepare().
| bool SourceList::dumpLocalChanges | ( | const string & | oldSuffix, | |
| const string & | newSuffix | |||
| ) | [inline] |
If possible (m_previousLogdir found) and enabled (!m_quiet), then dump changes applied locally.
| oldSuffix | suffix of old database dump: usually "after" | |
| currentSuffix | the current database dump suffix: "current" when not doing a sync, otherwise "before" |
Definition at line 373 of file EvolutionSyncClient.cpp.
References EvolutionSyncSource::getName().
Referenced by EvolutionSyncClient::status(), and syncPrepare().
| const string& SourceList::getPrevLogdir | ( | ) | const [inline] |
return previous log dir found in setLogdir()
Definition at line 360 of file EvolutionSyncClient.cpp.
Referenced by EvolutionSyncClient::status().
| SyncSource** SourceList::getSourceArray | ( | ) | [inline] |
returns current sources as array as expected by SyncClient::sync(), memory owned by this class
Definition at line 540 of file EvolutionSyncClient.cpp.
Referenced by EvolutionSyncClient::sync().
| set<string> SourceList::getSources | ( | ) | [inline] |
returns names of active sources
Definition at line 553 of file EvolutionSyncClient.cpp.
References EvolutionSyncSource::getName().
Referenced by EvolutionSyncClient::sync().
| EvolutionSyncSource* SourceList::operator[] | ( | int | index | ) | [inline] |
| EvolutionSyncSource* SourceList::operator[] | ( | const string & | name | ) | [inline] |
find sync source by name
Definition at line 570 of file EvolutionSyncClient.cpp.
References EvolutionSyncSource::getName().
Referenced by operator[]().
| void SourceList::removeDatabases | ( | const string & | removeSuffix | ) | [inline] |
remove database dumps with a specific suffix
Definition at line 329 of file EvolutionSyncClient.cpp.
Referenced by syncPrepare().
| void SourceList::setLogdir | ( | const char * | logDirPath, | |
| int | maxlogdirs, | |||
| int | logLevel | |||
| ) | [inline] |
Definition at line 349 of file EvolutionSyncClient.cpp.
References LogDir::previousLogdir(), and LogDir::setLogdir().
Referenced by EvolutionSyncClient::status(), and EvolutionSyncClient::sync().
| void SourceList::setPath | ( | const string & | path | ) | [inline] |
set directory for database files without actually redirecting the logging
Definition at line 363 of file EvolutionSyncClient.cpp.
References LogDir::setPath().
Referenced by EvolutionSyncClient::status().
| void SourceList::syncDone | ( | bool | success | ) | [inline] |
Definition at line 418 of file EvolutionSyncClient.cpp.
References CLIENT, dumpDatabases(), LogDir::expire(), SyncSourceReport::getItemReportCount(), SyncSourceReport::getItemReportSuccessfulCount(), LogDir::getLogfile(), EvolutionSyncSource::getName(), SyncSourceReport::getSourceName(), SyncSourceReport::getState(), SyncClient::getSyncReport(), SyncReport::getSyncSourceReport(), LogDir::restore(), SERVER, and SOURCE_INACTIVE.
Referenced by EvolutionSyncClient::fatalError(), and EvolutionSyncClient::sync().
| void SourceList::syncPrepare | ( | ) | [inline] |
Definition at line 403 of file EvolutionSyncClient.cpp.
References dumpDatabases(), dumpLocalChanges(), LogDir::getLogfile(), and removeDatabases().
Referenced by EvolutionSyncClient::sync().
1.5.7.1