Polkit.Details

g GObject.Object GObject.Object Polkit.Details Polkit.Details GObject.Object->Polkit.Details

Subclasses:

None

Methods

Inherited:

GObject.Object (37)

Structs:

GObject.ObjectClass (5)

class

new ()

get_keys ()

insert (key, value)

lookup (key)

Virtual Methods

Inherited:

GObject.Object (7)

Properties

None

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Class Details

class Polkit.Details(**kwargs)
Bases:

GObject.Object

Abstract:

No

Structure:

Polkit.DetailsClass

An object used for passing details around.

classmethod new()
Returns:

A Polkit.Details object. Free with GObject.Object.unref().

Return type:

Polkit.Details

Creates a new Polkit.Details object.

get_keys()
Returns:

None if there are no keys otherwise an array of strings that should be freed with GLib.strfreev().

Return type:

[str] or None

Gets a list of all keys on self.

insert(key, value)
Parameters:
  • key (str) – A key.

  • value (str or None) – A value.

Inserts a copy of key and value on self.

If value is None, the key will be removed.

lookup(key)
Parameters:

key (str) – A key.

Returns:

None if there is no value for key, otherwise a string owned by self.

Return type:

str or None

Gets the value for key on self.