LogDir Class Reference

List of all members.

Public Member Functions

 LogDir (const string &server)
string previousLogdir (const char *path)
void setLogdir (const char *path, int maxlogdirs, int logLevel=0)
void setPath (const string &path)
const string & getLogdir ()
const string & getLogfile ()
void getLogdirs (const string &logdir, vector< string > &entries)
void expire ()
void restore (bool all)
 ~LogDir ()


Detailed Description

Definition at line 67 of file EvolutionSyncClient.cpp.


Constructor & Destructor Documentation

LogDir::LogDir ( const string &  server  )  [inline]

Definition at line 78 of file EvolutionSyncClient.cpp.

LogDir::~LogDir (  )  [inline]

Definition at line 277 of file EvolutionSyncClient.cpp.

References restore().


Member Function Documentation

void LogDir::expire (  )  [inline]

Definition at line 236 of file EvolutionSyncClient.cpp.

References getLogdirs(), and rm_r().

Referenced by SourceList::syncDone().

const string& LogDir::getLogdir (  )  [inline]

Definition at line 214 of file EvolutionSyncClient.cpp.

void LogDir::getLogdirs ( const string &  logdir,
vector< string > &  entries 
) [inline]

find all entries in a given directory, return as sorted array

Definition at line 224 of file EvolutionSyncClient.cpp.

Referenced by expire(), and previousLogdir().

const string& LogDir::getLogfile (  )  [inline]

Definition at line 219 of file EvolutionSyncClient.cpp.

Referenced by SourceList::syncDone(), and SourceList::syncPrepare().

string LogDir::previousLogdir ( const char *  path  )  [inline]

Finds previous log directory. Must be called before setLogdir().

Parameters:
path path to configured backup directy, NULL if defaulting to /tmp, "none" if not creating log file
Returns:
full path of previous log directory, empty string if not found

Definition at line 111 of file EvolutionSyncClient.cpp.

References getLogdirs().

Referenced by SourceList::setLogdir().

void LogDir::restore ( bool  all  )  [inline]

Definition at line 254 of file EvolutionSyncClient.cpp.

Referenced by SourceList::syncDone(), and ~LogDir().

void LogDir::setLogdir ( const char *  path,
int  maxlogdirs,
int  logLevel = 0 
) [inline]

Definition at line 141 of file EvolutionSyncClient.cpp.

References EvolutionSyncClient::throwError().

Referenced by SourceList::setLogdir().

void LogDir::setPath ( const string &  path  )  [inline]

sets a fixed directory for database files without redirecting logging

Definition at line 211 of file EvolutionSyncClient.cpp.

Referenced by SourceList::setPath().


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