Enums

Details

class InfGtk.BrowserModelColumn(value)

Bases: GLib.Enum

The various Gtk.TreeModel columns that a tree model implementing InfGtk.BrowserModel must support.

COL_DISCOVERY_INFO = 0

The Infinity.DiscoveryInfo of a discovered toplevel item, or None if the item was not discovered.

COL_DISCOVERY = 1

The Infinity.Discovery object that the item has been discovered with, if any.

COL_BROWSER = 2

The Infinity.Browser with which this item is being browsed, or None if no browser is available.

COL_STATUS = 3

The status of this item. This column is only valid for toplevel items, i.e. for connections to directories.

COL_NAME = 4

The name of the item as a simple string.

COL_ERROR = 5

If an error has occurred with the item, for example the connection failed, or a node exploration failed, this column contains a GLib.Error with more error information.

COL_NODE = 6

The Infinity.BrowserIter pointing to the corresponding node of the Infinity.Browser.

NUM_COLS = 7

The total number of columns of a InfGtk.BrowserModel.

class InfGtk.BrowserModelStatus(value)

Bases: GObject.GEnum

The different statuses an item in the InfGtk.BrowserModel can have. The status of an item is only defined for toplevel items in the tree.

DISCOVERED = 1

The item was discovered with a Infinity.Discovery, but no attempt has been made at connecting to it.

RESOLVING = 2

The item was discovered with a Infinity.Discovery and is currently being resolved, see Infinity.Discovery.resolve().

CONNECTING = 4

A connection attempt to the remote site is currently in progress.

CONNECTED = 5

A connection to the remote site has been established and its directory can be browsed.

ERROR = 6

An error has occured with this item. The column with index InfGtk.BrowserModelColumn.COL_ERROR has more information about the error that occurred.