Main Page | Modules | File List | Globals

osso-mime.h

Go to the documentation of this file.
00001 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */ 00002 /* 00003 * Copyright (C) 2004 Nokia. All rights reserved. 00004 * 00005 * This program is free software; you can redistribute it and/or 00006 * modify it under the terms of the GNU Lesser General Public License as 00007 * published by the Free Software Foundation; either version 2 of the 00008 * License, or (at your option) any later version. 00009 * 00010 * This program is distributed in the hope that it will be useful, 00011 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00012 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00013 * Lesser General Public License for more details. 00014 * 00015 * You should have received a copy of the GNU Lesser General Public 00016 * License along with this program; if not, write to the 00017 * Free Software Foundation, Inc., 59 Temple Place - Suite 330, 00018 * Boston, MA 02111-1307, USA. 00019 */ 00020 00021 /* 00022 * @author John Hedberg <johan.hedberg@nokia.com> 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 /* LIBMIMEOPEN_H_ */

Generated on Sat May 14 04:16:33 2005 for LibOSSOMIME by doxygen 1.3.7