AppStreamGlib.Require¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
class |
|
class |
|
class |
|
class |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
None
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
|---|---|---|---|
parent_instance |
r |
Class Details¶
- class AppStreamGlib.Require(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
- classmethod compare_from_string(compare)[source]¶
- Parameters:
compare (
str) – the string.- Returns:
a
AppStreamGlib.RequireCompare, orAppStreamGlib.RequireCompare.UNKNOWNfor unknown.- Return type:
Converts the text representation to an enumerated value.
New in version 0.6.7.
- classmethod compare_to_string(compare)[source]¶
- Parameters:
compare (
AppStreamGlib.RequireCompare) – theAppStreamGlib.RequireCompare.- Returns:
string version of compare
- Return type:
Converts the enumerated value to an text representation.
New in version 0.6.7.
- classmethod kind_from_string(kind)[source]¶
- Parameters:
kind (
str) – the string.- Returns:
a
AppStreamGlib.RequireKind, orAppStreamGlib.RequireKind.UNKNOWNfor unknown.- Return type:
Converts the text representation to an enumerated value.
New in version 0.6.7.
- classmethod kind_to_string(kind)[source]¶
- Parameters:
kind (
AppStreamGlib.RequireKind) – theAppStreamGlib.RequireKind.- Returns:
string version of kind
- Return type:
Converts the enumerated value to an text representation.
New in version 0.6.7.
- classmethod new()[source]¶
- Returns:
- Return type:
Creates a new
AppStreamGlib.Require.New in version 0.6.7.
- equal(require2)[source]¶
- Parameters:
require2 (
AppStreamGlib.Require) – aAppStreamGlib.Requireinstance.- Returns:
Truefor success- Return type:
Checks if two requires are the same.
New in version 0.7.7.
- get_compare()[source]¶
- Returns:
- Return type:
Gets the require version comparison type.
New in version 0.6.7.
- get_value()[source]¶
- Returns:
the value, e.g. “bootloader”
- Return type:
Gets the require value if set.
New in version 0.6.7.
- get_version()[source]¶
- Returns:
the version, e.g. “0.1.2”
- Return type:
Gets the require version if set.
New in version 0.6.7.
- set_compare(compare)[source]¶
- Parameters:
compare (
AppStreamGlib.RequireCompare) – theAppStreamGlib.RequireKind, e.g.AppStreamGlib.RequireKind.ID.
Sets the require version comparison type.
New in version 0.6.7.
- set_kind(kind)[source]¶
- Parameters:
kind (
AppStreamGlib.RequireKind) – theAppStreamGlib.RequireKind, e.g.AppStreamGlib.RequireKind.ID.
Sets the require kind.
New in version 0.6.7.
- set_value(value)[source]¶
- Parameters:
value (
str) – an require version, e.g.firmware
Sets the require value.
New in version 0.6.7.