Enums

Details

class AppStreamGlib.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 AppStreamGlib.AppError(value)

Bases: GLib.Enum

The error type.

FAILED = 0

Generic failure

INVALID_TYPE = 1

Invalid type

class AppStreamGlib.AppKind(value)

Bases: GLib.Enum

The component type.

UNKNOWN = 0

Type invalid or not known

DESKTOP = 1

A desktop application

GENERIC = 10

Generic component

OS_UPDATE = 11

Operating system update

OS_UPGRADE = 12

Operating system upgrade

SHELL_EXTENSION = 13

GNOME Shell extension

LOCALIZATION = 14

Localization data

CONSOLE = 15

Console program

DRIVER = 16

Driver for hardware support

ICON_THEME = 17

An icon theme

FONT = 2

A font add-on

CODEC = 3

A codec add-on

INPUT_METHOD = 4

A input method add-on

WEB_APP = 5

A web appication

SOURCE = 6

A software source

ADDON = 7

An addon, e.g. a plugin

FIRMWARE = 8

A firmware update

RUNTIME = 9

Runtime platform

class AppStreamGlib.AppMergeKind(value)

Bases: GLib.Enum

The component merge kind.

UNKNOWN = 0

Unknown merge type

NONE = 1

No merge to be done

REPLACE = 2

Merge components, replacing

APPEND = 3

Merge components, appending

class AppStreamGlib.AppScope(value)

Bases: GLib.Enum

The application scope.

UNKNOWN = 0

Unknown scope

USER = 1

User scope

SYSTEM = 2

System scope

class AppStreamGlib.AppState(value)

Bases: GLib.Enum

The application state.

UNKNOWN = 0

Unknown state

INSTALLED = 1

Application is installed

PURCHASABLE = 10

Application is available for purchasing

PURCHASING = 11

Application is being purchased

AVAILABLE = 2

Application is available

AVAILABLE_LOCAL = 3

Application is locally available as a file

UPDATABLE = 4

Application is installed and updatable

UNAVAILABLE = 5

Application is referenced, but not available

QUEUED_FOR_INSTALL = 6

Application is queued for install

INSTALLING = 7

Application is being installed

REMOVING = 8

Application is being removed

UPDATABLE_LIVE = 9

Application is installed and updatable live

class AppStreamGlib.AppTrustFlags(value)

Bases: GLib.Enum

The flags to use when checking input.

COMPLETE = 0

Trusted data with no validation

CHECK_DUPLICATES = 1

Check for duplicates

CHECK_VALID_UTF8 = 2

Check for valid UTF-8

class AppStreamGlib.AppValidateFlags(value)

Bases: GLib.Enum

The flags to use when validating.

NONE = 0

No extra flags to use

RELAX = 1

Relax the checks

STRICT = 2

Make the checks more strict

NO_NETWORK = 4

Do not use the network

ALL_APPS = 8

Check all applications in a store

class AppStreamGlib.BundleKind(value)

Bases: GLib.Enum

The bundle type.

UNKNOWN = 0

Type invalid or not known

LIMBA = 1

Limba application bundle

FLATPAK = 2

Flatpak application deployment

SNAP = 3

Snap application deployment

PACKAGE = 4

Package-based application deployment

CABINET = 5

Cabinet firmware deployment

APPIMAGE = 6

AppImage application bundle

class AppStreamGlib.ChecksumTarget(value)

Bases: GLib.Enum

The checksum target type.

UNKNOWN = 0

Unknown state

CONTAINER = 1

Container file, e.g. .cab

CONTENT = 2

Extracted file, e.g. .bin

SIGNATURE = 3

Signature, e.g. .asc or .cat

DEVICE = 4

Device-reported value

class AppStreamGlib.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 AppStreamGlib.FormatKind(value)

Bases: GLib.Enum

The format kind.

UNKNOWN = 0

Not formatd from a file

APPSTREAM = 1

AppStream file

DESKTOP = 2

Desktop file

APPDATA = 3

AppData file

METAINFO = 4

MetaInfo file

class AppStreamGlib.IconError(value)

Bases: GLib.Enum

The error type.

FAILED = 0

Generic failure

class AppStreamGlib.IconKind(value)

Bases: GLib.Enum

The icon type.

UNKNOWN = 0

Type invalid or not known

STOCK = 1

Stock icon or present in the generic icon theme

