* Changed the file headers to doc strings
[gc-dialer] / src / null_views.py
1 #!/usr/bin/python2.5
2
3 """
4 DialCentral - Front end for Google's Grand Central service.
5 Copyright (C) 2008  Mark Bergman bergman AT merctech DOT com
6
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.
11
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.
16
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
20 """
21
22 import gobject
23 import gtk
24
25
26 class Dialpad(object):
27
28         def __init__(self, widgetTree):
29                 self._numberdisplay = widgetTree.get_widget("numberdisplay")
30                 self._dialButton = widgetTree.get_widget("dial")
31
32         def enable(self):
33                 self._dialButton.set_sensitive(False)
34
35         def disable(self):
36                 self._dialButton.set_sensitive(True)
37
38
39 class AccountInfo(object):
40
41         def __init__(self, widgetTree):
42                 self._callbackList = gtk.ListStore(gobject.TYPE_STRING)
43                 self._accountViewNumberDisplay = widgetTree.get_widget("gcnumber_display")
44                 self._callbackCombo = widgetTree.get_widget("callbackcombo")
45                 self._clearCookiesButton = widgetTree.get_widget("clearcookies")
46
47         def enable(self):
48                 self._callbackCombo.set_sensitive(False)
49                 self._clearCookiesButton.set_sensitive(False)
50
51                 self._accountViewNumberDisplay.set_text("")
52
53         def disable(self):
54                 self._clearCookiesButton.set_sensitive(True)
55                 self._callbackCombo.set_sensitive(True)
56
57         @staticmethod
58         def update():
59                 pass
60
61         @staticmethod
62         def clear():
63                 pass
64
65
66 class RecentCallsView(object):
67
68         def __init__(self, widgetTree):
69                 pass
70
71         def enable(self):
72                 pass
73
74         def disable(self):
75                 pass
76
77         def update(self):
78                 pass
79
80         @staticmethod
81         def clear():
82                 pass
83
84
85 class ContactsView(object):
86
87         def __init__(self, widgetTree):
88                 self._booksSelectionBox = widgetTree.get_widget("addressbook_combo")
89
90         def enable(self):
91                 self._booksSelectionBox.set_sensitive(False)
92
93         def disable(self):
94                 self._booksSelectionBox.set_sensitive(True)
95
96         def update(self):
97                 pass
98
99         @staticmethod
100         def clear():
101                 pass