![]() |
![]() |
![]() |
AppStream-glib Reference Manual | ![]() |
---|---|---|---|---|
Top | Description |
#include <appstream-glib.h> #define AS_TYPE_LAUNCHABLE struct AsLaunchableClass; enum AsLaunchableKind; AsLaunchable * as_launchable_new (void
); AsLaunchableKind as_launchable_kind_from_string (const gchar *kind
); const gchar * as_launchable_kind_to_string (AsLaunchableKind kind
); const gchar * as_launchable_get_value (AsLaunchable *launchable
); AsLaunchableKind as_launchable_get_kind (AsLaunchable *launchable
); void as_launchable_set_value (AsLaunchable *launchable
,const gchar *value
); void as_launchable_set_kind (AsLaunchable *launchable
,AsLaunchableKind kind
);
Applications may be launchable using a different application ID to the component ID or may be launchable in some other way, e.g D-Bus, or using the default terminal emulator.
See also: AsApp
typedef enum { AS_LAUNCHABLE_KIND_UNKNOWN, AS_LAUNCHABLE_KIND_DESKTOP_ID, /* Since: 0.6.13 */ AS_LAUNCHABLE_KIND_SERVICE, /* Since: 0.7.3 */ AS_LAUNCHABLE_KIND_COCKPIT_MANIFEST, /* Since: 0.7.3 */ AS_LAUNCHABLE_KIND_URL, /* Since: 0.7.3 */ } AsLaunchableKind;
The launchable type.
AsLaunchable * as_launchable_new (void
);
Creates a new AsLaunchable.
Returns : |
a AsLaunchable. [transfer full] |
Since 0.6.13
AsLaunchableKind as_launchable_kind_from_string (const gchar *kind
);
Converts the text representation to an enumerated value.
|
the string. |
Returns : |
a AsLaunchableKind, or AS_LAUNCHABLE_KIND_UNKNOWN for unknown. [transfer full]
|
Since 0.6.13
const gchar * as_launchable_kind_to_string (AsLaunchableKind kind
);
Converts the enumerated value to an text representation.
|
the AsLaunchableKind. |
Returns : |
string version of kind
|
Since 0.6.13
const gchar * as_launchable_get_value (AsLaunchable *launchable
);
Gets the value to use for the launchable.
|
a AsLaunchable instance. |
Returns : |
usually a desktop ID, e.g. "gimp.desktop" |
Since 0.6.13
AsLaunchableKind as_launchable_get_kind (AsLaunchable *launchable
);
Gets the launchable kind.
|
a AsLaunchable instance. |
Returns : |
the AsLaunchableKind |
Since 0.6.13
void as_launchable_set_value (AsLaunchable *launchable
,const gchar *value
);
Sets the fully-qualified mirror URL to use for the launchable.
|
a AsLaunchable instance. |
|
the URL. |
Since 0.6.13
void as_launchable_set_kind (AsLaunchable *launchable
,AsLaunchableKind kind
);
Sets the launchable kind.
|
a AsLaunchable instance. |
|
the AsLaunchableKind, e.g. AS_LAUNCHABLE_KIND_DESKTOP_ID . |
Since 0.6.13