FSyncConfig Class Reference

This class extends DMTClientConfig to store also the default sync path, and to provide the default configuration suited to this client. More...

#include <FSyncConfig.h>

Inheritance diagram for FSyncConfig:

Inheritance graph
[legend]
Collaboration diagram for FSyncConfig:

Collaboration graph
[legend]
List of all members.

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 FSyncConfiggetInstance ()
 Singleton implementation: get the unique instance of the config.
static void dispose ()
 Singleton implementation: release the unique instance of the config.

Detailed Description

This class extends DMTClientConfig to store also the default sync path, and to provide the default configuration suited to this client.

It implements the Singleton pattern to be available from any point of the application.


Member Function Documentation

FSyncConfig * FSyncConfig::getInstance (  )  [static]

Singleton implementation: get the unique instance of the config.

Returns:
the singleton object

bool FSyncConfig::read (  )  [virtual]

Overload the read() method, adding the code to retrieve client-specific values.

Returns:
true for success

Reimplemented from DMTClientConfig.

bool FSyncConfig::save (  )  [virtual]

Overload the save() method, adding the code to store client-specific values.

Returns:
true for success

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.

Parameters:
newPath the new syncPath


The documentation for this class was generated from the following files:
Generated on Wed Jan 14 17:15:46 2009 for Funambol C++ Client Library by  doxygen 1.5.2