Module disco :: Class ToplevelAgentBrowser
[hide private]
[frames] | no frames]

Class ToplevelAgentBrowser

source code


This browser is used at the top level of a jabber server to browse services such as transports, conference servers, etc
Instance Methods [hide private]
 
__init__(self, *args) source code
 
_pixbuf_renderer_data_func(self, col, cell, model, iter_)
Callback for setting the pixbuf renderer's properties
source code
 
_text_renderer_data_func(self, col, cell, model, iter_)
Callback for setting the text renderer's properties
source code
 
_treemodel_sort_func(self, model, iter1, iter2)
Sort function for our treemode
source code
 
_show_tooltip(self, state) source code
 
on_treeview_leave_notify_event(self, widget, event) source code
 
on_treeview_motion_notify_event(self, widget, event) source code
 
on_treeview_event_hide_tooltip(self, widget, event)
This happens on scroll_event, key_press_event and button_press_event
source code
 
_create_treemodel(self)
Create the treemodel for the services treeview.
source code
 
_clean_treemodel(self) source code
 
_add_actions(self)
Add the action buttons to the buttonbox for actions the browser can perform
source code
 
_clean_actions(self)
Remove the action buttons specific to this browser
source code
 
on_search_button_clicked(self, widget=None)
When we want to search something: open search window
source code
 
cleanup(self)
Cleanup when the window intends to switch browsers
source code
 
update_theme(self)
Called when the default theme is changed
source code
 
on_execute_button_clicked(self, widget=None)
When we want to execute a command: open adhoc command window
source code
 
on_register_button_clicked(self, widget=None)
When we want to register an agent: request information about registering with the agent and close the window
source code
 
on_join_button_clicked(self, widget)
When we want to join an IRC room or create a new MUC room: Opens the join_groupchat_window
source code
 
update_actions(self)
When we select a row: activate action buttons based on the agent's info
source code
 
_update_actions(self, jid, node, identities, features, data)
Continuation of update_actions
source code
 
_default_action(self, jid, node, identities, features, data)
Continuation of default_action
source code
 
browse(self, force=False)
Fill the treeview with agents, fetching the info if necessary
source code
 
_expand_all(self)
Expand all items in the treeview
source code
 
_update_progressbar(self)
Update the progressbar
source code
 
_hide_progressbar_cb(self, *args)
Simple callback to hide the progressbar a second after we finish
source code
 
_friendly_category(self, category, type_=None)
Get the friendly category name and priority
source code
 
_create_category(self, cat, type_=None)
Creates a category row
source code
 
_find_category(self, cat, type_=None)
Looks up a category row and returns the iterator to it, or None
source code
 
_find_item(self, jid, node)
Check if an item is already in the treeview.
source code
 
_add_item(self, jid, node, parent_node, item, force)
Called when an item should be added to the model.
source code
 
_update_item(self, iter_, jid, node, item)
Called when an item should be updated in the model.
source code
 
_update_info(self, iter_, jid, node, identities, features, data)
Called when an item should be updated in the model with further info.
source code
 
_update_error(self, iter_, jid, node)
Called when a disco#info query failed for an item.
source code

Inherited from AgentBrowser: default_action, on_browse_button_clicked, prepare_window

Method Details [hide private]

__init__(self, *args)
(Constructor)

source code 
Overrides: AgentBrowser.__init__

_pixbuf_renderer_data_func(self, col, cell, model, iter_)

source code 
Callback for setting the pixbuf renderer's properties

_text_renderer_data_func(self, col, cell, model, iter_)

source code 
Callback for setting the text renderer's properties

_treemodel_sort_func(self, model, iter1, iter2)

source code 
Sort function for our treemode

_show_tooltip(self, state)

source code 

on_treeview_leave_notify_event(self, widget, event)

source code 

on_treeview_motion_notify_event(self, widget, event)

source code 

on_treeview_event_hide_tooltip(self, widget, event)

source code 
This happens on scroll_event, key_press_event and button_press_event

_create_treemodel(self)

source code 
Create the treemodel for the services treeview. When subclassing, note that the first two columns should ALWAYS be of type string and contain the JID and node of the item respectively
Overrides: AgentBrowser._create_treemodel
(inherited documentation)

_clean_treemodel(self)

source code 
Overrides: AgentBrowser._clean_treemodel

_add_actions(self)

source code 
Add the action buttons to the buttonbox for actions the browser can perform
Overrides: AgentBrowser._add_actions
(inherited documentation)

_clean_actions(self)

source code 
Remove the action buttons specific to this browser
Overrides: AgentBrowser._clean_actions
(inherited documentation)

on_search_button_clicked(self, widget=None)

source code 
When we want to search something: open search window

cleanup(self)

source code 
Cleanup when the window intends to switch browsers
Overrides: AgentBrowser.cleanup
(inherited documentation)

update_theme(self)

source code 
Called when the default theme is changed
Overrides: AgentBrowser.update_theme
(inherited documentation)

on_execute_button_clicked(self, widget=None)

source code 
When we want to execute a command: open adhoc command window

on_register_button_clicked(self, widget=None)

source code 
When we want to register an agent: request information about registering with the agent and close the window

on_join_button_clicked(self, widget)

source code 
When we want to join an IRC room or create a new MUC room: Opens the join_groupchat_window

update_actions(self)

source code 
When we select a row: activate action buttons based on the agent's info
Overrides: AgentBrowser.update_actions
(inherited documentation)

_update_actions(self, jid, node, identities, features, data)

source code 
Continuation of update_actions
Overrides: AgentBrowser._update_actions
(inherited documentation)

_default_action(self, jid, node, identities, features, data)

source code 
Continuation of default_action
Overrides: AgentBrowser._default_action
(inherited documentation)

browse(self, force=False)

source code 
Fill the treeview with agents, fetching the info if necessary
Overrides: AgentBrowser.browse
(inherited documentation)

_expand_all(self)

source code 
Expand all items in the treeview

_update_progressbar(self)

source code 
Update the progressbar

_hide_progressbar_cb(self, *args)

source code 
Simple callback to hide the progressbar a second after we finish

_friendly_category(self, category, type_=None)

source code 
Get the friendly category name and priority

_create_category(self, cat, type_=None)

source code 
Creates a category row

_find_category(self, cat, type_=None)

source code 
Looks up a category row and returns the iterator to it, or None

_find_item(self, jid, node)

source code 
Check if an item is already in the treeview. Return an iter to it if so, None otherwise
Overrides: AgentBrowser._find_item
(inherited documentation)

_add_item(self, jid, node, parent_node, item, force)

source code 
Called when an item should be added to the model. The result of a disco#items query
Overrides: AgentBrowser._add_item
(inherited documentation)

_update_item(self, iter_, jid, node, item)

source code 
Called when an item should be updated in the model. The result of a disco#items query
Overrides: AgentBrowser._update_item
(inherited documentation)

_update_info(self, iter_, jid, node, identities, features, data)

source code 
Called when an item should be updated in the model with further info. The result of a disco#info query
Overrides: AgentBrowser._update_info
(inherited documentation)

_update_error(self, iter_, jid, node)

source code 
Called when a disco#info query failed for an item.
Overrides: AgentBrowser._update_error
(inherited documentation)