#include <SyncManagerConfig.h>
Inheritance diagram for SyncManagerConfig:
Public Member Functions | |
virtual AbstractSyncSourceConfig * | getAbstractSyncSourceConfig (const char *name) const |
virtual AbstractSyncSourceConfig * | getAbstractSyncSourceConfig (unsigned int i) const |
virtual unsigned int | getAbstractSyncSourceConfigsCount () const |
virtual unsigned int | getSyncSourceConfigsCount () const |
virtual SyncSourceConfig * | getSyncSourceConfigs () const |
virtual SyncSourceConfig * | getSyncSourceConfig (const char *name, bool refresh=false) const |
virtual SyncSourceConfig * | getSyncSourceConfig (unsigned int i, bool refresh=false) const |
virtual bool | setSyncSourceConfig (SyncSourceConfig &sc) |
virtual const AccessConfig & | getAccessConfig () const |
virtual AccessConfig & | getAccessConfig () |
virtual void | setAccessConfig (AccessConfig &ac) |
virtual const DeviceConfig & | getDeviceConfig () const |
virtual DeviceConfig & | getDeviceConfig () |
virtual void | setDeviceConfig (DeviceConfig &dc) |
unsigned int | isDirty () const |
void | setClientDefaults () |
Initializes the access and device config with default values from DefaultConfigFactory. | |
void | setSourceDefaults (const char *name) |
Initializes the given source with default values from DefaultConfigFactory. | |
virtual const char * | getUsername () const |
Returns the username value. | |
virtual const char * | getPassword () const |
Returns the password value. | |
virtual bool | getUseProxy () const |
Should the sync engine use a HTTP proxy? | |
virtual const char * | getProxyHost () const |
Returns the proxyHost value. | |
virtual int | getProxyPort () const |
virtual const char * | getProxyUsername () const |
Returns the proxyUsername value. | |
virtual const char * | getProxyPassword () const |
Returns the proxyPassword value. | |
virtual const char * | getSyncURL () const |
Returns the syncURL value. | |
virtual void | setBeginSync (unsigned long timestamp) |
Sets the new "beginSync" timestamp. | |
virtual void | setEndSync (unsigned long timestamp) |
Sets the new "endSync" timestamp. | |
virtual bool | getServerAuthRequired () const |
Does the server require authentication? | |
virtual const char * | getClientAuthType () const |
the type of client authentication used by client:
| |
virtual const char * | getServerAuthType () const |
same as for client? | |
virtual const char * | getServerPWD () const |
the server password | |
virtual const char * | getServerID () const |
the server ID value | |
virtual const char * | getServerNonce () const |
The server nonce value: from client to server. | |
virtual void | setServerNonce (const char *v) |
virtual const char * | getClientNonce () const |
The client nonce value: from server to client. | |
virtual void | setClientNonce (const char *v) |
virtual unsigned long | getMaxMsgSize () const |
The maximum message size (Byte) accepted for XML messages received from server (server to client). | |
virtual unsigned long | getReadBufferSize () const |
Specifies the value for the size of the buffer used to store the incoming stream from server (byte). | |
virtual const char * | getUserAgent () const |
The user agent string, will be attached to http messages to identify the client on server side. | |
virtual bool | getCompression () const |
virtual unsigned int | getResponseTimeout () const |
The number of seconds of waiting response timeout. | |
virtual const char * | getMan () const |
Specifies the name of the manufacturer of the device. | |
virtual const char * | getMod () const |
Specifies the model name or model number of the device. | |
virtual const char * | getOem () const |
Specifies the OEM (Original Equipment Manufacturer) of the device. | |
virtual const char * | getFwv () const |
Specifies the firmware version of the device. | |
virtual const char * | getSwv () const |
Specifies the software version of the device. | |
virtual const char * | getHwv () const |
Specifies the hardware version of the device. | |
virtual const char * | getDevID () const |
Specifies the identifier of the source synchronization device. | |
virtual const char * | getDevType () const |
Specifies the type of the source synchronization device. | |
virtual const char * | getDsV () const |
Specifies the implemented DS version. | |
virtual bool | getUtc () const |
Specifies that the device supports UTC based time. | |
virtual bool | getLoSupport () const |
Specifies that the device supports handling of large objects. | |
virtual bool | getNocSupport () const |
Specifies that the device supports number of changes. | |
virtual unsigned int | getMaxObjSize () const |
Specifies the maximum object size allowed by the device. | |
virtual const char * | getDevInfHash () const |
This is a hash value generated from all properties that are used for the <DevInf> element, plus the syncURL property. | |
virtual void | setDevInfHash (const char *hash) |
Protected Member Functions | |
virtual bool | addSyncSourceConfig (SyncSourceConfig &sc) |
Protected Attributes | |
AccessConfig | accessConfig |
DeviceConfig | deviceConfig |
SyncSourceConfig * | sourceConfigs |
unsigned int | sourceConfigsCount |
virtual const char* SyncManagerConfig::getUsername | ( | ) | const [inline, virtual] |
Returns the username value.
Implements AbstractSyncConfig.
virtual const char* SyncManagerConfig::getSyncURL | ( | ) | const [inline, virtual] |
Returns the syncURL value.
If the URL does not start with http:// (or HTTP://) or https:// (or HTTPS://), http:// is prepended to the given string.
Implements AbstractSyncConfig.
virtual void SyncManagerConfig::setBeginSync | ( | unsigned long | ) | [inline, virtual] |
Sets the new "beginSync" timestamp.
The client can use this value if it wants to, but it doesn't have to store it persistently.
timestamp | the beginSync timestamp |
Reimplemented from AbstractSyncConfig.
virtual void SyncManagerConfig::setEndSync | ( | unsigned long | ) | [inline, virtual] |
Sets the new "endSync" timestamp.
The client can use this value if it wants to, but it doesn't have to store it persistently.
timestamp | the endSync timestamp |
Reimplemented from AbstractSyncConfig.
virtual const char* SyncManagerConfig::getUserAgent | ( | ) | const [inline, virtual] |
The user agent string, will be attached to http messages to identify the client on server side.
It should be a short description with the client name plus its version
Implements AbstractSyncConfig.
virtual const char* SyncManagerConfig::getMan | ( | ) | const [inline, virtual] |
Specifies the name of the manufacturer of the device.
This property is optional.
Implements AbstractSyncConfig.
virtual const char* SyncManagerConfig::getMod | ( | ) | const [inline, virtual] |
Specifies the model name or model number of the device.
This property is optional.
Implements AbstractSyncConfig.
virtual const char* SyncManagerConfig::getOem | ( | ) | const [inline, virtual] |
Specifies the OEM (Original Equipment Manufacturer) of the device.
This property is optional.
Implements AbstractSyncConfig.
virtual const char* SyncManagerConfig::getFwv | ( | ) | const [inline, virtual] |
Specifies the firmware version of the device.
This property is optional.
Implements AbstractSyncConfig.
virtual const char* SyncManagerConfig::getSwv | ( | ) | const [inline, virtual] |
Specifies the software version of the device.
This property is optional.
Implements AbstractSyncConfig.
virtual const char* SyncManagerConfig::getHwv | ( | ) | const [inline, virtual] |
Specifies the hardware version of the device.
This property is optional.
Implements AbstractSyncConfig.
virtual const char* SyncManagerConfig::getDevID | ( | ) | const [inline, virtual] |
Specifies the identifier of the source synchronization device.
The content information MUST specify an identifier which is unique among all devices accessing the same data on a SyncML server.
Implements AbstractSyncConfig.
virtual const char* SyncManagerConfig::getDevType | ( | ) | const [inline, virtual] |
Specifies the type of the source synchronization device.
Type values for this element type can be e.g. "pager", "handheld", "pda", "phone", "smartphone", "server", "workstation". Other values can also be specified. This property is mandatory.
Implements AbstractSyncConfig.
virtual const char* SyncManagerConfig::getDsV | ( | ) | const [inline, virtual] |
virtual bool SyncManagerConfig::getUtc | ( | ) | const [inline, virtual] |
Specifies that the device supports UTC based time.
If utc = true, the server SHOULD send time in UTC format, else MUST send in local time.
Implements AbstractSyncConfig.
virtual bool SyncManagerConfig::getNocSupport | ( | ) | const [inline, virtual] |
virtual unsigned int SyncManagerConfig::getMaxObjSize | ( | ) | const [inline, virtual] |
Specifies the maximum object size allowed by the device.
Value 0 means "no maxObjSize set".
Implements AbstractSyncConfig.
virtual const char* SyncManagerConfig::getDevInfHash | ( | ) | const [inline, virtual] |
This is a hash value generated from all properties that are used for the <DevInf> element, plus the syncURL property.
If the hash changes between sync sessions the information has changed and must be resent.
Implements AbstractSyncConfig.