UDisks.ObjectInfo¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
None
Signals¶
- Inherited:
Fields¶
- Inherited:
Class Details¶
- class UDisks.ObjectInfo(**kwargs)¶
- Bases:
- Abstract:
No
Detailed information about the D-Bus interfaces (such as
UDisks.Block
andUDisks.Drive
) on aUDisks.Object
that is suitable to display in an user interface. UseUDisks.Client.get_object_info
() to getUDisks.ObjectInfo
objects. Note thatUDisks.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 whatUDisks.ObjectInfo.get_icon
() andUDisks.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()¶
-
Gets the description.
New in version 2.1.
- get_icon()¶
-
Gets the icon.
New in version 2.1.
- get_icon_symbolic()¶
-
Gets the symbolic icon.
New in version 2.1.
- get_media_description()¶
-
Gets the media description.
New in version 2.1.
- get_media_icon()¶
-
Gets the media icon.
New in version 2.1.
- get_media_icon_symbolic()¶
-
Gets the symbolic media icon.
New in version 2.1.
- get_name()¶
-
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:
Gets the
UDisks.Object
that self is forNew in version 2.1.
- get_one_liner()¶
-
Gets a one-line description.
New in version 2.1.
- get_sort_key()¶
-
Gets the sort-key for self. This can be used with
GLib.strcmp0
() to sort objects.New in version 2.1.