UDisks.ObjectInfo

g GObject.Object GObject.Object UDisks.ObjectInfo UDisks.ObjectInfo GObject.Object->UDisks.ObjectInfo

Subclasses:

None

Methods

Inherited:

GObject.Object (37)

Structs:

GObject.ObjectClass (5)

get_description ()

get_icon ()

get_icon_symbolic ()

get_media_description ()

get_media_icon ()

get_media_icon_symbolic ()

get_name ()

get_object ()

get_one_liner ()

get_sort_key ()

Virtual Methods

Inherited:

GObject.Object (7)

Properties

None

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Class Details

class UDisks.ObjectInfo(**kwargs)
Bases:

GObject.Object

Abstract:

No

Detailed information about the D-Bus interfaces (such as UDisks.Block and UDisks.Drive) on a UDisks.Object that is suitable to display in an user interface. Use UDisks.Client.get_object_info() to get UDisks.ObjectInfo objects. Note that UDisks.ObjectInfo is an immutable object; once it has been created it cannot be modified further.

The HintName and/or HintIconName propreties on associated UDisks.Block interfaces (if any) may influence what UDisks.ObjectInfo.get_icon() and UDisks.ObjectInfo.get_media_icon() returns.

The value return by UDisks.ObjectInfo.get_one_liner() is designed to contain enough information such that it is all that needs to be shown about the object. As a result for e.g. block devices or drives it contains the special device file e.g. /dev/sda.

New in version 2.1.

get_description()
Returns:

The value or None. Do not free or unref, the value belongs to self.

Return type:

str

Gets the description.

New in version 2.1.

get_icon()
Returns:

The value or None. Do not free or unref, the value belongs to self.

Return type:

Gio.Icon

Gets the icon.

New in version 2.1.

get_icon_symbolic()
Returns:

The value or None. Do not free or unref, the value belongs to self.

Return type:

Gio.Icon

Gets the symbolic icon.

New in version 2.1.

get_media_description()
Returns:

The value or None. Do not free or unref, the value belongs to self.

Return type:

str

Gets the media description.

New in version 2.1.

get_media_icon()
Returns:

The value or None. Do not free or unref, the value belongs to self.

Return type:

Gio.Icon

Gets the media icon.

New in version 2.1.

get_media_icon_symbolic()
Returns:

The value or None. Do not free or unref, the value belongs to self.

Return type:

Gio.Icon

Gets the symbolic media icon.

New in version 2.1.

get_name()
Returns:

The value or None. Do not free or unref, the value belongs to self.

Return type:

str

Gets the name.

New in version 2.1.

get_object()
Returns:

The object - do not free or unref, the reference belongs to self.

Return type:

UDisks.Object

Gets the UDisks.Object that self is for

New in version 2.1.

get_one_liner()
Returns:

The value or None. Do not free or unref, the value belongs to self.

Return type:

str

Gets a one-line description.

New in version 2.1.

get_sort_key()
Returns:

The sort key or None. Do not free or unref, the value belongs to self.

Return type:

str

Gets the sort-key for self. This can be used with GLib.strcmp0() to sort objects.

New in version 2.1.