Polkit.Identity¶
- Implementations:
Methods¶
class |
|
|
|
|
|
|
Virtual Methods¶
|
|
|
|
|
Properties¶
None
Signals¶
None
Fields¶
None
Class Details¶
- class Polkit.Identity¶
- Bases:
- Structure:
Polkit.Identity
is an abstract type for representing one or more identities.- classmethod from_string(str)¶
- Parameters:
str (
str
) – A string obtained fromPolkit.Identity.to_string
().- Raises:
- Returns:
A
Polkit.Identity
orNone
if error is set. Free withGObject.Object.unref
().- Return type:
Creates an object from str that implements the
Polkit.Identity
interface.
- equal(b)¶
- Parameters:
b (
Polkit.Identity
) – APolkit.Identity
.- Returns:
- Return type:
Checks if self and b are equal, ie. represent the same identity.
This function can be used in e.g. g_hash_table_new().
- hash()¶
- Returns:
A hash code.
- Return type:
Gets a hash code for self that can be used with e.g. g_hash_table_new().
- to_string()¶
-
Serializes self to a string that can be used in
Polkit.Identity.from_string
().
- do_equal(b) virtual¶
- Parameters:
b (
Polkit.Identity
) – APolkit.Identity
.- Returns:
- Return type:
Checks if a and b are equal, ie. represent the same identity.
This function can be used in e.g. g_hash_table_new().
- do_hash() virtual¶
- Returns:
A hash code.
- Return type:
Gets a hash code for identity that can be used with e.g. g_hash_table_new().
- do_to_string() virtual¶
-
Serializes identity to a string that can be used in
Polkit.Identity.from_string
().