InfGtk.BrowserStore¶
- Subclasses:
None
Methods¶
- Inherited:
GObject.Object (37), Gtk.TreeModel (28), InfGtk.BrowserModel (3)
- Structs:
class |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
GObject.Object (7), Gtk.TreeModel (19), InfGtk.BrowserModel (3)
Properties¶
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r/w/co |
The communication manager used for browsing remote directories |
||
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 |
r |
Class Details¶
- class InfGtk.BrowserStore(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
- classmethod new(io, comm_manager)¶
- Parameters:
io (
Infinity.Io
) – AInfinity.Io
object for the created #InfcBrowser to schedule timeouts.comm_manager (
Infinity.CommunicationManager
) – TheInfinity.CommunicationManager
with which to explore remote directories.
- Returns:
A new
InfGtk.BrowserStore
.- Return type:
Creates a new
InfGtk.BrowserStore
.
- add_browser(browser, name)¶
- Parameters:
browser (
Infinity.Browser
) – AInfinity.Browser
.name (
str
) – Name for the item.
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:
connection (
Infinity.XmlConnection
) – AInfinity.XmlConnection
.
- Returns:
An
Infinity.Browser
for the new connection.- Return type:
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 theInfinity.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
) – AInfinity.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
) – AInfinity.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
) – AInfinity.Browser
contained in self.
This function removes the entry for the given browser from self.
- remove_connection(connection)¶
- Parameters:
connection (
Infinity.XmlConnection
) – AInfinity.XmlConnection
contained in self.
This function removes the entry for the given connection from self.
- set_connection_name(connection, name)¶
- Parameters:
connection (
Infinity.XmlConnection
) – AInfinity.XmlConnection
contained in self.name (
str
) – The new name to set for the connection.
This function sets the name of connection.
Property Details¶
- InfGtk.BrowserStore.props.communication_manager¶
- Name:
communication-manager
- Type:
- Default Value:
- Flags:
The communication manager used for browsing remote directories
- InfGtk.BrowserStore.props.io¶
- Name:
io
- Type:
- Default Value:
- Flags:
The IO object used for the created browsers to schedule timeouts