Enums

Details

class AppStream.AgreementKind(value)

Bases: GLib.Enum

The kind of the agreement.

UNKNOWN = 0

Unknown value

GENERIC = 1

A generic agreement without a specific type

EULA = 2

An End User License Agreement

PRIVACY = 3

A privacy agreement, typically a GDPR statement

class AppStream.ArtifactKind(value)

Bases: GLib.Enum

The artifact type.

UNKNOWN = 0

Type invalid or not known

SOURCE = 1

The artifact describes software sources.

BINARY = 2

The artifact describes a binary distribution of the component.

class AppStream.BundleKind(value)

Bases: GLib.Enum

The bundle type.

UNKNOWN = 0

Type invalid or not known

PACKAGE = 1

A native package (currently not used)

LIMBA = 2

A Limba bundle

FLATPAK = 3

A Flatpak bundle

APPIMAGE = 4

An AppImageKit bundle

SNAP = 5

A Snap/Snappy bundle

TARBALL = 6

A (maybe compressed) tarball.

class AppStream.ChecksumKind(value)

Bases: GLib.Enum

Checksums supported by AppStream.Release

NONE = 0

No checksum

SHA1 = 1

SHA1 checksum

SHA256 = 2

SHA256 checksum

BLAKE2B = 3

BLAKE2b checksum

BLAKE2S = 4

BLAKE2s checksum

class AppStream.ComponentKind(value)

Bases: GObject.GEnum

The type of an AppStream.Component.

classmethod from_string(kind_str)
Parameters:kind_str (str) – the string.
Returns:a AppStream.ComponentKind or AppStream.ComponentKind.UNKNOWN for unknown
Return type:AppStream.ComponentKind

Converts the text representation to an enumerated value.

classmethod to_string(kind)
Parameters:kind (AppStream.ComponentKind) – the AppStream.ComponentKind.
Returns:string version of kind
Return type:str

Converts the enumerated value to an text representation.

UNKNOWN = 0

Type invalid or not known

GENERIC = 1

A generic (= without specialized type) component

DRIVER = 10

A driver

LOCALIZATION = 11

Software localization (usually l10n resources)

SERVICE = 12

A system service launched by the init system

REPOSITORY = 13

A remote software or data source

OPERATING_SYSTEM = 14

A computer operating system

ICON_THEME = 15

An icon theme following the XDG specification

RUNTIME = 16

An application runtime platform

DESKTOP_APP = 2

An application with a .desktop-file

CONSOLE_APP = 3

A console application

WEB_APP = 4

A web application

ADDON = 5

An extension of existing software, which does not run standalone

FONT = 6

A font

CODEC = 7

A multimedia codec

INPUTMETHOD = 8

An input-method provider

FIRMWARE = 9

Firmware

class AppStream.ComponentScope(value)

Bases: GLib.Enum

Scope of the AppStream.Component (system-wide or user-scope)

UNKNOWN = 0

Unknown scope

SYSTEM = 1

System scope

USER = 2

User scope

class AppStream.ContentRatingValue(value)

Bases: GLib.Enum

The specified level of an content_rating rating ID.

UNKNOWN = 0

Unknown value

NONE = 1

None

MILD = 2

A small amount

MODERATE = 3

A moderate amount

INTENSE = 4

An intense amount

class AppStream.ControlKind(value)

Bases: GLib.Enum

Kind of an input method for users to control software

UNKNOWN = 0

Unknown kind

POINTING = 1

Mouse/cursors/other pointing device

KEYBOARD = 2

Keyboard input

CONSOLE = 3

Console / command-line interface

TOUCH = 4

Touch input

GAMEPAD = 5

Gamepad input (any game controller with wheels/buttons/joysticks)

VOICE = 6

Control via voice recognition/activation

VISION = 7

Computer vision / visual object and sign detection

class AppStream.FormatKind(value)

Bases: GLib.Enum

Format of the AppStream metadata.

UNKNOWN = 0

Unknown metadata format.

XML = 1

AppStream XML metadata.

YAML = 2

AppStream YAML (DEP-11) metadata.

DESKTOP_ENTRY = 3

XDG Desktop Entry data.

class AppStream.FormatStyle(value)

Bases: GLib.Enum

