AppStreamGlib.Checksum¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
class |
|
class |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
None
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
parent_instance |
r |
Class Details¶
- class AppStreamGlib.Checksum(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
- classmethod new()[source]¶
- Returns:
- Return type:
Creates a new
AppStreamGlib.Checksum
.New in version 0.4.2.
- classmethod target_from_string(target)[source]¶
- Parameters:
target (
str
) – a source kind string- Returns:
A
AppStreamGlib.ChecksumTarget
, e.g.AppStreamGlib.ChecksumTarget.CONTAINER
.- Return type:
Converts the text representation to an enumerated value.
New in version 0.4.2.
- classmethod target_to_string(target)[source]¶
- Parameters:
target (
AppStreamGlib.ChecksumTarget
) – theAppStreamGlib.ChecksumTarget
.- Returns:
string version of target, or
None
for unknown- Return type:
Converts the enumerated value to an text representation.
New in version 0.4.2.
- get_filename()[source]¶
- Returns:
URL
- Return type:
Gets the full qualified URL for the checksum, usually pointing at some mirror.
New in version 0.4.2.
- get_value()[source]¶
- Returns:
filename
- Return type:
Gets the suggested value the checksum, including file extension.
New in version 0.4.2.
- set_filename(filename)[source]¶
- Parameters:
filename (
str
) – the URL.
Sets the filename used to generate the checksum.
New in version 0.4.2.
- set_kind(kind)[source]¶
- Parameters:
kind (
GLib.ChecksumType
) – theGLib.ChecksumType
, e.g.GLib.ChecksumType.SHA1
.
Sets the checksum kind.
New in version 0.4.2.
- set_target(target)[source]¶
- Parameters:
target (
AppStreamGlib.ChecksumTarget
) – theGLib.ChecksumType
, e.g.AppStreamGlib.ChecksumTarget.CONTAINER
.
Sets the checksum target.
New in version 0.4.2.