Polkit.ActionDescription¶
- Subclasses:
 None
Methods¶
- Inherited:
 - Structs:
 
  | 
|
  | 
|
Virtual Methods¶
- Inherited:
 
Properties¶
None
Signals¶
- Inherited:
 
Fields¶
- Inherited:
 
Class Details¶
- class Polkit.ActionDescription(**kwargs)¶
 - Bases:
 - Abstract:
 No
- Structure:
 
Object used to encapsulate a registered action.
- get_action_id()¶
 - Returns:
 A string owned by self. Do not free.
- Return type:
 
Gets the action id for self.
- get_annotation(key)¶
 - Parameters:
 key (
str) – An annotation key.- Returns:
 Noneif there is no annoation with key, otherwise the annotation value owned by self. Do not free.- Return type:
 
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:
 
Gets the description used for self.
- get_icon_name()¶
 - Returns:
 A string owned by self. Do not free.
- Return type:
 
Gets the icon name for self, if any.
- get_implicit_active()¶
 - Returns:
 A value from the
Polkit.ImplicitAuthorizationenumeration.- Return type:
 
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.ImplicitAuthorizationenumeration.- Return type:
 
Gets the implicit authorization for self used for any subject.
- get_implicit_inactive()¶
 - Returns:
 A value from the
Polkit.ImplicitAuthorizationenumeration.- Return type:
 
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:
 
Gets the message used for self.
- get_vendor_name()¶
 - Returns:
 A string owned by self. Do not free.
- Return type:
 
Gets the vendor name for self, if any.