CACHED = 2

An icon shipped with the AppStream metadata

REMOTE = 3

An icon referenced by a remote URL

EMBEDDED = 4

An embedded Base64 icon

LOCAL = 5

An icon with absolute path and filename

class AppStreamGlib.IconLoadFlags(value)

Bases: GLib.Enum

The flags to use when loading icons.

NONE = 0

No extra flags to use

SEARCH_SIZE = 1

Search first in a size-specific directory

class AppStreamGlib.IdKind(value)

Bases: GLib.Enum

The component type.

UNKNOWN = 0

Type invalid or not known

DESKTOP = 1

A desktop application

GENERIC = 10

Generic component

FONT = 2

A font add-on

CODEC = 3

A codec add-on

INPUT_METHOD = 4

A input method add-on

WEB_APP = 5

A web appication

SOURCE = 6

A software source

ADDON = 7

An addon, e.g. a plugin

FIRMWARE = 8

A firmware update

RUNTIME = 9

Runtime platform

class AppStreamGlib.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 AppStreamGlib.ImageLoadFlags(value)

Bases: GLib.Enum

The flags used for loading images.

NONE = 0

No special flags set

SHARPEN = 1

Sharpen the resulting image

ALWAYS_RESIZE = 16

Always resize the source icon to the perfect size

SET_BASENAME = 2

Set the image basename

SET_CHECKSUM = 4

Set the image checksum

ONLY_SUPPORTED = 8

Only load supported formats like PNG and JPG

class AppStreamGlib.ImageSaveFlags(value)

Bases: GLib.Enum

The flags used for saving images.

NONE = 0

No special flags set

PAD_16_9 = 1

Pad with alpha to 16:9 aspect

SHARPEN = 2

Sharpen the image to clarify detail

BLUR = 4

Blur the image to clear detail

class AppStreamGlib.InfError(value)

Bases: GLib.Enum

The error type.

FAILED = 0

Generic failure

INVALID_TYPE = 1

Invalid type

NOT_FOUND = 2

Data not found

class AppStreamGlib.KudoKind(value)

Bases: GLib.Enum

The kudo type.

UNKNOWN = 0

Type invalid or not known

SEARCH_PROVIDER = 1

Installs a search provider

USER_DOCS = 2

Installs user documentation

APP_MENU = 3

Uses the GNOME application menu

MODERN_TOOLKIT = 4

Uses a modern toolkit like GTK3 or QT5

NOTIFICATIONS = 5

Registers notifications with KDE or GNOME

HIGH_CONTRAST = 6

Installs a high contrast icon

HI_DPI_ICON = 7

Installs a high DPI icon

class AppStreamGlib.LaunchableKind(value)

Bases: GLib.Enum

The launchable type.

UNKNOWN = 0

Type invalid or not known

DESKTOP_ID = 1

A desktop ID

SERVICE = 2

A system service

COCKPIT_MANIFEST = 3

A manifest run by the cockpit project

URL = 4

A web-app

class AppStreamGlib.MarkupConvertFormat(value)

Bases: GLib.Enum

The format used when converting to or from AppStream descriptions.

SIMPLE = 0

UTF-8 text

MARKDOWN = 1

Markdown format

NULL = 2

No output

APPSTREAM = 3

AppStream (passthrough)

HTML = 4

HyperText Markup Language

class AppStreamGlib.NodeError(value)

Bases: GLib.Enum

The error type.

FAILED = 0

Generic failure

INVALID_MARKUP = 1

XML markup was invalid

NO_SUPPORT = 2

No support for parsing

class AppStreamGlib.NodeInsertFlags(value)

Bases: GLib.Enum

The flags to use when inserting a node.

NONE = 0

No extra flags to use

PRE_ESCAPED = 1

The data is already XML escaped

MARK_TRANSLATABLE = 16

Mark the tag name as translatable

SWAPPED = 2

The name and key should be swapped

BASE64_ENCODED = 32

The data is Base64 enoded

NO_MARKUP = 4

Preformat the ‘description’ markup

DEDUPE_LANG = 8

No xml:lang keys where text matches ‘C’

class AppStreamGlib.NodeToXmlFlags(value)

Bases: GLib.Enum

The flags for converting to XML.

NONE = 0

No extra flags to use

ADD_HEADER = 1

Add an XML header to the data

SORT_CHILDREN = 16

