![]() |
![]() |
![]() |
AppStream-glib Reference Manual | ![]() |
---|---|---|---|---|
Top | Description |
#include <appstream-glib.h> enum AsUrlKind; enum AsKudoKind; enum AsUrgencyKind; enum AsSizeKind; const gchar * as_size_kind_to_string (AsSizeKind size_kind
); AsSizeKind as_size_kind_from_string (const gchar *size_kind
); const gchar * as_urgency_kind_to_string (AsUrgencyKind urgency_kind
); AsUrgencyKind as_urgency_kind_from_string (const gchar *urgency_kind
); const gchar * as_url_kind_to_string (AsUrlKind url_kind
); AsUrlKind as_url_kind_from_string (const gchar *url_kind
); const gchar * as_kudo_kind_to_string (AsKudoKind kudo_kind
); AsKudoKind as_kudo_kind_from_string (const gchar *kudo_kind
); const gchar * as_id_kind_to_string (AsIdKind id_kind
); AsIdKind as_id_kind_from_string (const gchar *id_kind
);
typedef enum { AS_ID_KIND_UNKNOWN, /* Since: 0.1.0 */ AS_ID_KIND_DESKTOP, /* Since: 0.1.0 */ AS_ID_KIND_FONT, /* Since: 0.1.0 */ AS_ID_KIND_CODEC, /* Since: 0.1.0 */ AS_ID_KIND_INPUT_METHOD, /* Since: 0.1.0 */ AS_ID_KIND_WEB_APP, /* Since: 0.1.0 */ AS_ID_KIND_SOURCE, /* Since: 0.1.0 */ AS_ID_KIND_ADDON, /* Since: 0.1.7 */ AS_ID_KIND_FIRMWARE, /* Since: 0.3.5 */ AS_ID_KIND_RUNTIME, /* Since: 0.5.6 */ AS_ID_KIND_GENERIC, /* Since: 0.5.8 */ } AsUrlKind;
The URL type.
typedef enum { AS_KUDO_KIND_UNKNOWN, /* Since: 0.2.2 */ AS_KUDO_KIND_SEARCH_PROVIDER, /* Since: 0.2.2 */ AS_KUDO_KIND_USER_DOCS, /* Since: 0.2.2 */ AS_KUDO_KIND_APP_MENU, /* Since: 0.2.2 */ AS_KUDO_KIND_MODERN_TOOLKIT, /* Since: 0.2.2 */ AS_KUDO_KIND_NOTIFICATIONS, /* Since: 0.2.2 */ AS_KUDO_KIND_HIGH_CONTRAST, /* Since: 0.3.0 */ AS_KUDO_KIND_HI_DPI_ICON, /* Since: 0.3.1 */ } AsKudoKind;
The kudo type.
Type invalid or not known | |
Installs a search provider | |
Installs user documentation | |
Uses the GNOME application menu | |
Uses a modern toolkit like GTK3 or QT5 | |
Registers notifications with KDE or GNOME | |
Installs a high contrast icon | |
Installs a high DPI icon |
typedef enum { AS_URGENCY_KIND_UNKNOWN, /* Since: 0.5.1 */ AS_URGENCY_KIND_LOW, /* Since: 0.5.1 */ AS_URGENCY_KIND_MEDIUM, /* Since: 0.5.1 */ AS_URGENCY_KIND_HIGH, /* Since: 0.5.1 */ AS_URGENCY_KIND_CRITICAL, /* Since: 0.5.1 */ } AsUrgencyKind;
The urgency of a release.
typedef enum { AS_SIZE_KIND_UNKNOWN, /* Since: 0.5.2 */ AS_SIZE_KIND_INSTALLED, /* Since: 0.5.2 */ AS_SIZE_KIND_DOWNLOAD, /* Since: 0.5.2 */ } AsSizeKind;
The release size kind.
const gchar * as_size_kind_to_string (AsSizeKind size_kind
);
Converts the enumerated value to an text representation.
|
the AsSizeKind. |
Returns : |
string version of size_kind
|
Since 0.5.2
AsSizeKind as_size_kind_from_string (const gchar *size_kind
);
Converts the text representation to an enumerated value.
|
the string. |
Returns : |
a AsSizeKind or AS_SIZE_KIND_UNKNOWN for unknown |
Since 0.5.2
const gchar * as_urgency_kind_to_string (AsUrgencyKind urgency_kind
);
Converts the enumerated value to an text representation.
|
the AsUrgencyKind. |
Returns : |
string version of urgency_kind
|
Since 0.5.1
AsUrgencyKind as_urgency_kind_from_string (const gchar *urgency_kind
);
Converts the text representation to an enumerated value.
|
the string. |
Returns : |
a AsUrgencyKind or AS_URGENCY_KIND_UNKNOWN for unknown |
Since 0.5.1
const gchar * as_url_kind_to_string (AsUrlKind url_kind
);
Converts the enumerated value to an text representation.
|
the AsUrlKind . |
Returns : |
string version of url_kind
|
Since 0.1.0
AsUrlKind as_url_kind_from_string (const gchar *url_kind
);
Converts the text representation to an enumerated value.
|
the string. |
Returns : |
a AsUrlKind or AS_URL_KIND_UNKNOWN for unknown |
Since 0.1.0
const gchar * as_kudo_kind_to_string (AsKudoKind kudo_kind
);
Converts the enumerated value to an text representation.
|
the AsKudoKind . |
Returns : |
string version of kudo_kind
|
Since 0.2.2
AsKudoKind as_kudo_kind_from_string (const gchar *kudo_kind
);
Converts the text representation to an enumerated value.
|
the string. |
Returns : |
a AsKudoKind or AS_KUDO_KIND_UNKNOWN for unknown |
Since 0.2.2
const gchar * as_id_kind_to_string (AsIdKind id_kind
);
Converts the enumerated value to an text representation.
|
the AsIdKind. |
Returns : |
string version of id_kind
|
Since 0.1.0
AsIdKind as_id_kind_from_string (const gchar *id_kind
);
Converts the text representation to an enumerated value.
|
the string. |
Returns : |
a AsIdKind or AS_ID_KIND_UNKNOWN for unknown |
Since 0.1.0