Class v.g.c.a.BaseApplicationController(WidgetController):

Part of vmc.gtk.controllers.application View In Hierarchy

Known subclasses: vmc.gtk.controllers.application.ApplicationController

Controller for the main window
Method __init__ Undocumented
Method quit_application Closes open connections and exits the application
Method start Overrides the register_view method and starts the whole thing up
Method start_device_activities Undocumented
Method usage_notifier Undocumented
Method update_usage_view Undocumented
Method setup Presents the main screen and configures profiles and devices
Method paint_initial_values Sets the signal level and network name in the GUI
Method on_quit_menu_item_activate Undocumented
Method on_tools_menu_item_activate Undocumented
Method on_diagnostics_item_activate Undocumented
Method on_help_topics_menuitem_activate Undocumented
Method on_about_menu_item_activate Undocumented
Method on_change_pin1_menu_item_child_activate Undocumented
Method on_request_pin1_activate Undocumented
Method on_new_profile_menuitem_activate Undocumented
Method on_inspect_menu_item_activate Undocumented
Method on_preferences_menu_item_activate Undocumented
Method on_mobile1_activate Undocumented
Method on_import_contacts1_activate Undocumented
Method on_export_contacts1_activate Undocumented
Method on_connect_button_toggled Undocumented
Method on_sms_menu_item_activate Undocumented
Method on_usage_menu_item_activate Undocumented
Method on_support_menu_item_activate Undocumented
Method on_minimize_menu_item_activate Undocumented
Method on_sms_preferences_activate Undocumented
Method on_mail_button_clicked Undocumented
Method on_sms_button_toggled Undocumented
Method on_internet_button_clicked Undocumented
Method on_usage_button_clicked Undocumented
Method on_support_button_toggled Undocumented
Method on_new_contact_menu_item_activate Undocumented
Method on_search_contact_menu_item_activate Undocumented
Method on_new_sms_activate Undocumented
Method on_reply_sms_no_quoting_menu_item_activate Undocumented
Method on_reply_sms_quoting_menu_item_activate Undocumented
Method on_forward_sms_menu_item_activate Undocumented
Method on_add_contact_menu_item_activate Undocumented
Method on_delete_menu_item_activate Undocumented
Method on_generic_treeview_row_button_press_event Undocumented
Method on_cursor_changed_treeview_event Undocumented
Method on_main_notebook_switch_page Callback for whenever VMC's main notebook is switched
Method delete_entries Deletes the entries selected in the treeview
Method get_trayicon_popup_menu Returns a popup menu when you right click on the trayicon
Method get_contacts_popup_menu Returns a popup menu for the contacts treeview
Method get_generic_popup_menu Returns a popup menu for the rest of treeviews
Method get_obj_from_selected_row Returns the data from the selected row
Method start_network_stats_timer Undocumented
Method stop_network_stats_timer Undocumented

Inherited from WidgetController:

Method hide_widgets Hides all the widgets that we're weeping track of
Method append_widget Appends a widget to self._widgets
def __init__(self, model, device_listener, splash):
Undocumented
def _quit_or_minimize(self, *args):
Undocumented
def quit_application(self, *args):
Closes open connections and exits the application
def start(self):
Overrides the register_view method and starts the whole thing up
def _setup_signals(self):
Undocumented
def start_device_activities(self, widget=None, hotplug=False):
Undocumented
def _setup_menubar_hacks(self):
Undocumented
def _empty_treeviews(self, treeviews):
Undocumented
def _fill_contacts(self, ignored=None):
Fills the contacts treeview with SIM & DB contacts
def _fill_messages(self, contacts=None):

Fills the messages treeview with SIM & DB SMS

