global evolution
evolution = None
self._book = evolution.ebook.open_addressbook(self._bookId)
-
+
@classmethod
def is_supported(cls):
return evolution is not None
for bookId in evolution.ebook.list_addressbooks():
yield self, bookId[1], bookId[0]
-
+
def open_addressbook(self, bookId):
self._bookId = bookId
self._book = evolution.ebook.open_addressbook(self._bookId)
for contact in self._book.get_all_contacts():
yield str(contact.get_uid()), contact.props.full_name
-
+
def get_contact_details(self, contactId):
"""
@returns Iterable of (Phone Type, Phone Number)
def attempt_login(self, numOfAttempts = 1):
"""
+ @todo Handle user notification better like attempting to login and failed login
+
@note Not meant to be called directly, but run as a seperate thread.
"""
assert 0 < numOfAttempts, "That was pointless having 0 or less login attempts"