| AppStream-glib Reference Manual | ||||
|---|---|---|---|---|
| Top | Description | ||||
#include <appstream-glib.h> enum AsIdKind; enum AsUrlKind; enum AsKudoKind; const gchar * as_id_kind_to_string (AsIdKind id_kind); AsIdKind as_id_kind_from_string (const gchar *id_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);
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 */
} AsIdKind;
The ID type.
| Type invalid or not known | |
| A desktop application | |
| A font add-on | |
| A codec add-on | |
| A input method add-on | |
| A web appication | |
| A software source | |
| An addon, e.g. a plugin | |
| A firmware update |
typedef enum {
AS_URL_KIND_UNKNOWN, /* Since: 0.1.0 */
AS_URL_KIND_HOMEPAGE, /* Since: 0.1.0 */
AS_URL_KIND_BUGTRACKER, /* Since: 0.1.1 */
AS_URL_KIND_FAQ, /* Since: 0.1.1 */
AS_URL_KIND_DONATION, /* Since: 0.1.1 */
AS_URL_KIND_HELP, /* Since: 0.1.5 */
AS_URL_KIND_MISSING, /* Since: 0.2.2 */
} AsUrlKind;
The URL type.
| Type invalid or not known | |
| Application project homepage | |
| Application bugtracker | |
| Application FAQ page | |
| Application donation page | |
| Application help manual | |
| The package is available, but missing |
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 |
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
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