AppStream.Checksum

g AppStream.Checksum AppStream.Checksum GObject.Object GObject.Object GObject.Object->AppStream.Checksum

Subclasses:

None

Methods

Inherited:

GObject.Object (37)

Structs:

GObject.ObjectClass (5)

class

new ()

class

new_with_value (kind, value)

get_kind ()

get_value ()

set_kind (kind)

set_value (value)

Virtual Methods

Inherited:

GObject.Object (7)

Properties

None

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Name

Type

Access

Description

parent_instance

GObject.Object

r

Class Details

class AppStream.Checksum(**kwargs)
Bases:

GObject.Object

Abstract:

No

Structure:

AppStream.ChecksumClass

classmethod new()
Returns:

an AppStream.Checksum

Return type:

AppStream.Checksum

Creates a new AppStream.Checksum.

classmethod new_with_value(kind, value)
Parameters:
Returns:

an AppStream.Checksum

Return type:

AppStream.Checksum

Creates a new AppStream.Checksum with the given hash function and hash value.

New in version 0.12.11.

get_kind()
Returns:

the AppStream.ChecksumKind

Return type:

AppStream.ChecksumKind

Gets the checksum type.

get_value()
Returns:

the checksum.

Return type:

str

Gets the checksum, usually in its hexadecimal form.

set_kind(kind)
Parameters:

kind (AppStream.ChecksumKind) – the AppStream.ChecksumKind, e.g. AppStream.ChecksumKind.SHA256.

Sets the checksum type.

set_value(value)
Parameters:

value (str) – the new value.

Sets the checksum value filename.