Package conduit :: Package modules :: Package PhoneModule :: Module Gammu :: Class GammuDataProvider
[hide private]

Class GammuDataProvider

source code


Instance Methods [hide private]
 
__init__(self, address, connection)
All sync functionality should be provided by derived classes
source code
string
get_UID(self)
Returns a UID that represents this dataproviders (locally) unique state and configuration.
source code
 
_guess_num_items(self) source code
 
_get_first_entry(self)
Initiates get next sequence.
source code
 
_get_next_entry(self, location)
Gets next entry.
source code
 
_get_entry(self, location)
Gets entry.
source code
 
_get_num_items(self)
Gets status of entries.
source code
 
_parse_entry(self)
Parses entry.
source code
 
Send(self)
Sends entries to parent.
source code
 
Run(self)
UNFINISHED PORT OF WAMMU's SUBCLASSABLE APPROACH FOR GETTING DATA
source code
 
refresh(self)
Performs any (conduit.logging in, etc) which must be undertaken on the dataprovider prior to calling get_all().
source code
 
get_all(self)
Returns an array of all the LUIDs this dataprovider holds.
source code

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

Inherited from dataproviders.DataProvider.DataProviderBase: configure, emit, emit_change_detected, finish, 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"
  _module_type_ = "source"
  _in_type_ = "contact"
  _out_type_ = "contact"
  MAX_EMPTY_GUESS = 5
  MAX_EMPTY_KNOWN = 5

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

Method Details [hide private]

__init__(self, address, connection)
(Constructor)

source code 
All sync functionality should be provided by derived classes
Overrides: dataproviders.DataProvider.DataSource.__init__

get_UID(self)

source code 

Returns a UID that represents this dataproviders (locally) unique state and configuration. For example the LUID for a gmail dp may be your username and password.

Derived types MUST overwride this function
Returns: string
Overrides: dataproviders.DataProvider.DataProviderBase.get_UID
(inherited documentation)

_get_first_entry(self)

source code 

Initiates get next sequence.

Should be implemented in subclases.

_get_next_entry(self, location)

source code 

Gets next entry.

Should be implemented in subclases.

_get_entry(self, location)

source code 

Gets entry.

Should be implemented in subclases.

_get_num_items(self)

source code 

Gets status of entries.

Should be implemented in subclases.

_parse_entry(self)

source code 

Parses entry.

Should be implemented in subclases.

Send(self)

source code 

Sends entries to parent.

Should be implemented in subclases.

refresh(self)

source code 

Performs any (conduit.logging in, etc) which must be undertaken on the dataprovider prior to calling get_all(). Should gather all information so a subsequent call to get_all() can return the uids of all the data this dataprovider holds

This function may be called multiple times so derived classes should be aware of this.

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

get_all(self)

source code 
Returns an array of all the LUIDs this dataprovider holds.
Overrides: dataproviders.DataProvider.DataSource.get_all
(inherited documentation)