Sort the tags by alphabetical order

FORMAT_MULTILINE = 2

Split up children with a newline

FORMAT_INDENT = 4

Indent the XML by child depth

INCLUDE_SIBLINGS = 8

Include the siblings when converting

class AppStreamGlib.ProblemKind(value)

Bases: GLib.Enum

The problem type.

UNKNOWN = 0

Type invalid or not known

TAG_DUPLICATED = 1

A tag is duplicated

VALUE_MISSING = 10

A value is required

URL_NOT_FOUND = 11

The URL is not found

FILE_INVALID = 12

The file is invalid

ASPECT_RATIO_INCORRECT = 13

The image aspect ratio is wrong

RESOLUTION_INCORRECT = 14

The image resolution is wrong

TAG_MISSING = 2

A required tag is missing

TAG_INVALID = 3

A tag value is invalid

ATTRIBUTE_MISSING = 4

A required attribute is missing

ATTRIBUTE_INVALID = 5

An attribute is invalid

MARKUP_INVALID = 6

The XML markup is invalid

STYLE_INCORRECT = 7

Style guidelines are incorrect

TRANSLATIONS_REQUIRED = 8

Translations are required

DUPLICATE_DATA = 9

Some data is duplicated

class AppStreamGlib.ProvideKind(value)

Bases: GLib.Enum

The provide type.

UNKNOWN = 0

Type invalid or not known

LIBRARY = 1

A library file

FIRMWARE_FLASHED = 10

A flashed firmware GUID

ID = 11

An AppStream component ID

BINARY = 2

A binary file

FONT = 3

A font file

MODALIAS = 4

A hardware modalias

FIRMWARE_RUNTIME = 5

A runtime-loadable firmware file

PYTHON2 = 6

A Python 2 module

PYTHON3 = 7

A Python 3 module

DBUS_SESSION = 8

A D-Bus session service

DBUS_SYSTEM = 9

A D-Bus system service

class AppStreamGlib.ReleaseKind(value)

Bases: GLib.Enum

The release size kind.

New in version 0.7.6.

UNKNOWN = 0

Unknown release type

STABLE = 1

A stable release

DEVELOPMENT = 2

A development release

class AppStreamGlib.ReleaseState(value)

Bases: GLib.Enum

The release state.

UNKNOWN = 0

Unknown state

INSTALLED = 1

Release is installed

AVAILABLE = 2

Release is available

