4 DialCentral - Front end for Google's Grand Central service.
5 Copyright (C) 2008 Eric Warnke ericew AT gmail DOT com
7 This library is free software; you can redistribute it and/or
8 modify it under the terms of the GNU Lesser General Public
9 License as published by the Free Software Foundation; either
10 version 2.1 of the License, or (at your option) any later version.
12 This library is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 Lesser General Public License for more details.
17 You should have received a copy of the GNU Lesser General Public
18 License along with this library; if not, write to the Free Software
19 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
23 class NullDialer(object):
28 def is_quick_login_possible(self):
31 def is_authed(self, force = False):
34 def login(self, username, password):
35 return self.is_authed()
40 def call(self, number):
43 def cancel(self, outgoingNumber=None):
46 def send_sms(self, number, message):
47 raise NotImplementedError("SMS Is Not Supported")
49 def search(self, query):
52 def get_feed(self, feed):
55 def download(self, messageId, adir):
58 def clear_caches(self):
61 def is_valid_syntax(self, number):
63 @returns If This number be called ( syntax validation only )
67 def get_account_number(self):
69 @returns The grand central phone number
73 def get_callback_numbers(self):
76 def set_callback_number(self, callbacknumber):
79 def get_callback_number(self):
85 def get_addressbooks(self):
88 def open_addressbook(self, bookId):
92 def contact_source_short_name(contactId):
99 def get_contacts(self):
102 def get_contact_details(self, contactId):
105 def get_messages(self):
109 class NullAddressBook(object):
111 Minimal example of both an addressbook factory and an addressbook
114 def clear_caches(self):
117 def get_addressbooks(self):
119 @returns Iterable of (Address Book Factory, Book Id, Book Name)
121 yield self, "", "None"
123 def open_addressbook(self, bookId):
127 def contact_source_short_name(contactId):
137 @returns Iterable of (contact id, contact name)
142 def get_contact_details(contactId):
144 @returns Iterable of (Phone Type, Phone Number)