Fwupd.Request¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
class |
|
class |
|
class |
|
class |
|
class |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r/w |
|||
r/w |
|||
r/w |
|||
r/w |
|||
r/w |
|||
r/w |
Signals¶
- Inherited:
Name |
Short Description |
---|---|
The |
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
parent_instance |
r |
Class Details¶
- class Fwupd.Request(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
A user request from the device.
See also: [class`FwupdDevice`]
- classmethod flag_from_string(flag)[source]¶
-
Converts a string to an enumerated request flag.
New in version 1.8.6.
- classmethod flag_to_string(flag)[source]¶
- Parameters:
flag (
int
) – a request flag, e.g.Fwupd.REQUEST_FLAG_NONE
- Returns:
identifier string
- Return type:
Converts an enumerated request flag to a string.
New in version 1.8.6.
- classmethod from_variant(value)[source]¶
- Parameters:
value (
GLib.Variant
) – the serialized data- Returns:
a new
Fwupd.Request
, orNone
if value was invalid- Return type:
Creates a new request using serialized data.
New in version 1.6.2.
- classmethod kind_from_string(kind)[source]¶
- Parameters:
- Returns:
enumerated value
- Return type:
Converts a string to an enumerated update message kind.
New in version 1.6.2.
- classmethod kind_to_string(kind)[source]¶
- Parameters:
kind (
Fwupd.RequestKind
) – a update message kind, e.g.Fwupd.RequestKind.IMMEDIATE
- Returns:
identifier string
- Return type:
Converts an enumerated update message kind to a string.
New in version 1.6.2.
- classmethod new()[source]¶
- Returns:
a new
Fwupd.Request
- Return type:
Creates a new request.
New in version 1.6.2.
- add_flag(flag)[source]¶
- Parameters:
flag (
int
) – the #FwupdRequestFlags
Adds a specific flag to the request.
New in version 1.8.6.
- emit_invalidate()[source]¶
Emits an
invalidate
signal to signify that the request is no longer valid, and any visible UI components should be hidden.New in version 1.9.17.
- get_created()[source]¶
- Returns:
the UNIX time, or 0 if unset
- Return type:
Gets when the request was created.
New in version 1.6.2.
- get_flags()[source]¶
- Returns:
request flags, or 0 if unset
- Return type:
Gets the request flags.
New in version 1.8.6.
- get_kind()[source]¶
- Returns:
the kind value, e.g. %FWUPD_STATUS_REQUEST_WRITE
- Return type:
Returns what the request is currently doing.
New in version 1.6.2.
- get_message()[source]¶
-
Gets the update message, generating a generic one using the request ID if possible.
New in version 1.6.2.
- remove_flag(flag)[source]¶
- Parameters:
flag (
int
) – the #FwupdRequestFlags
Removes a specific flag from the request.
New in version 1.8.6.
- set_created(created)[source]¶
- Parameters:
created (
int
) – the UNIX time
Sets when the request was created.
New in version 1.6.2.
- set_device_id(device_id)[source]¶
-
Sets the device_id that created the request.
New in version 1.6.2.
- set_flags(flags)[source]¶
- Parameters:
flags (
int
) – request flags, e.g.Fwupd.REQUEST_FLAG_NONE
Sets the request flags.
New in version 1.8.6.
- set_kind(kind)[source]¶
- Parameters:
kind (
Fwupd.RequestKind
) – the kind value, e.g. %FWUPD_STATUS_REQUEST_WRITE
Sets what the request is currently doing.
New in version 1.6.2.
- to_variant()[source]¶
- Returns:
the serialized data, or
None
for error- Return type:
Serialize the request data.
New in version 1.6.2.
- do_invalidate() virtual¶
Signal Details¶
- Fwupd.Request.signals.invalidate(request)¶
- Signal Name:
invalidate
- Flags:
- Parameters:
request (
Fwupd.Request
) – The object which received the signal
The
::invalidate
signal is emitted when the request is no longer valid, and any visible UI components should be hidden.New in version 1.9.17.
Property Details¶
- Fwupd.Request.props.device_id¶
-
The device ID for the request.
New in version 1.8.2.
- Fwupd.Request.props.flags¶
-
The flags for the request.
New in version 1.8.6.
- Fwupd.Request.props.id¶
-
The request identifier.
New in version 1.6.2.
- Fwupd.Request.props.image¶
-
The image link for the request.
New in version 1.6.2.
- Fwupd.Request.props.kind¶
-
The kind of the request.
New in version 1.6.2.