We're receiving the contacts list produced by _fill_contacts because otherwise, adding dozens of SMS to the treeview would be very inefficient, as we would have to lookup the sender number of every SMS to find out whether is a known contact or not. The solution is to cache the previous result and pass the contacts list to the vmc.gtk.models.sms.SMSStoreModel
def _fill_treeviews(self):
Fills the treeviews with SMS and contacts from the SIM and DB
def _update_usage_panel(self, name, offset):
Undocumented
def _update_usage_session(self):
Undocumented
def usage_notifier(self):
Undocumented
def update_usage_view(self):
Undocumented
def setup(self, ignored=None):
Presents the main screen and configures profiles and devices
def paint_initial_values(self):
Sets the signal level and network name in the GUI
def _network_reg_cb(self, netinfo):
Undocumented
def _change_signal_level(self, rssi):
Undocumented
def _hide_splash_and_show_ourselves(self):
Undocumented
def on_quit_menu_item_activate(self, widget):
Undocumented
def _build_profiles_menu(self):
Undocumented
def on_tools_menu_item_activate(self, widget):
Undocumented
def on_diagnostics_item_activate(self, widget):
Undocumented
def on_help_topics_menuitem_activate(self, widget):
Undocumented
def on_about_menu_item_activate(self, widget):
Undocumented
def on_change_pin1_menu_item_child_activate(self, widget):
Undocumented
def on_request_pin1_activate(self, checkmenuitem):
Undocumented
def on_new_profile_menuitem_activate(self, widget):
Undocumented
def on_inspect_menu_item_activate(self, widget):
Undocumented
def on_preferences_menu_item_activate(self, widget):
Undocumented
def on_mobile1_activate(self, widget):
Undocumented
def on_import_contacts1_activate(self, widget):
Undocumented
def on_export_contacts1_activate(self, widget):
Undocumented
def on_connect_button_toggled(self, button):
Undocumented
def on_sms_menu_item_activate(self, widget):
Undocumented
def on_usage_menu_item_activate(self, widget):
Undocumented
def on_support_menu_item_activate(self, widget):
Undocumented
def on_minimize_menu_item_activate(self, widget):
Undocumented
def on_sms_preferences_activate(self, widget):
Undocumented
def on_mail_button_clicked(self, widget):
Undocumented
def on_sms_button_toggled(self, widget):
Undocumented
def on_internet_button_clicked(self, widget):
Undocumented
def on_usage_button_clicked(self, widget):
Undocumented
def on_support_button_toggled(self, widget):
Undocumented
def on_new_contact_menu_item_activate(self, widget):
Undocumented
def on_search_contact_menu_item_activate(self, widget):
Undocumented
def on_new_sms_activate(self, widget):
Undocumented
def on_reply_sms_no_quoting_menu_item_activate(self, widget):
Undocumented
def on_reply_sms_quoting_menu_item_activate(self, widget):
Undocumented
def on_forward_sms_menu_item_activate(self, widget):
Undocumented
def on_add_contact_menu_item_activate(self, widget):
Undocumented
def on_delete_menu_item_activate(self, widget):
Undocumented
def on_generic_treeview_row_button_press_event(self, treeview, event):
Undocumented
def on_cursor_changed_treeview_event(self, treeview):
Undocumented
def on_main_notebook_switch_page(self, notebook, ptr, pagenum):

Callback for whenever VMC's main notebook is switched

Basically takes care of showing and hiding the appropiate menubars depending on the page the user is viewing
def _name_contact_cell_edited(self, widget, path, newname):
Handler for the cell-edited signal of the name column
def _number_contact_cell_edited(self, widget, path, newnumber):
Handler for the cell-edited signal of the number column
def _setup_trayicon(self, ignoreconf=False):
Attaches VMC's trayicon to the systray
def _detach_trayicon(self):
Detachs VMC's trayicon from the systray
def _show_hide_window(self, *args):
Undocumented
def _row_activated_tv(self, treeview, path, col):
Undocumented
def _check_if_connected(self):
Returns True if connected or the user doesn't cares is not connected
def __on_treeview_key_press(self, widget, event):
Handler for key_press_button in treeviews
def delete_entries(self, menuitem, pathlist, treeview):

Deletes the entries selected in the treeview

This entries are deleted in SIM/DB and the treeview
def _send_sms_to_contact(self, menuitem, treeview):
Undocumented
def get_trayicon_popup_menu(self, *args):
Returns a popup menu when you right click on the trayicon
def get_contacts_popup_menu(self, pathinfo, treeview):
Returns a popup menu for the contacts treeview
def get_generic_popup_menu(self, pathinfo, treeview):
Returns a popup menu for the rest of treeviews
def _save_sms_to_draft(self, widget):
This will save the selected SMS to the drafts tv and the DB
def _use_detail_add_contact(self, widget):
Handler for the use detail menu
def get_obj_from_selected_row(self):
Returns the data from the selected row
def start_network_stats_timer(self):
Undocumented
def stop_network_stats_timer(self):
Undocumented
API Documentation for vodafone-mobile-connect-card-driver-for-linux, generated by pydoctor at 2008-01-10 13:06:31.