There are a few differences between AppStream’s metainfo files (shipped by upstream projects) and the collection metadata (shipped by distributors). The data source kind indicates which style we should process. Usually you do not want to set this explicitly.

UNKNOWN = 0
METAINFO = 1

Parse AppStream upstream metadata (metainfo files)

COLLECTION = 2

Parse AppStream metadata collections (shipped by software distributors)

class AppStream.FormatVersion(value)

Bases: GLib.Enum

Format version / API level of the AppStream metadata.

V0_6 = 0

0.6

V0_7 = 1

0.7

V0_8 = 2

0.8

V0_9 = 3

0.9

V0_10 = 4

0.10

V0_11 = 5

0.11

V0_12 = 6

0.12

class AppStream.IconKind(value)

Bases: GLib.Enum

The icon type.

UNKNOWN = 0

Unknown icon kind

CACHED = 1

Icon in the internal caches

STOCK = 2

Stock icon name

LOCAL = 3

Local icon name

REMOTE = 4

Remote icon URL

class AppStream.ImageKind(value)

Bases: GLib.Enum

The image type.

UNKNOWN = 0

Type invalid or not known

SOURCE = 1

The source image at full resolution

THUMBNAIL = 2

A thumbnail at reduced resolution

class AppStream.IssueKind(value)

Bases: GLib.Enum

Checksums supported by AppStream.Release

UNKNOWN = 0

Unknown issue type

GENERIC = 1

Generic issue type

CVE = 2

Common Vulnerabilities and Exposures issue

class AppStream.IssueSeverity(value)

Bases: GLib.Enum

The severity of an issue found by AppStream.Validator

UNKNOWN = 0
ERROR = 1

There is a serious error in your metadata

WARNING = 2

Something which should be fixed, but is not fatal

INFO = 3

Non-essential information on how to improve your metadata

PEDANTIC = 4

Pedantic information

class AppStream.LaunchableKind(value)

Bases: GLib.Enum

Type of launch system the entries belong to.

UNKNOWN = 0

Unknown kind

DESKTOP_ID = 1

Launch by desktop-id

SERVICE = 2

A systemd/SysV-init service name

COCKPIT_MANIFEST = 3

A Cockpit manifest / package name

URL = 4

A web HTTPS URL to launch a web application from

class AppStream.MergeKind(value)

Bases: GLib.Enum

Defines how AppStream.Component data should be merged if the component is set for merge.

NONE = 0

No merge is happening.

REPLACE = 1

Merge replacing data of target.

APPEND = 2

Merge appending data to target.

REMOVE_COMPONENT = 3

Remove the entire component if it matches.

class AppStream.MetadataError(value)

Bases: GLib.Enum

A metadata processing error.

FAILED = 0

Generic failure.

PARSE = 1

Unable to parse the metadata file.

FORMAT_UNEXPECTED = 2

Expected collection metadata but got metainfo metadata, or vice versa.

NO_COMPONENT = 3

We expected a component in the pool, but couldn’t find one.

VALUE_MISSING = 4

A essential value is missing in the source document.

class AppStream.PoolError(value)

Bases: GLib.Enum

A metadata pool error.

FAILED = 0

Generic failure

TARGET_NOT_WRITABLE = 1

We do not have write-access to the cache target location.

INCOMPLETE = 2

The pool was loaded, but we had to ignore some metadata.

COLLISION = 3

An AppStream-ID collision occured (a component with that ID already existed in the pool)

OLD_CACHE = 4

Some issue with an old on-disk cache occured.

class AppStream.ProvidedKind(value)

Bases: GLib.Enum

Type of the public interface components can provide.

UNKNOWN = 0

Unknown kind

LIBRARY = 1

A shared library

FIRMWARE_RUNTIME = 10

Firmware flashed at runtime.

FIRMWARE_FLASHED = 11

Firmware flashed permanently to the device.

ID = 12

An AppStream component

BINARY = 2

A binary installed into a directory in PATH

MEDIATYPE = 3

Provides a handler for a mimetype

FONT = 4

A font

MODALIAS = 5

A modalias

PYTHON_2 = 6

A Python2 module

PYTHON = 7

A Python3 module

DBUS_SYSTEM = 8

