Main Page | Modules | File List | Globals

MIME open


Functions

gint osso_mime_open (DBusConnection *con, const gchar *file,...)
gint osso_mime_open_file (DBusConnection *con, const gchar *file)
gint osso_mime_open_file_list (DBusConnection *con, GSList *files)

Function Documentation

gint osso_mime_open DBusConnection *  con,
const gchar *  file,
  ...
 

This function opens a file in the application that has registered as the handler for the mime type of the file.

Parameters:
con The D-BUS connection that we want to use.
file A string representation of the GnomeVFS URI of the file to be opened (UTF-8). This is a NULL terminated list of gchar * (strings). The paths will be escaped before sent off.
... More file URIs may be specified and the list has to end in a NULL. These will be sent to the application that handles this MIME-type. If more then one type of file is specified, many applications may be launched. If only one file is to be opened this second argument has to be NULL.
The mapping from mime type to D-BUS service is done by looking up the application for the mime type and in the desktop file for that application the X-Osso-Service field is used to get the D-BUS service.

Returns:
1 if all goes well, <1 if an error occurred or if some parameter is invalid.

gint osso_mime_open_file DBusConnection *  con,
const gchar *  file
 

This function opens a file in the application that has registered as the handler for the mime type of the file.

Parameters:
con The D-BUS connection that we want to use.
file A string representation of the GnomeVFS URI of the file to be opened (UTF-8). The path will be escaped before sent off.
The mapping from mime type to D-BUS service is done by looking up the application for the mime type and in the desktop file for that application the X-Osso-Service field is used to get the D-BUS service.

Returns:
1 in case of success, < 1 if an error occurred or if some parameter is invalid.

gint osso_mime_open_file_list DBusConnection *  con,
GSList *  files
 

This function opens a list of files in the application that has registered as the handler for the mime type of the file.

Parameters:
con The D-BUS connection that we want to use.
files A list of string representations of the GnomeVFS URI of the file to be opened (UTF-8).
These will be sent to the application that handles this MIME-type. If more then one type of file is specified, many applications may be launched.

The mapping from mime type to D-BUS service is done by looking up the application for the mime type and in the desktop file for that application the X-Osso-Service field is used to get the D-BUS service.

Returns:
1 in case of success, < 1 if an error occurred or if some parameter is invalid.


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