Complete settings support for login and account info
[gc-dialer] / src / null_views.py
index 15474c8..034eeb6 100644 (file)
@@ -1,21 +1,23 @@
 #!/usr/bin/python2.5
 
-# DialCentral - Front end for Google's Grand Central service.
-# Copyright (C) 2008  Mark Bergman bergman AT merctech DOT com
-# 
-# This library is free software; you can redistribute it and/or
-# modify it under the terms of the GNU Lesser General Public
-# License as published by the Free Software Foundation; either
-# version 2.1 of the License, or (at your option) any later version.
-# 
-# This library is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-# Lesser General Public License for more details.
-# 
-# You should have received a copy of the GNU Lesser General Public
-# License along with this library; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
+"""
+DialCentral - Front end for Google's Grand Central service.
+Copyright (C) 2008  Mark Bergman bergman AT merctech DOT com
+
+This library is free software; you can redistribute it and/or
+modify it under the terms of the GNU Lesser General Public
+License as published by the Free Software Foundation; either
+version 2.1 of the License, or (at your option) any later version.
+
+This library is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+Lesser General Public License for more details.
+
+You should have received a copy of the GNU Lesser General Public
+License along with this library; if not, write to the Free Software
+Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
+"""
 
 import gobject
 import gtk
@@ -33,6 +35,19 @@ class Dialpad(object):
        def disable(self):
                self._dialButton.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):
 
@@ -40,13 +55,39 @@ class AccountInfo(object):
                self._callbackList = gtk.ListStore(gobject.TYPE_STRING)
                self._accountViewNumberDisplay = widgetTree.get_widget("gcnumber_display")
                self._callbackCombo = widgetTree.get_widget("callbackcombo")
+               self._clearCookiesButton = widgetTree.get_widget("clearcookies")
 
        def enable(self):
                self._callbackCombo.set_sensitive(False)
+               self._clearCookiesButton.set_sensitive(False)
+
+               self._accountViewNumberDisplay.set_text("")
 
        def disable(self):
+               self._clearCookiesButton.set_sensitive(True)
                self._callbackCombo.set_sensitive(True)
 
+       @staticmethod
+       def update():
+               pass
+
+       @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):
 
@@ -59,6 +100,58 @@ class RecentCallsView(object):
        def disable(self):
                pass
 
+       def update(self):
+               pass
+
+       @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):
+               pass
+
+       @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):
 
@@ -70,3 +163,23 @@ class ContactsView(object):
 
        def disable(self):
                self._booksSelectionBox.set_sensitive(True)
+
+       def update(self):
+               pass
+
+       @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