The start of a settings file and removed the timeouts on the different view refreshes
[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         @staticmethod
39         def name():
40                 return "Dialpad"
41
42         def load_settings(self, config, sectionName):
43                 pass
44
45         def save_settings(self, config, sectionName):
46                 """
47                 @note Thread Agnostic
48                 """
49                 pass
50
51
52 class AccountInfo(object):
53
54         def __init__(self, widgetTree):
55                 self._callbackList = gtk.ListStore(gobject.TYPE_STRING)
56                 self._accountViewNumberDisplay = widgetTree.get_widget("gcnumber_display")
57                 self._callbackCombo = widgetTree.get_widget("callbackcombo")
58                 self._clearCookiesButton = widgetTree.get_widget("clearcookies")
59
60         def enable(self):
61                 self._callbackCombo.set_sensitive(False)
62                 self._clearCookiesButton.set_sensitive(False)
63
64                 self._accountViewNumberDisplay.set_text("")
65
66         def disable(self):
67                 self._clearCookiesButton.set_sensitive(True)
68                 self._callbackCombo.set_sensitive(True)
69
70         @staticmethod
71         def update():
72                 pass
73
74         @staticmethod
75         def clear():
76                 pass
77
78         @staticmethod
79         def name():
80                 return "Account Info"
81
82         def load_settings(self, config, sectionName):
83                 pass
84
85         def save_settings(self, config, sectionName):
86                 """
87                 @note Thread Agnostic
88                 """
89                 pass
90
91
92 class RecentCallsView(object):
93
94         def __init__(self, widgetTree):
95                 pass
96
97         def enable(self):
98                 pass
99
100         def disable(self):
101                 pass
102
103         def update(self):
104                 pass
105
106         @staticmethod
107         def clear():
108                 pass
109
110         @staticmethod
111         def name():
112                 return "Recent Calls"
113
114         def load_settings(self, config, sectionName):
115                 pass
116
117         def save_settings(self, config, sectionName):
118                 """
119                 @note Thread Agnostic
120                 """
121                 pass
122
123
124 class MessagesView(object):
125
126         def __init__(self, widgetTree):
127                 pass
128
129         def enable(self):
130                 pass
131
132         def disable(self):
133                 pass
134
135         def update(self):
136                 pass
137
138         @staticmethod
139         def clear():
140                 pass
141
142         @staticmethod
143         def name():
144                 return "Messages"
145
146         def load_settings(self, config, sectionName):
147                 pass
148
149         def save_settings(self, config, sectionName):
150                 """
151                 @note Thread Agnostic
152                 """
153                 pass
154
155
156 class ContactsView(object):
157
158         def __init__(self, widgetTree):
159                 self._booksSelectionBox = widgetTree.get_widget("addressbook_combo")
160
161         def enable(self):
162                 self._booksSelectionBox.set_sensitive(False)
163
164         def disable(self):
165                 self._booksSelectionBox.set_sensitive(True)
166
167         def update(self):
168                 pass
169
170         @staticmethod
171         def clear():
172                 pass
173
174         @staticmethod
175         def name():
176                 return "Contacts"
177
178         def load_settings(self, config, sectionName):
179                 pass
180
181         def save_settings(self, config, sectionName):
182                 """
183                 @note Thread Agnostic
184                 """
185                 pass