Flatpak.InstalledRef

g Flatpak.InstalledRef Flatpak.InstalledRef Flatpak.Ref Flatpak.Ref Flatpak.Ref->Flatpak.InstalledRef GObject.Object GObject.Object GObject.Object->Flatpak.Ref

Subclasses:

None

Methods

Inherited:

Flatpak.Ref (9), GObject.Object (37)

Structs:

GObject.ObjectClass (5)

get_appdata_content_rating ()

get_appdata_content_rating_type ()

get_appdata_license ()

get_appdata_name ()

get_appdata_summary ()

get_appdata_version ()

get_deploy_dir ()

get_eol ()

get_eol_rebase ()

get_installed_size ()

get_is_current ()

get_latest_commit ()

get_origin ()

get_subpaths ()

load_appdata (cancellable)

load_metadata (cancellable)

Virtual Methods

Inherited:

GObject.Object (7)

Properties

Inherited:

Flatpak.Ref (6)

Name

Type

Flags

Short Description

appdata-content-rating

GLib.HashTable

r/w/co

The content rating data from the appdata

appdata-content-rating-type

str

r/w/co

The type of the content rating data from the appdata

appdata-license

str

r/w/co

The license from the appdata

appdata-name

str

r/w/co

The localized name field from the appdata

appdata-summary

str

r/w/co

The localized summary field from the appdata

appdata-version

str

r/w/co

The default version field from the appdata

deploy-dir

str

r/w

Where the application is installed

end-of-life

str

r/w/co

The reason for the ref to be end of life

end-of-life-rebase

str

r/w/co

The new ref for the end-of-lifed ref

installed-size

int

r/w

The installed size of the application

is-current

bool

r/w

Whether the application is current

latest-commit

str

r/w

The latest commit

origin

str

r/w

The origin

subpaths

[str]

r/w

The subpaths for a partially installed ref

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Name

Type

Access

Description

parent

Flatpak.Ref

r

Class Details

class Flatpak.InstalledRef(**kwargs)
Bases:

Flatpak.Ref

Abstract:

No

Structure:

Flatpak.InstalledRefClass

get_appdata_content_rating()
Returns:

the content rating or None

Return type:

{str: str} or None

Returns the content rating field from the appdata. This is a potentially empty mapping of content rating attribute IDs to values, to be interpreted by the semantics of the content rating type (see Flatpak.InstalledRef.get_appdata_content_rating_type()).

New in version 1.4.2.

get_appdata_content_rating_type()
Returns:

the content rating type or None

Return type:

str or None

Returns the content rating type from the appdata. For example, oars-1.0 or oars-1.1.

New in version 1.4.2.

get_appdata_license()
Returns:

the license or None

Return type:

str

Returns the license field from the appdata.

New in version 1.1.2.

get_appdata_name()
Returns:

the name or None

Return type:

str

Returns the name field from the appdata.

The returned string is localized.

New in version 1.1.2.

get_appdata_summary()
Returns:

the summary or None

Return type:

str

Returns the summary field from the appdata.

The returned string is localized.

New in version 1.1.2.

get_appdata_version()
Returns:

the version or None

Return type:

str

Returns the default version field from the appdata.

New in version 1.1.2.

get_deploy_dir()
Returns:

the deploy dir

Return type:

str

Gets the deploy dir of the ref.

get_eol()
Returns:

the end-of-life reason or None

Return type:

str

Returns the end-of-life reason string, or None if the ref is not end-of-lifed.

get_eol_rebase()
Returns:

the end-of-life rebased ref or None

Return type:

str

Returns the end-of-life rebased ref, or None if the ref is not end-of-lifed.

get_installed_size()
Returns:

the installed size

Return type:

int

Returns the installed size of the ref.

get_is_current()
Returns:

True if the ref is current

Return type:

bool

Returns whether the ref is current.

get_latest_commit()
Returns:

the latest commit

Return type:

str or None

Gets the latest commit of the ref.

get_origin()
Returns:

the origin

Return type:

str

Gets the origin of the ref.

get_subpaths()
Returns:

A strv, or None

Return type:

[str]

Returns the subpaths that are installed, or None if all files installed.

load_appdata(cancellable)
Parameters:

cancellable (Gio.Cancellable or None) – a Gio.Cancellable

Raises:

GLib.Error

Returns:

a GLib.Bytes containing the compressed appdata file, or None if an error occurred

Return type:

GLib.Bytes

Loads the compressed xml appdata for this ref (if it exists).

New in version 1.1.2.

load_metadata(cancellable)
Parameters:

cancellable (Gio.Cancellable or None) – a Gio.Cancellable

Raises:

GLib.Error

Returns:

a GLib.Bytes containing the metadata file, or None if an error occurred

Return type:

GLib.Bytes

Loads the metadata file for this ref.

Property Details

Flatpak.InstalledRef.props.appdata_content_rating
Name:

appdata-content-rating

Type:

GLib.HashTable

Default Value:

None

Flags:

READABLE, WRITABLE, CONSTRUCT_ONLY

The content rating data from the appdata

Flatpak.InstalledRef.props.appdata_content_rating_type
Name:

appdata-content-rating-type

Type:

str

Default Value:

None

Flags:

READABLE, WRITABLE, CONSTRUCT_ONLY

The type of the content rating data from the appdata

Flatpak.InstalledRef.props.appdata_license
Name:

appdata-license

Type:

str

Default Value:

None

Flags:

READABLE, WRITABLE, CONSTRUCT_ONLY

The license from the appdata

Flatpak.InstalledRef.props.appdata_name
Name:

appdata-name

Type:

str

Default Value:

None

Flags:

READABLE, WRITABLE, CONSTRUCT_ONLY

The localized name field from the appdata

Flatpak.InstalledRef.props.appdata_summary
Name:

appdata-summary

Type:

str

Default Value:

None

Flags:

READABLE, WRITABLE, CONSTRUCT_ONLY

The localized summary field from the appdata

Flatpak.InstalledRef.props.appdata_version
Name:

appdata-version

Type:

str

Default Value:

None

Flags:

READABLE, WRITABLE, CONSTRUCT_ONLY

The default version field from the appdata

Flatpak.InstalledRef.props.deploy_dir
Name:

deploy-dir

Type:

str

Default Value:

None

Flags:

READABLE, WRITABLE

Where the application is installed

Flatpak.InstalledRef.props.end_of_life
Name:

end-of-life

Type:

str

Default Value:

None

Flags:

READABLE, WRITABLE, CONSTRUCT_ONLY

The reason for the ref to be end of life

Flatpak.InstalledRef.props.end_of_life_rebase
Name:

end-of-life-rebase

Type:

str

Default Value:

None

Flags:

READABLE, WRITABLE, CONSTRUCT_ONLY

The new ref for the end-of-lifed ref

Flatpak.InstalledRef.props.installed_size
Name:

installed-size

Type:

int

Default Value:

0

Flags:

READABLE, WRITABLE

The installed size of the application

Flatpak.InstalledRef.props.is_current
Name:

is-current

Type:

bool

Default Value:

False

Flags:

READABLE, WRITABLE

Whether the application is current

Flatpak.InstalledRef.props.latest_commit
Name:

latest-commit

Type:

str

Default Value:

None

Flags:

READABLE, WRITABLE

The latest commit

Flatpak.InstalledRef.props.origin
Name:

origin

Type:

str

Default Value:

None

Flags:

READABLE, WRITABLE

The origin

Flatpak.InstalledRef.props.subpaths
Name:

subpaths

Type:

[str]

Default Value:

[]

Flags:

READABLE, WRITABLE

The subpaths for a partially installed ref