Class v.g.m.s.SMSStoreModel(ListStoreModel):

Part of vmc.gtk.models.sms View In Hierarchy

SMS ListStoreModel with some convenience methods

Accepts a callable because as we live in a hotplugging world we need a way to obtain a reference to the new plugged device.
Method __init__ Undocumented
Method device_removed_handler I take care of {self.sconn} and will update it as necessary
Method add_messages Adds a list of messages
Method add_message Adds message to the ListStoreModel
def __init__(self, _callable):
Undocumented
def device_removed_handler(self):
I take care of {self.sconn} and will update it as necessary
def add_messages(self, messages, contacts=None):

Adds a list of messages

See add_message docs
def _add_sim_message(self, message, contacts=None):
Undocumented
def _add_db_message(self, message, contacts=None):
Undocumented
def add_message(self, message, contacts=None):

Adds message to the ListStoreModel

Whenever a new message is inserted, I lookup the number on the phonebook and will show the name instead of the number if its a contact. As this can be really expensive for mass insertions, such as during startup, it also accepts a list of contacts to save the lookup.
Parametersmessage (type: vmc.common.sms.ShortMessage )
contacts (type: list )
API Documentation for vodafone-mobile-connect-card-driver-for-linux, generated by pydoctor at 2008-01-10 13:06:31.