SourceList Class Reference

Collaboration diagram for SourceList:

Collaboration graph
[legend]

List of all members.

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 ()
EvolutionSyncSourceoperator[] (const string &name)
EvolutionSyncSourceoperator[] (int index)


Detailed Description

Definition at line 285 of file EvolutionSyncClient.cpp.


Constructor & Destructor Documentation

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.


Member Function Documentation

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.

Parameters:
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]

find by index

Definition at line 580 of file EvolutionSyncClient.cpp.

References operator[]().

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]

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]

void SourceList::syncPrepare (  )  [inline]


The documentation for this class was generated from the following file:

Generated on Sat Oct 18 17:17:05 2008 for SyncEvolution and Funambol by  doxygen 1.5.7.1