3 # DialCentral - Front end for Google's Grand Central service.
4 # Copyright (C) 2008 Eric Warnke ericew AT gmail DOT com
6 # This library is free software; you can redistribute it and/or
7 # modify it under the terms of the GNU Lesser General Public
8 # License as published by the Free Software Foundation; either
9 # version 2.1 of the License, or (at your option) any later version.
11 # This library is distributed in the hope that it will be useful,
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 # Lesser General Public License for more details.
16 # You should have received a copy of the GNU Lesser General Public
17 # License along with this library; if not, write to the Free Software
18 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
21 class NullDialer(object):
26 def is_authed(self, force = False):
29 def login(self, username, password):
30 return self.is_authed()
35 def dial(self, number):
38 def clear_caches(self):
41 def is_valid_syntax(self, number):
43 @returns If This number be called ( syntax validation only )
47 def get_account_number(self):
49 @returns The grand central phone number
53 def set_sane_callback(self):
56 def get_callback_numbers(self):
59 def set_callback_number(self, callbacknumber):
62 def get_callback_number(self):
68 def get_addressbooks(self):
71 def open_addressbook(self, bookId):
75 def contact_source_short_name(contactId):
82 def get_contacts(self):
85 def get_contact_details(self, contactId):