Package thirdparty :: Package conduit :: Module SyncmlModule :: Class SyncmlDataProvider
[hide private]
[frames] | no frames]

Class SyncmlDataProvider

source code

Known Subclasses:

This class is doing all the work

Don't instantiate it - there is a datastore and a connection missing; go for SyncmlContactsInterface instead.

Instance Methods [hide private]
 
handle_event(self, sync_object, event, userdata, err)
handle_event is called by libsyncml at different stages of a sync This includes when this connect and disconnect and when errors occur.
source code
 
handle_change(self, sync_object, source, type, uid, data, size, userdata, err)
handle_change is called by libsyncml to tells us about changes on the server or device we are synchronising to.
source code
 
handle_devinf(self, sync_object, info, userdata, err)
handle_devinf is called by libsyncml to tells us information such as device mfr and firmware version of whatever we are syncing against.
source code
 
handle_change_status(self, sync_object, code, newuid, userdata, err)
200 is good ...
source code
 
handle_get_anchor(self, sync_object, name, userdata, err) source code
 
handle_set_anchor(self, sync_object, name, value, userdata, err) source code
 
handle_get_alert_type(self, sync_object, source, alert_type, userdata, err) source code
 
_syncml_sendall(self) source code
 
_syncml_run(self) source code
 
__init__(self, address)
Initializes all parameters
source code
 
downloadItems(self)
Public Interface: download all contacts from server
source code
 
applyChanges(self, adds={}, dels={}, mods={})
Public Interface: apply changes on server
source code
 
finish(self) source code
Class Variables [hide private]
  _syncml_version_ = '1.1'
Method Details [hide private]

handle_event(self, sync_object, event, userdata, err)

source code 

handle_event is called by libsyncml at different stages of a sync This includes when this connect and disconnect and when errors occur.

It WILL happen in a different thread to whatever thread called syncobject.run()

handle_change(self, sync_object, source, type, uid, data, size, userdata, err)

source code 

handle_change is called by libsyncml to tells us about changes on the server or device we are synchronising to.

This WILL happen in a different thread to where sync is happening.

handle_devinf(self, sync_object, info, userdata, err)

source code 

handle_devinf is called by libsyncml to tells us information such as device mfr and firmware version of whatever we are syncing against.

This WILL happen in a different thread to where sync is happening. There is a known bug with SE C902 where this is called twice - ignore the 2nd one or crashes occur

handle_change_status(self, sync_object, code, newuid, userdata, err)

source code 

200 is good ... 201 seems to indicate OK (sometimes not :() 211 - I think not