4 DialCentral - Front end for Google's Grand Central service.
5 Copyright (C) 2008 Mark Bergman bergman AT merctech 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
26 class Dialpad(object):
28 def __init__(self, widgetTree):
29 self._numberdisplay = widgetTree.get_widget("numberdisplay")
30 self._dialButton = widgetTree.get_widget("dialpadOk")
33 self._dialButton.set_sensitive(False)
36 self._dialButton.set_sensitive(True)
42 def load_settings(self, config, sectionName):
45 def save_settings(self, config, sectionName):
52 class AccountInfo(object):
54 def __init__(self, widgetTree):
55 self._callbackList = gtk.ListStore(gobject.TYPE_STRING)
56 self._accountViewNumberDisplay = widgetTree.get_widget("gcnumber_display")
57 self._callbackSelectButton = widgetTree.get_widget("callbackSelectButton")
58 self._clearCookiesButton = widgetTree.get_widget("clearcookies")
60 self._notifyCheckbox = widgetTree.get_widget("notifyCheckbox")
61 self._minutesEntryButton = widgetTree.get_widget("minutesEntryButton")
62 self._missedCheckbox = widgetTree.get_widget("missedCheckbox")
63 self._voicemailCheckbox = widgetTree.get_widget("voicemailCheckbox")
64 self._smsCheckbox = widgetTree.get_widget("smsCheckbox")
67 self._callbackSelectButton.set_sensitive(False)
68 self._clearCookiesButton.set_sensitive(False)
70 self._notifyCheckbox.set_sensitive(False)
71 self._minutesEntryButton.set_sensitive(False)
72 self._missedCheckbox.set_sensitive(False)
73 self._voicemailCheckbox.set_sensitive(False)
74 self._smsCheckbox.set_sensitive(False)
76 self._accountViewNumberDisplay.set_label("")
79 self._callbackSelectButton.set_sensitive(True)
80 self._clearCookiesButton.set_sensitive(True)
82 self._notifyCheckbox.set_sensitive(True)
83 self._minutesEntryButton.set_sensitive(True)
84 self._missedCheckbox.set_sensitive(True)
85 self._voicemailCheckbox.set_sensitive(True)
86 self._smsCheckbox.set_sensitive(True)
89 def update(force = False):
100 def load_settings(self, config, sectionName):
103 def save_settings(self, config, sectionName):
105 @note Thread Agnostic
110 class CallHistoryView(object):
112 def __init__(self, widgetTree):
113 self._historyFilterSelector = widgetTree.get_widget("historyFilterSelector")
116 self._historyFilterSelector.set_sensitive(False)
119 self._historyFilterSelector.set_sensitive(True)
121 def update(self, force = False):
130 return "Recent Calls"
132 def load_settings(self, config, sectionName):
135 def save_settings(self, config, sectionName):
137 @note Thread Agnostic
142 class MessagesView(object):
144 def __init__(self, widgetTree):
145 self._messageTypeButton = widgetTree.get_widget("messageTypeButton")
146 self._messageStatusButton = widgetTree.get_widget("messageStatusButton")
149 self._messageTypeButton.set_sensitive(False)
150 self._messageStatusButton.set_sensitive(False)
153 self._messageTypeButton.set_sensitive(True)
154 self._messageStatusButton.set_sensitive(True)
156 def update(self, force = False):
167 def load_settings(self, config, sectionName):
170 def save_settings(self, config, sectionName):
172 @note Thread Agnostic
177 class ContactsView(object):
179 def __init__(self, widgetTree):
180 self._bookSelectionButton = widgetTree.get_widget("addressbookSelectButton")
183 self._bookSelectionButton.set_sensitive(False)
186 self._bookSelectionButton.set_sensitive(True)
188 def update(self, force = False):
199 def load_settings(self, config, sectionName):
202 def save_settings(self, config, sectionName):
204 @note Thread Agnostic