Various bug fixes and tweaks found through 0, 1, and 2
[gc-dialer] / src / null_views.py
index 8713ba3..73bfd75 100644 (file)
@@ -28,12 +28,28 @@ class Dialpad(object):
        def __init__(self, widgetTree):
                self._numberdisplay = widgetTree.get_widget("numberdisplay")
                self._dialButton = widgetTree.get_widget("dial")
+               self._smsButton = widgetTree.get_widget("sms")
 
        def enable(self):
                self._dialButton.set_sensitive(False)
+               self._smsButton.set_sensitive(False)
 
        def disable(self):
                self._dialButton.set_sensitive(True)
+               self._smsButton.set_sensitive(True)
+
+       @staticmethod
+       def name():
+               return "Dialpad"
+
+       def load_settings(self, config, sectionName):
+               pass
+
+       def save_settings(self, config, sectionName):
+               """
+               @note Thread Agnostic
+               """
+               pass
 
 
 class AccountInfo(object):
@@ -44,24 +60,55 @@ class AccountInfo(object):
                self._callbackCombo = widgetTree.get_widget("callbackcombo")
                self._clearCookiesButton = widgetTree.get_widget("clearcookies")
 
+               self._notifyCheckbox = widgetTree.get_widget("notifyCheckbox")
+               self._minutesEntryButton = widgetTree.get_widget("minutesEntryButton")
+               self._missedCheckbox = widgetTree.get_widget("missedCheckbox")
+               self._voicemailCheckbox = widgetTree.get_widget("voicemailCheckbox")
+               self._smsCheckbox = widgetTree.get_widget("smsCheckbox")
+
        def enable(self):
                self._callbackCombo.set_sensitive(False)
                self._clearCookiesButton.set_sensitive(False)
 
-               self._accountViewNumberDisplay.set_text("")
+               self._notifyCheckbox.set_sensitive(False)
+               self._minutesEntryButton.set_sensitive(False)
+               self._missedCheckbox.set_sensitive(False)
+               self._voicemailCheckbox.set_sensitive(False)
+               self._smsCheckbox.set_sensitive(False)
+
+               self._accountViewNumberDisplay.set_label("")
 
        def disable(self):
-               self._clearCookiesButton.set_sensitive(True)
                self._callbackCombo.set_sensitive(True)
+               self._clearCookiesButton.set_sensitive(True)
+
+               self._notifyCheckbox.set_sensitive(True)
+               self._minutesEntryButton.set_sensitive(True)
+               self._missedCheckbox.set_sensitive(True)
+               self._voicemailCheckbox.set_sensitive(True)
+               self._smsCheckbox.set_sensitive(True)
 
        @staticmethod
        def update():
-               pass
+               return False
 
        @staticmethod
        def clear():
                pass
 
+       @staticmethod
+       def name():
+               return "Account Info"
+
+       def load_settings(self, config, sectionName):
+               pass
+
+       def save_settings(self, config, sectionName):
+               """
+               @note Thread Agnostic
+               """
+               pass
+
 
 class RecentCallsView(object):
 
@@ -75,12 +122,57 @@ class RecentCallsView(object):
                pass
 
        def update(self):
+               return False
+
+       @staticmethod
+       def clear():
                pass
 
        @staticmethod
+       def name():
+               return "Recent Calls"
+
+       def load_settings(self, config, sectionName):
+               pass
+
+       def save_settings(self, config, sectionName):
+               """
+               @note Thread Agnostic
+               """
+               pass
+
+
+class MessagesView(object):
+
+       def __init__(self, widgetTree):
+               pass
+
+       def enable(self):
+               pass
+
+       def disable(self):
+               pass
+
+       def update(self):
+               return False
+
+       @staticmethod
        def clear():
                pass
 
+       @staticmethod
+       def name():
+               return "Messages"
+
+       def load_settings(self, config, sectionName):
+               pass
+
+       def save_settings(self, config, sectionName):
+               """
+               @note Thread Agnostic
+               """
+               pass
+
 
 class ContactsView(object):
 
@@ -94,8 +186,21 @@ class ContactsView(object):
                self._booksSelectionBox.set_sensitive(True)
 
        def update(self):
-               pass
+               return False
 
        @staticmethod
        def clear():
                pass
+
+       @staticmethod
+       def name():
+               return "Contacts"
+
+       def load_settings(self, config, sectionName):
+               pass
+
+       def save_settings(self, config, sectionName):
+               """
+               @note Thread Agnostic
+               """
+               pass