A DBus service name on the system bus.

DBUS_USER = 9

A DBus service name on the user/session bus.

class AppStream.RelationCompare(value)

Bases: GLib.Enum

The relational comparison type.

UNKNOWN = 0

Comparison predicate invalid or not known

EQ = 1

Equal to

NE = 2

Not equal to

LT = 3

Less than

GT = 4

Greater than

LE = 5

Less than or equal to

GE = 6

Greater than or equal to

class AppStream.RelationItemKind(value)

Bases: GLib.Enum

Type of the item an AppStream.Relation is for.

UNKNOWN = 0

Unknown kind

ID = 1

A component ID

MODALIAS = 2

A hardware modalias

KERNEL = 3

An operating system kernel (like Linux)

MEMORY = 4

A system RAM requirement

FIRMWARE = 5

A device firmware requirement (used by fwupd)

CONTROL = 6

An input method for users to control software

class AppStream.RelationKind(value)

Bases: GLib.Enum

Type of a component’s relation to other items.

UNKNOWN = 0

Unknown kind

REQUIRES = 1

The referenced item is required by the component

RECOMMENDS = 2

The referenced item is recommended

class AppStream.ReleaseKind(value)

Bases: GLib.Enum

The release size kind.

New in version 0.12.0.

UNKNOWN = 0

Unknown release type

STABLE = 1

A stable release for end-users

DEVELOPMENT = 2

A development release or pre-release for testing

class AppStream.ReleaseUrlKind(value)

Bases: GLib.Enum

AppStream.ReleaseUrlKind.UNKNOWN Unknown release web URL type The release URL kinds.

New in version 0.12.5.

UNKNOWN = 0
DETAILS = 1

Weblink to detailed release notes.

class AppStream.ScreenshotKind(value)

Bases: GLib.Enum

The screenshot type.

UNKNOWN = 0

Type invalid or not known

DEFAULT = 1

The primary screenshot to show by default

EXTRA = 2

Optional screenshot

class AppStream.ScreenshotMediaKind(value)

Bases: GLib.Enum

The media kind contained in this screenshot.

UNKNOWN = 0

Media kind is unknown

IMAGE = 1

The screenshot contains images

VIDEO = 2

The screenshot contains videos

class AppStream.SizeKind(value)

Bases: GLib.Enum

The artifact size kind.

New in version 0.8.6.

UNKNOWN = 0

Unknown size

DOWNLOAD = 1

Size of download of component

INSTALLED = 2

Size of installed component

class AppStream.SuggestedKind(value)

Bases: GLib.Enum

The suggested type.

UNKNOWN = 0

Unknown suggested kind

UPSTREAM = 1

Suggestions provided by the upstream project.

HEURISTIC = 2

Suggestions provided by automatic heuristics.

class AppStream.TranslationKind(value)

Bases: GLib.Enum

The translation type.

UNKNOWN = 0

Type invalid or not known

GETTEXT = 1

Gettext translation domain

QT = 2

Qt translation domain

class AppStream.UrgencyKind(value)

Bases: GLib.Enum

The urgency of an AppStream.Release

UNKNOWN = 0

Urgency is unknown or not set

LOW = 1

Low urgency

MEDIUM = 2

Medium urgency

HIGH = 3

High urgency

CRITICAL = 4

Critical urgency

class AppStream.UrlKind(value)

Bases: GLib.Enum

The URL type.

UNKNOWN = 0

Type invalid or not known

HOMEPAGE = 1

Project homepage

BUGTRACKER = 2

Bugtracker

FAQ = 3

FAQ page

HELP = 4

Help manual

DONATION = 5

Page with information about how to donate to the project

TRANSLATE = 6

Page with instructions on how to translate the project / submit translations.

CONTACT = 7

Contact the developers

class AppStream.VideoCodecKind(value)

Bases: GLib.Enum

Supported video codecs.

UNKNOWN = 0

Unknown video codec

VP9 = 1

The VP9 video codec

AV1 = 2

The AV1 video codec

class AppStream.VideoContainerKind(value)

Bases: GLib.Enum

Supported video codecs.

UNKNOWN = 0

Unknown video container

MKV = 1

The Matroska video (MKV) container

WEBM = 2

The WebM video container