Class
AppStreamComposeCompose
Instance methods
asc_compose_add_allowed_cid
Adds a component ID to the allowlist. If the list is not empty, only components in the list will be added to the metadata output.
asc_compose_finalize_result
Perform final validation of generated data for the specified result container.
asc_compose_finalize_results
Perform final validation of generated data.
Calling this function is not necessary, unless the final check was explicitly
disabled using the ASC_COMPOSE_FLAG_NO_FINAL_CHECK
flag.
asc_compose_get_icon_policy
Get the policy for how icons should be distributed to any AppStream clients.
asc_compose_get_max_screenshot_size
Get the maximum size a screenshot video or image can have. A size < 0 may be returned for no limit, setting a limit of 0 will disable screenshots.
asc_compose_get_media_baseurl
Get the media base URL to be used for the generated data,
or NULL
if no media is cached.
asc_compose_has_errors
Check if the last run generated any errors (which will cause metadata to be ignored).
asc_compose_remove_custom_allowed
Remove a key from the allowlist used to filter the <custom/>
tag entries.
asc_compose_reset
Reset the results, units and run-specific settings so the instance can be reused for another metadata generation run.
asc_compose_set_cainfo
Set a CA file holding one or more certificates to verify peers with
for download operations performed by this AscCompose
.
asc_compose_set_check_metadata_early_func
Set an custom callback to be run when most of the metadata has been loaded, but no expensive operations (like downloads or icon rendering) have been done yet. This can be used to ignore unwanted components early on.
asc_compose_set_data_result_dir
Set an output location where generated metadata should be saved.
If this is set to NULL
, no metadata will be saved.
asc_compose_set_desktop_entry_l10n_func
Set a custom desktop-entry field localization functions to be run for specialized desktop-entry localization schemes such as used in Ubuntu.
asc_compose_set_flags
Set compose flags bitfield that controls the enabled features
for this AscCompose
.
asc_compose_set_hints_result_dir
Set an output location for HTML reports of issues generated during a compose run.
asc_compose_set_icons_result_dir
Set an output location where plain icons for the processed metadata are stored.
asc_compose_set_locale_unit
Set a specific unit that is used for fetching locale information. This may be useful in case a special language pack layout is used, but is generally not necessary to be set explicitly, as locale will be found in the unit where the metadata is by default.
asc_compose_set_max_screenshot_size
Set the maximum size a screenshot video or image can have. A size < 0 may be set to allow unlimited sizes, setting a limit of 0 will disable screenshot caching entirely.
asc_compose_set_media_baseurl
Set the media base URL for the generated metadata. Can be NULL
if no media
should be cached and the original URLs should be kept.
asc_compose_set_media_result_dir
Set an output location to store media (screenshots, icons, …) that will be served on a webserver via the URL set as media baseurl.
Signals
Signals inherited from GObject (1)
GObject::notify
The notify signal is emitted on an object when one of its properties has its value set through g_object_set_property(), g_object_set(), et al.
Class structure
struct AppStreamComposeComposeClass {
GObjectClass parent_class;
void (* _as_reserved1) (
void
);
void (* _as_reserved2) (
void
);
void (* _as_reserved3) (
void
);
void (* _as_reserved4) (
void
);
}
No description available.
Class members
parent_class: GObjectClass
No description available.
_as_reserved1: void (* _as_reserved1) ( void )
No description available.
_as_reserved2: void (* _as_reserved2) ( void )
No description available.
_as_reserved3: void (* _as_reserved3) ( void )
No description available.
_as_reserved4: void (* _as_reserved4) ( void )
No description available.