|
Public Member Functions |
| | BasicPreferences (SyncLog *pSyncLog, SettingsContainer *pSC) |
| | constructor
|
| virtual | ~BasicPreferences () |
| | destructor
|
| virtual string | GetModuleName ()=0 |
| | returns module name - used to identify which modules registered an option, to inform user about available plugins
|
| virtual long | GetModuleVersion (bool fHigh)=0 |
| | returns module version - used for informative purposes (especially important for plugins)
|
| virtual string | GetModuleInfo ()=0 |
| | returns module information - used to identify which modules registered an option
|
| void | RegisterValidator (fCBValidateParameters *pcfValidateAll) |
| void | ParseCommandLine (char **ppCL, int nParamsNum, bool fWarnIfOptionUnregistered) |
| | parses command line options
|
| void | WriteSetupFile (const char *sSetupFName) |
| | writes setup file
|
| void | ParseSetupFile (const char *sSetupFName, bool fWarnIfOptionUnregistered) |
| | parses setup file
|
| void | SetOption (long nOption, bool fSet) |
| | set boolean option
|
| bool | GetOption (long nOption) |
| | get boolean option
|
| bool | RegisterO (string sOID, EOptionKind eKind, string sShortDescription, string sLongDescription) |
| | registers new option; returns false is such an option already exists or in case of any other problem
|
| long | GetON (string sID) |
| | get option value by option name
|
| void | SetON (string sID, long nValue) |
| | set option value by option name
|
| double | GetOFP (string sID) |
| | get option value by option name
|
| void | SetOFP (string sID, double dValue) |
| | set option value by option name
|
| string | GetOS (string sID) |
| | get option value by option name
|
| void | AddOS (string sID, string sValue) |
| | add string option value by option name
|
| void | SetOS (string sID, string sValue) |
| | set option value by option name
|
| string | FirstOSL (string sID, StringList::iterator &i) |
| | get first string from the list for the specified option
|
| string | NextOSL (string sID, StringList::iterator &i) |
| | get next string from the list for the specified option
|
| const char * | GetOCA (string sID, long &nArrayLength) |
| | get character array option value by option name (nArrayLength is set to the length of the array)
|
| void | SetOCA (string sID, const char *pValue, long nArrayLength, bool fCopy=TRUE) |
| | set character array option value by option name (nArrayLength is set to the length of the array)
|
| string | GetRemoteHostName () |
| | get remote host name
|
| void | SetRemoteHostName (string sHName) |
| | set remote host name
|
| long | GetSocketPort () |
| | get socket port number
|
| void | SetSocketPort (long nSocketPort) |
| | set socket port number
|
| string | GetDstFName () |
| void | SetDstFName (string sFName) |
| string | GetSrcFName () |
| void | SetSrcFName (string sFName) |
| void | DisplayOptions () |
| | shows the list of available options provided by all loaded modules
|
| const char * | GetOptionKindName (EOptionKind eKind) |
| | returns man readable name of option kind (boolean, long integer, etc)
|
Protected Member Functions |
| bool | IsOption (char *sString) |
| string | GetOptionID (char *sString) |
| string | GetOptionIDF (char *&sString) |
| BPOption * | GetOption (string sOptionID) |
| | returns BPOption object associated with provided sOptionID
|
| void | ValidateSettingsContainer () |
Protected Attributes |
| string | m_sRemoteHostName |
| | the name of the destination.Using this implies, this host is the client
|
| long | m_nSocketPort |
| | remote port number to connect; defaults to SR_DEFAULT_SOCKET_PORT
|
| string | m_sSrcFName |
| | Local file name.
|
| string | m_sDstFName |
| | Synchronized file name for testing purposed differs from the original file.
|
| long | m_nOptions0 |
| long | m_nOptions1 |
| SettingsContainer * | m_pSettingsContainer |
| fCBValidateParameters * | m_pcfValidateAll |