00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
#ifndef LIBMIMEOPEN_H_
00026
# define LIBMIMEOPEN_H_
00027
00028
# include <glib.h>
00029
# include <libgnomevfs/gnome-vfs.h>
00030
# include <libgnomevfs/gnome-vfs-mime-handlers.h>
00031 #define DBUS_API_SUBJECT_TO_CHANGE
00032
# include <dbus/dbus.h>
00033
00034 G_BEGIN_DECLS
00035
00040
00061 gint
osso_mime_open (DBusConnection *con,
const gchar *file, ...);
00062
00077 gint
osso_mime_open_file (DBusConnection *con,
const gchar *file);
00078
00097 gint
osso_mime_open_file_list (DBusConnection *con, GSList *files);
00098
00106
00107 typedef enum {
00108
OSSO_MIME_CATEGORY_BOOKMARKS = 1 << 0,
00109
OSSO_MIME_CATEGORY_CONTACTS = 1 << 1,
00110
OSSO_MIME_CATEGORY_DOCUMENTS = 1 << 2,
00111
OSSO_MIME_CATEGORY_EMAILS = 1 << 3,
00112
OSSO_MIME_CATEGORY_IMAGES = 1 << 4,
00113
OSSO_MIME_CATEGORY_AUDIO = 1 << 5,
00114
OSSO_MIME_CATEGORY_VIDEO = 1 << 6,
00115
OSSO_MIME_CATEGORY_OTHER = 1 << 7,
00116
OSSO_MIME_CATEGORY_ALL = (1 << 8) - 1
00117 }
OssoMimeCategory;
00118
00127
OssoMimeCategory osso_mime_get_category_for_mime_type (
const gchar *mime_type);
00128
00150 GList *
osso_mime_get_mime_types_for_category (OssoMimeCategory category);
00151
00158
void osso_mime_types_list_free (GList *list);
00159
00167 G_GNUC_CONST gchar *
osso_mime_get_category_name (OssoMimeCategory category);
00168
00176
OssoMimeCategory osso_mime_get_category_from_name (
const gchar *category);
00177
00185
00199 GList *
osso_mime_application_get_mime_types (
const gchar *application_id);
00200
00207
void osso_mime_application_mime_types_list_free (GList *mime_types);
00208
00215
00236 gchar **
00237
osso_mime_get_icon_names (
const gchar *mime_type,
00238 GnomeVFSFileInfo *file_info);
00239
00242 G_END_DECLS
00243
00244
#endif