#!/usr/bin/python2.5
-# GC Dialer - Front end for Google's Grand Central service.
+# DialCentral - Front end for Google's Grand Central service.
# Copyright (C) 2008 Mark Bergman bergman AT merctech DOT com
#
# This library is free software; you can redistribute it and/or
"""
-Grandcentral Dialer
+DialCentral: A phone dialer using GrandCentral
"""
import sys
sortedContacts = self.__sort_contacts(contacts)
return sortedContacts
- @staticmethod
- def get_contact_details(contactId):
+ def get_contact_details(self, contactId):
"""
@returns Iterable of (Phone Type, Phone Number)
"""
self._contactsviewselection.unselect_all()
def _on_notebook_switch_page(self, notebook, page, page_num):
- if page_num == 1 and 300 < (time.time() - self._contactstime):
- threading.Thread(target=self._idly_populate_contactsview).start()
- elif page_num == 2 and 300 < (time.time() - self._recenttime):
- threading.Thread(target=self._idly_populate_recentview).start()
- #elif page_num == 3 and self._callbackNeedsSetup:
- # gobject.idle_add(self._idly_populate_callback_combo)
+ if page_num == 1:
+ if 300 < (time.time() - self._contactstime):
+ threading.Thread(target=self._idly_populate_contactsview).start()
+ elif page_num == 3:
+ if 300 < (time.time() - self._recenttime):
+ threading.Thread(target=self._idly_populate_recentview).start()
+ #elif page_num == 2:
+ # self._callbackNeedsSetup::
+ # gobject.idle_add(self._idly_populate_callback_combo)
tabTitle = self._notebook.get_tab_label(self._notebook.get_nth_page(page_num)).get_text()
if hildon is not None: