Package conduit :: Package modules :: Package iPodModule :: Module iPodModule :: Class IPodContactsTwoWay
[hide private]

Class IPodContactsTwoWay

source code


Instance Methods [hide private]
 
__init__(self, *args)
All sync functionality should be provided by derived classes
source code
conduit.DataType.DataType
get(self, LUID)
Returns data with the specified LUID.
source code
 
put(self, contact, overwrite, LUID=None)
Stores data.
source code

Inherited from IPodBase: delete, finish, get_UID, get_all, refresh

Inherited from IPodBase (private): _get_unique_filename

Inherited from dataproviders.DataProvider.DataSource: add, get_changes, get_num_items

Inherited from dataproviders.DataProvider.DataProviderBase: configure, emit, emit_change_detected, get_configuration, get_configuration_xml, get_input_conversion_args, get_input_type, get_name, get_output_conversion_args, get_output_type, get_status, initialize, is_busy, is_configured, set_configuration, set_configuration_xml, set_status, uninitialize

Class Variables [hide private]
  _name_ = "Contacts"
  _description_ = "Sync your iPod contacts"
  _module_type_ = "twoway"
  _in_type_ = "contact"
  _out_type_ = "contact"
  _icon_ = "contact-new"

Inherited from dataproviders.DataProvider.DataProviderBase: __gsignals__, _category_, _configurable_

Method Details [hide private]

__init__(self, *args)
(Constructor)

source code 
All sync functionality should be provided by derived classes
Overrides: IPodBase.__init__

get(self, LUID)

source code 

Returns data with the specified LUID. This function must be overridden by the appropriate dataprovider.

Derived classes should call this function to ensure the dataprovider status is updated.
Returns: conduit.DataType.DataType
An item of data
Overrides: dataproviders.DataProvider.DataSource.get
(inherited documentation)

put(self, contact, overwrite, LUID=None)

source code 

Stores data. The derived class is responsible for checking if putData conflicts.

In the case of a two-way datasource, the derived type should consider the overwrite parameter, which if True, should allow the dp to replace a datatype instance if one is found at the existing location

Derived classes should call this function to ensure the dataprovider status is updated.
Overrides: dataproviders.DataProvider.DataSink.put
(inherited documentation)