Enumerations | |
enum | OssoMimeCategory { OSSO_MIME_CATEGORY_BOOKMARKS = 1 << 0, OSSO_MIME_CATEGORY_CONTACTS = 1 << 1, OSSO_MIME_CATEGORY_DOCUMENTS = 1 << 2, OSSO_MIME_CATEGORY_EMAILS = 1 << 3, OSSO_MIME_CATEGORY_IMAGES = 1 << 4, OSSO_MIME_CATEGORY_AUDIO = 1 << 5, OSSO_MIME_CATEGORY_VIDEO = 1 << 6, OSSO_MIME_CATEGORY_OTHER = 1 << 7, OSSO_MIME_CATEGORY_ALL = (1 << 8) - 1 } |
Functions | |
OssoMimeCategory | osso_mime_get_category_for_mime_type (const gchar *mime_type) |
GList * | osso_mime_get_mime_types_for_category (OssoMimeCategory category) |
void | osso_mime_types_list_free (GList *list) |
G_GNUC_CONST gchar * | osso_mime_get_category_name (OssoMimeCategory category) |
OssoMimeCategory | osso_mime_get_category_from_name (const gchar *category) |
|
|
|
Return the category the specified mime type is in. See osso_mime_get_mime_types_for_category() for more information.
|
|
Returns the category corresponding to the given name.
|
|
Returns the name of the specified category.
|
|
Returns a list of mime types that are in the specified category. The returned list should be freed by calling osso_mime_types_list_free(). The mapping between category and mime type is handled through the shared mime info. Add the tag <osso:category name="name"/> to a mime type to specify that the mime type is in the category "name". Valid category names are: audio, bookmarks, contacts, documents, emails, images, video An example: <mime-type type="text/plain"> <osso:category name="documents"/> </mime-type>
|
|
Frees the list of mime types as returned by osso_mime_get_mime_types_for_category().
|