class AppStreamGlib.RequireCompare(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

GLOB = 7

Filename glob, e.g. test*

REGEX = 8

A regular expression, e.g. fw[0-255]

class AppStreamGlib.RequireKind(value)

Bases: GLib.Enum

The require type.

UNKNOWN = 0

Type invalid or not known

ID = 1

Component ID

FIRMWARE = 2

Device firmware version

HARDWARE = 3

Hardware device, typically a GUID

MODALIAS = 4

Modalias string

KERNEL = 5

Kernel version

MEMORY = 6

Amount of installed memory in MiB

class AppStreamGlib.ScreenshotKind(value)

Bases: GLib.Enum

The screenshot type.

UNKNOWN = 0

Type invalid or not known

NORMAL = 1

Optional screenshot

DEFAULT = 2

Screenshot to show by default

class AppStreamGlib.SizeKind(value)

Bases: GLib.Enum

The release size kind.

UNKNOWN = 0

Not known

INSTALLED = 1

Installed size

DOWNLOAD = 2

Download size

class AppStreamGlib.StoreError(value)

Bases: GLib.Enum

The error type.

FAILED = 0

Generic failure

class AppStreamGlib.StoreSearchFlags(value)

Bases: GLib.Enum

The flags to use when searching in the store.

NONE = 0

No extra flags to use

USE_WILDCARDS = 1

Process the globs

class AppStreamGlib.StoreWatchFlags(value)

Bases: GLib.Enum

The flags to use when local files are added or removed from the store.

NONE = 0

No extra flags to use

ADDED = 1

Add applications if files change or are added

REMOVED = 2

Remove applications if files are changed or deleted

class AppStreamGlib.SuggestKind(value)

Bases: GLib.Enum

The suggest type.

UNKNOWN = 0

Type invalid or not known

UPSTREAM = 1

Upstream-specified suggestion

HEURISTIC = 2

Suggestion from a heuristic

class AppStreamGlib.Tag(value)

Bases: GLib.Enum

The tag type.

UNKNOWN = 0

Type invalid or not known

COMPONENTS = 1

components

CATEGORIES = 10

categories

CATEGORY = 11

category

KEYWORDS = 12

keywords

KEYWORD = 13

keyword

MIMETYPES = 14

mimetypes

MIMETYPE = 15

mimetype

PROJECT_GROUP = 16

project_group

PROJECT_LICENSE = 17

project_license

SCREENSHOT = 18

screenshot

SCREENSHOTS = 19

screenshots

COMPONENT = 2

component

UPDATE_CONTACT = 20

update_contact

IMAGE = 21

image

COMPULSORY_FOR_DESKTOP = 22

compulsory_for_desktop

PRIORITY = 23

priority

CAPTION = 24

caption

LANGUAGES = 25

languages

LANG = 26

lang

METADATA = 27

metadata

VALUE = 28

value

RELEASES = 29

releases

ID = 3

id

RELEASE = 30

release

ARCHITECTURES = 31

architectures

ARCH = 32

arch

METADATA_LICENSE = 33

metadata_license

PROVIDES = 34

provides

EXTENDS = 35

extends

DEVELOPER_NAME = 36

developer_name

KUDOS = 37

kudos

KUDO = 38

kudo

SOURCE_PKGNAME = 39

source_pkgname

PKGNAME = 4

pkgname

VETOS = 40

vetos

VETO = 41

veto

BUNDLE = 42

bundle

PERMISSIONS = 43

permissions

PERMISSION = 44

permission

LOCATION = 45

location

CHECKSUM = 46

checksum

SIZE = 47

size

TRANSLATION = 48

translation

CONTENT_RATING = 49

content_rating

NAME = 5

name

CONTENT_ATTRIBUTE = 50

content_attribute

VERSION = 51

version

REVIEWS = 52

reviews

REVIEW = 53

review

REVIEWER_NAME = 54

reviewer_name

REVIEWER_ID = 55

reviewer_id

SUGGESTS = 56

suggests

REQUIRES = 57

requires

CUSTOM = 58

custom

LAUNCHABLE = 59

launchable

SUMMARY = 6

summary

AGREEMENT = 60

agreement

AGREEMENT_SECTION = 61

agreement_section

P = 62
LI = 63
UL = 64
OL = 65
BINARY = 66
FONT = 67
DBUS = 68
MODALIAS = 69
DESCRIPTION = 7

description

LIBRARY = 70
URL = 8

url

ICON = 9

icon

class AppStreamGlib.TagFlags(value)

Bases: GLib.Enum

The flags to use when matching AppStreamGlib.Tag’s.

NONE = 0

No special actions to use

USE_FALLBACKS = 1

Use fallback tag names

USE_TRANSLATED = 2

Use translated tag names

class AppStreamGlib.TranslationKind(value)

Bases: GLib.Enum

The translation type.

UNKNOWN = 0

Type invalid or not known

GETTEXT = 1

Gettext translation system

QT = 2

QT translation system

class AppStreamGlib.UrgencyKind(value)

Bases: GLib.Enum

The urgency of a release.

UNKNOWN = 0

Urgency invalid or not known

LOW = 1

Low urgency release

MEDIUM = 2

Medium urgency release

HIGH = 3

High urgency release

CRITICAL = 4

Critically urgent release

class AppStreamGlib.UrlKind(value)

Bases: GLib.Enum

The URL type.

UNKNOWN = 0

Type invalid or not known

HOMEPAGE = 1

Application project homepage

CONTACT = 10

URL to contact developer on

BUGTRACKER = 2

Application bugtracker

FAQ = 3

Application FAQ page

DONATION = 4

Application donation page

HELP = 5

Application help manual

MISSING = 6

The package is available, but missing

TRANSLATE = 7

Application translation page

DETAILS = 8

Release details

SOURCE = 9

Link to source code

class AppStreamGlib.UtilsError(value)

Bases: GLib.Enum

The error type.

FAILED = 0

Generic failure

INVALID_TYPE = 1

Invalid type

class AppStreamGlib.UtilsLocation(value)

Bases: GLib.Enum

The flags used when installing and removing metadata files.

SHARED = 0

Installed by the vendor, shared

CACHE = 1

Installed as metadata, shared

USER = 2

Installed by the user