InfGtk.BrowserStore

g GObject.GInterface GObject.GInterface Gtk.TreeModel Gtk.TreeModel GObject.GInterface->Gtk.TreeModel InfGtk.BrowserModel InfGtk.BrowserModel GObject.GInterface->InfGtk.BrowserModel GObject.Object GObject.Object InfGtk.BrowserStore InfGtk.BrowserStore GObject.Object->InfGtk.BrowserStore Gtk.TreeModel->InfGtk.BrowserStore InfGtk.BrowserModel->InfGtk.BrowserStore

Subclasses:

None

Methods

Inherited:

GObject.Object (37), Gtk.TreeModel (28), InfGtk.BrowserModel (3)

Structs:

GObject.ObjectClass (5)

class

new (io, comm_manager)

add_browser (browser, name)

add_connection (connection, name)

add_discovery (discovery)

clear_connection_error (connection)

remove_browser (browser)

remove_connection (connection)

set_connection_name (connection, name)

Virtual Methods

Inherited:

GObject.Object (7), Gtk.TreeModel (19), InfGtk.BrowserModel (3)

Properties

Name

Type

Flags

Short Description

communication-manager

Infinity.CommunicationManager

r/w/co

The communication manager used for browsing remote directories

io

Infinity.Io

r/w/co

The IO object used for the created browsers to schedule timeouts

Signals

Inherited:

GObject.Object (1), Gtk.TreeModel (5), InfGtk.BrowserModel (1)

Fields

Inherited:

GObject.Object (1), Gtk.TreeModel (5), InfGtk.BrowserModel (1)

Name

Type

Access

Description

parent

GObject.Object

r

Class Details

class InfGtk.BrowserStore(**kwargs)
Bases:

GObject.Object, Gtk.TreeModel, InfGtk.BrowserModel

Abstract:

No

Structure:

InfGtk.BrowserStoreClass

classmethod new(io, comm_manager)
Parameters:
Returns:

A new InfGtk.BrowserStore.

Return type:

InfGtk.BrowserStore

Creates a new InfGtk.BrowserStore.

add_browser(browser, name)
Parameters:

This function adds a browser to the self. self will show up an item for the browser if there is not already one. This allows to browse the explored part of the browser. The name parameter must not be None.

add_connection(connection, name)
Parameters:
Returns:

An Infinity.Browser for the new connection.

Return type:

Infinity.Browser

This function adds a connection to the self. self will show up an item for the connection if there is not already one. This allows to browse the explored parts of the directory of the remote site. If name is None, then the Infinity.XmlConnection :remote-id of the connection will be used.

The return value is the Infinity.Browser for the added connection, or an existing browser for the connection, if there is any.

add_discovery(discovery)
Parameters:

discovery (Infinity.Discovery) – A Infinity.Discovery not yet added to model.

Adds discovery to model. The model will then show up discovered servers.

clear_connection_error(connection)
Parameters:

connection (Infinity.XmlConnection) – A Infinity.XmlConnection contained in self.

This function clears the error for the entry which belongs to the given connection.

remove_browser(browser)
Parameters:

browser (Infinity.Browser) – A Infinity.Browser contained in self.

This function removes the entry for the given browser from self.

remove_connection(connection)
Parameters:

connection (Infinity.XmlConnection) – A Infinity.XmlConnection contained in self.

This function removes the entry for the given connection from self.

set_connection_name(connection, name)
Parameters:

This function sets the name of connection.

Property Details

InfGtk.BrowserStore.props.communication_manager
Name:

communication-manager

Type:

Infinity.CommunicationManager

Default Value:

None

Flags:

READABLE, WRITABLE, CONSTRUCT_ONLY

The communication manager used for browsing remote directories

InfGtk.BrowserStore.props.io
Name:

io

Type:

Infinity.Io

Default Value:

None

Flags:

READABLE, WRITABLE, CONSTRUCT_ONLY

The IO object used for the created browsers to schedule timeouts