#include <FSyncConfig.h>
Inheritance diagram for FSyncConfig:
Public Member Functions | |
virtual bool | read () |
Overload the read() method, adding the code to retrieve client-specific values. | |
virtual bool | save () |
Overload the save() method, adding the code to store client-specific values. | |
void | init () |
Initialize the config: try to read it from file or generate a default one. | |
const StringBuffer & | getSyncPath () const |
Get the current sync path. | |
void | setSyncPath (const char *newPath) |
Set a new sync path. | |
Static Public Member Functions | |
static FSyncConfig * | getInstance () |
Singleton implementation: get the unique instance of the config. | |
static void | dispose () |
Singleton implementation: release the unique instance of the config. |
It implements the Singleton pattern to be available from any point of the application.
FSyncConfig * FSyncConfig::getInstance | ( | ) | [static] |
Singleton implementation: get the unique instance of the config.
bool FSyncConfig::read | ( | ) | [virtual] |
Overload the read() method, adding the code to retrieve client-specific values.
Reimplemented from DMTClientConfig.
bool FSyncConfig::save | ( | ) | [virtual] |
Overload the save() method, adding the code to store client-specific values.
Reimplemented from DMTClientConfig.
void FSyncConfig::setSyncPath | ( | const char * | newPath | ) |
Set a new sync path.
If the new path is different from the current one, set the SyncSource last sync to 0, in order to force a slow sync.
newPath | the new syncPath |