Polkit.ActionDescription

g GObject.Object GObject.Object Polkit.ActionDescription Polkit.ActionDescription GObject.Object->Polkit.ActionDescription

Subclasses:

None

Methods

Inherited:

GObject.Object (37)

Structs:

GObject.ObjectClass (5)

get_action_id ()

get_annotation (key)

get_annotation_keys ()

get_description ()

get_icon_name ()

get_implicit_active ()

get_implicit_any ()

get_implicit_inactive ()

get_message ()

get_vendor_name ()

get_vendor_url ()

Virtual Methods

Inherited:

GObject.Object (7)

Properties

None

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Class Details

class Polkit.ActionDescription(**kwargs)
Bases:

GObject.Object

Abstract:

No

Structure:

Polkit.ActionDescriptionClass

Object used to encapsulate a registered action.

get_action_id()
Returns:

A string owned by self. Do not free.

Return type:

str

Gets the action id for self.

get_annotation(key)
Parameters:

key (str) – An annotation key.

Returns:

None if there is no annoation with key, otherwise the annotation value owned by self. Do not free.

Return type:

str or None

Get the value of the annotation with key.

get_annotation_keys()
Returns:

The annotation keys owned by self. Do not free.

Return type:

[str]

Gets the keys of annotations defined in self.

get_description()
Returns:

A string owned by self. Do not free.

Return type:

str

Gets the description used for self.

get_icon_name()
Returns:

A string owned by self. Do not free.

Return type:

str

Gets the icon name for self, if any.

get_implicit_active()
Returns:

A value from the Polkit.ImplicitAuthorization enumeration.

Return type:

Polkit.ImplicitAuthorization

Gets the implicit authorization for self used for subjects in active sessions on a local console.

get_implicit_any()
Returns:

A value from the Polkit.ImplicitAuthorization enumeration.

Return type:

Polkit.ImplicitAuthorization

Gets the implicit authorization for self used for any subject.

get_implicit_inactive()
Returns:

A value from the Polkit.ImplicitAuthorization enumeration.

Return type:

Polkit.ImplicitAuthorization

Gets the implicit authorization for self used for subjects in inactive sessions on a local console.

get_message()
Returns:

A string owned by self. Do not free.

Return type:

str

Gets the message used for self.

get_vendor_name()
Returns:

A string owned by self. Do not free.

Return type:

str

Gets the vendor name for self, if any.

get_vendor_url()
Returns:

A string owned by self. Do not free.

Return type:

str

Gets the vendor URL for self, if any.