7 CONTENT="Modular DocBook HTML Stylesheet Version 1.64
10 TITLE="GnomeVFS - Filesystem Abstraction library"
11 HREF="index.html"><LINK
13 TITLE="MIME types & the Application Registry"
14 HREF="mime-registry.html"><LINK
16 TITLE="MIME Type Detection"
17 HREF="gnome-vfs-mime.html"><LINK
20 HREF="gnome-vfs-mime-info.html"></HEAD
43 >GnomeVFS - Filesystem Abstraction library</FONT
52 HREF="gnome-vfs-mime.html"
57 ><<< Previous Page</B
90 HREF="mime-registry.html"
106 HREF="gnome-vfs-mime-info.html"
111 >Next Page >>></B
120 NAME="GNOME-VFS-MIME-HANDLERS"
130 >MIME Handlers -- functions for getting and manipulating the actions to be performed on mime types</DIV
132 CLASS="REFSYNOPSISDIV"
150 HREF="gnome-vfs-mime-handlers.html#GNOMEVFSMIMEACTIONTYPE"
151 >GnomeVFSMimeActionType</A
154 HREF="gnome-vfs-mime-handlers.html#GNOMEVFSMIMEAPPLICATIONARGUMENTTYPE"
155 >GnomeVFSMimeApplicationArgumentType</A
158 HREF="gnome-vfs-mime-handlers.html#GNOMEVFSMIMEAPPLICATION"
159 >GnomeVFSMimeApplication</A
162 HREF="gnome-vfs-mime-handlers.html#GNOMEVFSMIMEACTION"
163 >GnomeVFSMimeAction</A
166 HREF="gnome-vfs-mime-handlers.html#GNOMEVFSMIMEAPPLICATION"
167 >GnomeVFSMimeApplication</A
169 HREF="gnome-vfs-mime-handlers.html#GNOME-VFS-MIME-APPLICATION-COPY"
170 >gnome_vfs_mime_application_copy</A
173 HREF="gnome-vfs-mime-handlers.html#GNOMEVFSMIMEAPPLICATION"
174 >GnomeVFSMimeApplication</A
177 HREF="gnome-vfs-mime-handlers.html#GNOMEVFSMIMEACTIONTYPE"
178 >GnomeVFSMimeActionType</A
180 HREF="gnome-vfs-mime-handlers.html#GNOME-VFS-MIME-GET-DEFAULT-ACTION-TYPE"
181 >gnome_vfs_mime_get_default_action_type</A
183 (const char *mime_type);
185 HREF="gnome-vfs-mime-handlers.html#GNOMEVFSMIMEACTION"
186 >GnomeVFSMimeAction</A
188 HREF="gnome-vfs-mime-handlers.html#GNOME-VFS-MIME-GET-DEFAULT-ACTION"
189 >gnome_vfs_mime_get_default_action</A
191 (const char *mime_type);
193 HREF="gnome-vfs-mime-handlers.html#GNOMEVFSMIMEAPPLICATION"
194 >GnomeVFSMimeApplication</A
196 HREF="gnome-vfs-mime-handlers.html#GNOME-VFS-MIME-GET-DEFAULT-APPLICATION"
197 >gnome_vfs_mime_get_default_application</A
199 (const char *mime_type);
200 Bonobo_ServerInfo* <A
201 HREF="gnome-vfs-mime-handlers.html#GNOME-VFS-MIME-GET-DEFAULT-COMPONENT"
202 >gnome_vfs_mime_get_default_component</A
204 (const char *mime_type);
206 HREF=../glib/glib-doubly-linked-lists.html#GLIST
208 HREF="gnome-vfs-mime-handlers.html#GNOME-VFS-MIME-GET-SHORT-LIST-APPLICATIONS"
209 >gnome_vfs_mime_get_short_list_applications</A
211 (const char *mime_type);
213 HREF=../glib/glib-doubly-linked-lists.html#GLIST
215 HREF="gnome-vfs-mime-handlers.html#GNOME-VFS-MIME-GET-SHORT-LIST-COMPONENTS"
216 >gnome_vfs_mime_get_short_list_components</A
218 (const char *mime_type);
220 HREF=../glib/glib-doubly-linked-lists.html#GLIST
222 HREF="gnome-vfs-mime-handlers.html#GNOME-VFS-MIME-GET-ALL-APPLICATIONS"
223 >gnome_vfs_mime_get_all_applications</A
225 (const char *mime_type);
227 HREF=../glib/glib-doubly-linked-lists.html#GLIST
229 HREF="gnome-vfs-mime-handlers.html#GNOME-VFS-MIME-GET-ALL-COMPONENTS"
230 >gnome_vfs_mime_get_all_components</A
232 (const char *mime_type);
234 HREF="gnome-vfs-types.html#GNOMEVFSRESULT"
237 HREF="gnome-vfs-mime-handlers.html#GNOME-VFS-MIME-SET-DEFAULT-ACTION-TYPE"
238 >gnome_vfs_mime_set_default_action_type</A
240 (const char *mime_type,
242 HREF="gnome-vfs-mime-handlers.html#GNOMEVFSMIMEACTIONTYPE"
243 >GnomeVFSMimeActionType</A
246 HREF="gnome-vfs-types.html#GNOMEVFSRESULT"
249 HREF="gnome-vfs-mime-handlers.html#GNOME-VFS-MIME-SET-DEFAULT-APPLICATION"
250 >gnome_vfs_mime_set_default_application</A
252 (const char *mime_type,
253 const char *application_id);
255 HREF="gnome-vfs-types.html#GNOMEVFSRESULT"
258 HREF="gnome-vfs-mime-handlers.html#GNOME-VFS-MIME-SET-DEFAULT-COMPONENT"
259 >gnome_vfs_mime_set_default_component</A
261 (const char *mime_type,
262 const char *component_iid);
264 HREF="gnome-vfs-mime-handlers.html#GNOME-VFS-MIME-GET-ICON"
265 >gnome_vfs_mime_get_icon</A
266 > (const char *mime_type);
268 HREF="gnome-vfs-types.html#GNOMEVFSRESULT"
271 HREF="gnome-vfs-mime-handlers.html#GNOME-VFS-MIME-SET-ICON"
272 >gnome_vfs_mime_set_icon</A
273 > (const char *mime_type,
274 const char *filename);
276 HREF="gnome-vfs-mime-handlers.html#GNOME-VFS-MIME-GET-DESCRIPTION"
277 >gnome_vfs_mime_get_description</A
278 > (const char *mime_type);
280 HREF="gnome-vfs-types.html#GNOMEVFSRESULT"
283 HREF="gnome-vfs-mime-handlers.html#GNOME-VFS-MIME-SET-DESCRIPTION"
284 >gnome_vfs_mime_set_description</A
286 (const char *mime_type,
287 const char *description);
289 HREF=../glib/glib-basic-types.html#GBOOLEAN
291 HREF="gnome-vfs-mime-handlers.html#GNOME-VFS-MIME-CAN-BE-EXECUTABLE"
292 >gnome_vfs_mime_can_be_executable</A
294 (const char *mime_type);
296 HREF="gnome-vfs-types.html#GNOMEVFSRESULT"
299 HREF="gnome-vfs-mime-handlers.html#GNOME-VFS-MIME-SET-CAN-BE-EXECUTABLE"
300 >gnome_vfs_mime_set_can_be_executable</A
302 (const char *mime_type,
304 HREF=../glib/glib-basic-types.html#GBOOLEAN
305 >gboolean</A> new_value);
307 HREF="gnome-vfs-types.html#GNOMEVFSRESULT"
310 HREF="gnome-vfs-mime-handlers.html#GNOME-VFS-MIME-SET-SHORT-LIST-APPLICATIONS"
311 >gnome_vfs_mime_set_short_list_applications</A
313 (const char *mime_type,
315 HREF=../glib/glib-doubly-linked-lists.html#GLIST
316 >GList</A> *application_ids);
318 HREF="gnome-vfs-types.html#GNOMEVFSRESULT"
321 HREF="gnome-vfs-mime-handlers.html#GNOME-VFS-MIME-SET-SHORT-LIST-COMPONENTS"
322 >gnome_vfs_mime_set_short_list_components</A
324 (const char *mime_type,
326 HREF=../glib/glib-doubly-linked-lists.html#GLIST
327 >GList</A> *component_iids);
329 HREF="gnome-vfs-types.html#GNOMEVFSRESULT"
332 HREF="gnome-vfs-mime-handlers.html#GNOME-VFS-MIME-ADD-APPLICATION-TO-SHORT-LIST"
333 >gnome_vfs_mime_add_application_to_short_list</A
335 (const char *mime_type,
336 const char *application_id);
338 HREF="gnome-vfs-types.html#GNOMEVFSRESULT"
341 HREF="gnome-vfs-mime-handlers.html#GNOME-VFS-MIME-REMOVE-APPLICATION-FROM-SHORT-LIST"
342 >gnome_vfs_mime_remove_application_from_short_list</A
344 (const char *mime_type,
345 const char *application_id);
347 HREF="gnome-vfs-types.html#GNOMEVFSRESULT"
350 HREF="gnome-vfs-mime-handlers.html#GNOME-VFS-MIME-ADD-COMPONENT-TO-SHORT-LIST"
351 >gnome_vfs_mime_add_component_to_short_list</A
353 (const char *mime_type,
356 HREF="gnome-vfs-types.html#GNOMEVFSRESULT"
359 HREF="gnome-vfs-mime-handlers.html#GNOME-VFS-MIME-REMOVE-COMPONENT-FROM-SHORT-LIST"
360 >gnome_vfs_mime_remove_component_from_short_list</A
362 (const char *mime_type,
365 HREF="gnome-vfs-types.html#GNOMEVFSRESULT"
368 HREF="gnome-vfs-mime-handlers.html#GNOME-VFS-MIME-ADD-EXTENSION"
369 >gnome_vfs_mime_add_extension</A
370 > (const char *mime_type,
371 const char *extension);
373 HREF="gnome-vfs-types.html#GNOMEVFSRESULT"
376 HREF="gnome-vfs-mime-handlers.html#GNOME-VFS-MIME-REMOVE-EXTENSION"
377 >gnome_vfs_mime_remove_extension</A
379 (const char *mime_type,
380 const char *extension);
382 HREF="gnome-vfs-types.html#GNOMEVFSRESULT"
385 HREF="gnome-vfs-mime-handlers.html#GNOME-VFS-MIME-EXTEND-ALL-APPLICATIONS"
386 >gnome_vfs_mime_extend_all_applications</A
388 (const char *mime_type,
390 HREF=../glib/glib-doubly-linked-lists.html#GLIST
391 >GList</A> *application_ids);
393 HREF="gnome-vfs-types.html#GNOMEVFSRESULT"
396 HREF="gnome-vfs-mime-handlers.html#GNOME-VFS-MIME-REMOVE-FROM-ALL-APPLICATIONS"
397 >gnome_vfs_mime_remove_from_all_applications</A
399 (const char *mime_type,
401 HREF=../glib/glib-doubly-linked-lists.html#GLIST
402 >GList</A> *application_ids);
404 HREF="gnome-vfs-mime-handlers.html#GNOMEVFSMIMEAPPLICATION"
405 >GnomeVFSMimeApplication</A
407 HREF="gnome-vfs-mime-handlers.html#GNOME-VFS-MIME-APPLICATION-NEW-FROM-ID"
408 >gnome_vfs_mime_application_new_from_id</A
412 HREF="gnome-vfs-mime-handlers.html#GNOME-VFS-MIME-APPLICATION-FREE"
413 >gnome_vfs_mime_application_free</A
415 HREF="gnome-vfs-mime-handlers.html#GNOMEVFSMIMEAPPLICATION"
416 >GnomeVFSMimeApplication</A
419 HREF="gnome-vfs-mime-handlers.html#GNOME-VFS-MIME-ACTION-FREE"
420 >gnome_vfs_mime_action_free</A
422 HREF="gnome-vfs-mime-handlers.html#GNOMEVFSMIMEACTION"
423 >GnomeVFSMimeAction</A
426 HREF="gnome-vfs-mime-handlers.html#GNOME-VFS-MIME-APPLICATION-LIST-FREE"
427 >gnome_vfs_mime_application_list_free</A
430 HREF=../glib/glib-doubly-linked-lists.html#GLIST
433 HREF="gnome-vfs-mime-handlers.html#GNOME-VFS-MIME-COMPONENT-LIST-FREE"
434 >gnome_vfs_mime_component_list_free</A
437 HREF=../glib/glib-doubly-linked-lists.html#GLIST
440 HREF=../glib/glib-basic-types.html#GBOOLEAN
442 HREF="gnome-vfs-mime-handlers.html#GNOME-VFS-MIME-ID-IN-APPLICATION-LIST"
443 >gnome_vfs_mime_id_in_application_list</A
447 HREF=../glib/glib-doubly-linked-lists.html#GLIST
448 >GList</A> *applications);
450 HREF=../glib/glib-basic-types.html#GBOOLEAN
452 HREF="gnome-vfs-mime-handlers.html#GNOME-VFS-MIME-ID-IN-COMPONENT-LIST"
453 >gnome_vfs_mime_id_in_component_list</A
457 HREF=../glib/glib-doubly-linked-lists.html#GLIST
458 >GList</A> *components);
460 HREF=../glib/glib-doubly-linked-lists.html#GLIST
462 HREF="gnome-vfs-mime-handlers.html#GNOME-VFS-MIME-REMOVE-APPLICATION-FROM-LIST"
463 >gnome_vfs_mime_remove_application_from_list</A
466 HREF=../glib/glib-doubly-linked-lists.html#GLIST
467 >GList</A> *applications,
468 const char *application_id,
470 HREF=../glib/glib-basic-types.html#GBOOLEAN
471 >gboolean</A> *did_remove);
473 HREF=../glib/glib-doubly-linked-lists.html#GLIST
475 HREF="gnome-vfs-mime-handlers.html#GNOME-VFS-MIME-REMOVE-COMPONENT-FROM-LIST"
476 >gnome_vfs_mime_remove_component_from_list</A
479 HREF=../glib/glib-doubly-linked-lists.html#GLIST
480 >GList</A> *components,
483 HREF=../glib/glib-basic-types.html#GBOOLEAN
484 >gboolean</A> *did_remove);
486 HREF=../glib/glib-doubly-linked-lists.html#GLIST
488 HREF="gnome-vfs-mime-handlers.html#GNOME-VFS-MIME-ID-LIST-FROM-COMPONENT-LIST"
489 >gnome_vfs_mime_id_list_from_component_list</A
492 HREF=../glib/glib-doubly-linked-lists.html#GLIST
493 >GList</A> *components);
495 HREF=../glib/glib-doubly-linked-lists.html#GLIST
497 HREF="gnome-vfs-mime-handlers.html#GNOME-VFS-MIME-ID-LIST-FROM-APPLICATION-LIST"
498 >gnome_vfs_mime_id_list_from_application_list</A
501 HREF=../glib/glib-doubly-linked-lists.html#GLIST
502 >GList</A> *applications);</PRE
531 NAME="GNOMEVFSMIMEACTIONTYPE"
533 >enum GnomeVFSMimeActionType</H3
542 CLASS="PROGRAMLISTING"
544 GNOME_VFS_MIME_ACTION_TYPE_NONE,
545 GNOME_VFS_MIME_ACTION_TYPE_APPLICATION,
546 GNOME_VFS_MIME_ACTION_TYPE_COMPONENT
547 } GnomeVFSMimeActionType;</PRE
561 NAME="GNOMEVFSMIMEAPPLICATIONARGUMENTTYPE"
563 >enum GnomeVFSMimeApplicationArgumentType</H3
572 CLASS="PROGRAMLISTING"
574 GNOME_VFS_MIME_APPLICATION_ARGUMENT_TYPE_URIS,
575 GNOME_VFS_MIME_APPLICATION_ARGUMENT_TYPE_PATHS,
576 GNOME_VFS_MIME_APPLICATION_ARGUMENT_TYPE_URIS_FOR_NON_FILES
577 } GnomeVFSMimeApplicationArgumentType;</PRE
591 NAME="GNOMEVFSMIMEAPPLICATION"
593 >GnomeVFSMimeApplication</H3
602 CLASS="PROGRAMLISTING"
607 gboolean can_open_multiple_files;
608 GnomeVFSMimeApplicationArgumentType expects_uris;
609 GList *supported_uri_schemes;
610 gboolean requires_terminal;
611 } GnomeVFSMimeApplication;</PRE
625 NAME="GNOMEVFSMIMEACTION"
627 >GnomeVFSMimeAction</H3
636 CLASS="PROGRAMLISTING"
638 GnomeVFSMimeActionType action_type;
640 Bonobo_ServerInfo *component;
641 void *dummy_component;
642 GnomeVFSMimeApplication *application;
644 } GnomeVFSMimeAction;</PRE
658 NAME="GNOME-VFS-MIME-APPLICATION-COPY"
660 >gnome_vfs_mime_application_copy ()</H3
669 CLASS="PROGRAMLISTING"
671 HREF="gnome-vfs-mime-handlers.html#GNOMEVFSMIMEAPPLICATION"
672 >GnomeVFSMimeApplication</A
673 >* gnome_vfs_mime_application_copy
675 HREF="gnome-vfs-mime-handlers.html#GNOMEVFSMIMEAPPLICATION"
676 >GnomeVFSMimeApplication</A
677 > *application);</PRE
682 >Creates a newly referenced copy of a GnomeVFSMimeApplication object.</P
686 CLASS="INFORMALTABLE"
715 > The GnomeVFSMimeApplication to be duplicated.</TD
750 NAME="GNOME-VFS-MIME-GET-DEFAULT-ACTION-TYPE"
752 >gnome_vfs_mime_get_default_action_type ()</H3
761 CLASS="PROGRAMLISTING"
763 HREF="gnome-vfs-mime-handlers.html#GNOMEVFSMIMEACTIONTYPE"
764 >GnomeVFSMimeActionType</A
765 > gnome_vfs_mime_get_default_action_type
766 (const char *mime_type);</PRE
771 >Query the MIME database for the type of action to be performed on a particular MIME type by default.</P
775 CLASS="INFORMALTABLE"
804 > A const char * containing a mime type, e.g. "application/x-php"</TD
819 > The type of action to be performed on a file of
840 NAME="GNOME-VFS-MIME-GET-DEFAULT-ACTION"
842 >gnome_vfs_mime_get_default_action ()</H3
851 CLASS="PROGRAMLISTING"
853 HREF="gnome-vfs-mime-handlers.html#GNOMEVFSMIMEACTION"
854 >GnomeVFSMimeAction</A
855 >* gnome_vfs_mime_get_default_action
856 (const char *mime_type);</PRE
861 >Query the MIME database for default action associated with a particular MIME type <TT
870 CLASS="INFORMALTABLE"
899 > A const char * containing a mime type, e.g. "application/x-php"</TD
914 > A GnomeVFSMimeAction representing the default action to perform upon
935 NAME="GNOME-VFS-MIME-GET-DEFAULT-APPLICATION"
937 >gnome_vfs_mime_get_default_application ()</H3
946 CLASS="PROGRAMLISTING"
948 HREF="gnome-vfs-mime-handlers.html#GNOMEVFSMIMEAPPLICATION"
949 >GnomeVFSMimeApplication</A
950 >* gnome_vfs_mime_get_default_application
951 (const char *mime_type);</PRE
956 >Query the MIME database for the application to be executed on files of MIME type
966 CLASS="INFORMALTABLE"
995 > A const char * containing a mime type, e.g. "image/png"</TD
1010 > A GnomeVFSMimeApplication representing the default handler of <TT
1030 NAME="GNOME-VFS-MIME-GET-DEFAULT-COMPONENT"
1032 >gnome_vfs_mime_get_default_component ()</H3
1041 CLASS="PROGRAMLISTING"
1042 >Bonobo_ServerInfo* gnome_vfs_mime_get_default_component
1043 (const char *mime_type);</PRE
1048 >Query the MIME database for the default Bonobo component to be activated to
1049 view files of MIME type <TT
1058 CLASS="INFORMALTABLE"
1087 > A const char * containing a mime type, e.g. "image/png"</TD
1102 > An Bonobo_ServerInfo * representing the OAF server to be activated
1103 to get a reference to the proper component.</TD
1118 NAME="GNOME-VFS-MIME-GET-SHORT-LIST-APPLICATIONS"
1120 >gnome_vfs_mime_get_short_list_applications ()</H3
1129 CLASS="PROGRAMLISTING"
1131 HREF=../glib/glib-doubly-linked-lists.html#GLIST
1132 >GList</A>* gnome_vfs_mime_get_short_list_applications
1133 (const char *mime_type);</PRE
1138 >Return an alphabetically sorted list of GnomeVFSMimeApplication
1139 data structures for the requested mime type. The short list contains
1140 "select" applications recommended for handling this MIME type, appropriate for
1141 display to the user.</P
1145 CLASS="INFORMALTABLE"
1174 > A const char * containing a mime type, e.g. "image/png"</TD
1189 > A GList * where the elements are GnomeVFSMimeApplication *
1190 representing various applications to display in the short list for <TT
1210 NAME="GNOME-VFS-MIME-GET-SHORT-LIST-COMPONENTS"
1212 >gnome_vfs_mime_get_short_list_components ()</H3
1221 CLASS="PROGRAMLISTING"
1223 HREF=../glib/glib-doubly-linked-lists.html#GLIST
1224 >GList</A>* gnome_vfs_mime_get_short_list_components
1225 (const char *mime_type);</PRE
1230 >Return an unsorted sorted list of Bonobo_ServerInfo *
1231 data structures for the requested mime type. The short list contains
1232 "select" components recommended for handling this MIME type, appropriate for
1233 display to the user.</P
1237 CLASS="INFORMALTABLE"
1266 > A const char * containing a mime type, e.g. "image/png"</TD
1281 > A GList * where the elements are Bonobo_ServerInfo *
1282 representing various components to display in the short list for <TT
1302 NAME="GNOME-VFS-MIME-GET-ALL-APPLICATIONS"
1304 >gnome_vfs_mime_get_all_applications ()</H3
1313 CLASS="PROGRAMLISTING"
1315 HREF=../glib/glib-doubly-linked-lists.html#GLIST
1316 >GList</A>* gnome_vfs_mime_get_all_applications
1317 (const char *mime_type);</PRE
1322 >Return an alphabetically sorted list of GnomeVFSMimeApplication
1323 data structures representing all applications in the MIME database registered
1324 to handle files of MIME type <TT
1329 > (and supertypes).</P
1333 CLASS="INFORMALTABLE"
1362 > A const char * containing a mime type, e.g. "image/png"</TD
1377 > A GList * where the elements are GnomeVFSMimeApplication *
1378 representing applications that handle MIME type <TT
1398 NAME="GNOME-VFS-MIME-GET-ALL-COMPONENTS"
1400 >gnome_vfs_mime_get_all_components ()</H3
1409 CLASS="PROGRAMLISTING"
1411 HREF=../glib/glib-doubly-linked-lists.html#GLIST
1412 >GList</A>* gnome_vfs_mime_get_all_components
1413 (const char *mime_type);</PRE
1418 >Return an alphabetically sorted list of Bonobo_ServerInfo
1419 data structures representing all Bonobo components registered
1420 to handle files of MIME type <TT
1425 > (and supertypes).</P
1429 CLASS="INFORMALTABLE"
1458 > A const char * containing a mime type, e.g. "image/png"</TD
1473 > A GList * where the elements are Bonobo_ServerInfo *
1474 representing components that can handle MIME type <TT
1494 NAME="GNOME-VFS-MIME-SET-DEFAULT-ACTION-TYPE"
1496 >gnome_vfs_mime_set_default_action_type ()</H3
1505 CLASS="PROGRAMLISTING"
1507 HREF="gnome-vfs-types.html#GNOMEVFSRESULT"
1509 > gnome_vfs_mime_set_default_action_type
1510 (const char *mime_type,
1512 HREF="gnome-vfs-mime-handlers.html#GNOMEVFSMIMEACTIONTYPE"
1513 >GnomeVFSMimeActionType</A
1514 > action_type);</PRE
1519 >Sets the default action type to be performed on files of MIME type <TT
1528 CLASS="INFORMALTABLE"
1557 > A const char * containing a mime type, e.g. "image/png"</TD
1574 > A GnomeVFSMimeActionType containing the action to perform by default</TD
1589 > A GnomeVFSResult indicating the success of the operation or reporting
1590 any errors encountered.</TD
1605 NAME="GNOME-VFS-MIME-SET-DEFAULT-APPLICATION"
1607 >gnome_vfs_mime_set_default_application ()</H3
1616 CLASS="PROGRAMLISTING"
1618 HREF="gnome-vfs-types.html#GNOMEVFSRESULT"
1620 > gnome_vfs_mime_set_default_application
1621 (const char *mime_type,
1622 const char *application_id);</PRE
1627 >Sets the default application to be run on files of MIME type <TT
1636 CLASS="INFORMALTABLE"
1665 > A const char * containing a mime type, e.g. "application/x-php"</TD
1682 > A key representing an application in the MIME database
1683 (GnomeVFSMimeApplication->id, for example)</TD
1698 > A GnomeVFSResult indicating the success of the operation or reporting
1699 any errors encountered.</TD
1714 NAME="GNOME-VFS-MIME-SET-DEFAULT-COMPONENT"
1716 >gnome_vfs_mime_set_default_component ()</H3
1725 CLASS="PROGRAMLISTING"
1727 HREF="gnome-vfs-types.html#GNOMEVFSRESULT"
1729 > gnome_vfs_mime_set_default_component
1730 (const char *mime_type,
1731 const char *component_iid);</PRE
1736 >Sets the default component to be activated for files of MIME type <TT
1745 CLASS="INFORMALTABLE"
1774 > A const char * containing a mime type, e.g. "application/x-php"</TD
1791 > The OAFIID of a component</TD
1806 > A GnomeVFSResult indicating the success of the operation or reporting
1807 any errors encountered.</TD
1822 NAME="GNOME-VFS-MIME-GET-ICON"
1824 >gnome_vfs_mime_get_icon ()</H3
1833 CLASS="PROGRAMLISTING"
1834 >const char* gnome_vfs_mime_get_icon (const char *mime_type);</PRE
1839 >Query the MIME database for an icon representing the specified MIME type.</P
1843 CLASS="INFORMALTABLE"
1872 > A const char * containing a MIME type</TD
1887 > The filename of the icon as listed in the MIME database. This is
1888 usually a filename without path information, e.g. "i-chardev.png", and sometimes
1889 does not have an extension, e.g. "i-regular" if the icon is supposed to be image
1890 type agnostic between icon themes. Icons are generic, and not theme specific. These
1891 will not necessarily match with the icons a user sees in Nautilus, you have been warned.</TD
1906 NAME="GNOME-VFS-MIME-SET-ICON"
1908 >gnome_vfs_mime_set_icon ()</H3
1917 CLASS="PROGRAMLISTING"
1919 HREF="gnome-vfs-types.html#GNOMEVFSRESULT"
1921 > gnome_vfs_mime_set_icon (const char *mime_type,
1922 const char *filename);</PRE
1927 >Set the icon entry for a particular MIME type in the MIME database. Note that
1928 icon entries need not necessarily contain the full path, and do not necessarily need to
1929 specify an extension. So "i-regular", "my-special-icon.png", and "some-icon"
1930 are all valid icon filenames.</P
1934 CLASS="INFORMALTABLE"
1963 > A const char * containing a MIME type</TD
1980 > a const char * containing an image filename</TD
1995 > A GnomeVFSResult indicating the success of the operation
1996 or any errors that may have occurred.</TD
2011 NAME="GNOME-VFS-MIME-GET-DESCRIPTION"
2013 >gnome_vfs_mime_get_description ()</H3
2022 CLASS="PROGRAMLISTING"
2023 >const char* gnome_vfs_mime_get_description (const char *mime_type);</PRE
2028 >Query the MIME database for a description of the specified MIME type.</P
2032 CLASS="INFORMALTABLE"
2076 > A description of MIME type <TT
2096 NAME="GNOME-VFS-MIME-SET-DESCRIPTION"
2098 >gnome_vfs_mime_set_description ()</H3
2107 CLASS="PROGRAMLISTING"
2109 HREF="gnome-vfs-types.html#GNOMEVFSRESULT"
2111 > gnome_vfs_mime_set_description
2112 (const char *mime_type,
2113 const char *description);</PRE
2118 >Set the description of this MIME type in the MIME database. The description
2119 should be something like "Gnumeric spreadsheet".</P
2123 CLASS="INFORMALTABLE"
2152 > A const char * containing a mime type</TD
2169 > A description of this MIME type</TD
2184 > GnomeVFSResult indicating the success of the operation or any
2185 errors that may have occurred.</TD
2200 NAME="GNOME-VFS-MIME-CAN-BE-EXECUTABLE"
2202 >gnome_vfs_mime_can_be_executable ()</H3
2211 CLASS="PROGRAMLISTING"
2213 HREF=../glib/glib-basic-types.html#GBOOLEAN
2214 >gboolean</A> gnome_vfs_mime_can_be_executable
2215 (const char *mime_type);</PRE
2220 >Check whether files of this MIME type might conceivably be executable.
2221 Default for known types if FALSE. Default for unknown types is TRUE.</P
2225 CLASS="INFORMALTABLE"
2254 > A const char * containing a mime type</TD
2269 > gboolean containing TRUE if some files of this MIME type
2270 are registered as being executable, and false otherwise.</TD
2285 NAME="GNOME-VFS-MIME-SET-CAN-BE-EXECUTABLE"
2287 >gnome_vfs_mime_set_can_be_executable ()</H3
2296 CLASS="PROGRAMLISTING"
2298 HREF="gnome-vfs-types.html#GNOMEVFSRESULT"
2300 > gnome_vfs_mime_set_can_be_executable
2301 (const char *mime_type,
2303 HREF=../glib/glib-basic-types.html#GBOOLEAN
2304 >gboolean</A> new_value);</PRE
2309 >Set whether files of this MIME type might conceivably be executable.</P
2313 CLASS="INFORMALTABLE"
2342 > A const char * containing a mime type</TD
2359 > A boolean value indicating whether <TT
2364 > could be executable.</TD
2379 > GnomeVFSResult indicating the success of the operation or any
2380 errors that may have occurred.</TD
2395 NAME="GNOME-VFS-MIME-SET-SHORT-LIST-APPLICATIONS"
2397 >gnome_vfs_mime_set_short_list_applications ()</H3
2406 CLASS="PROGRAMLISTING"
2408 HREF="gnome-vfs-types.html#GNOMEVFSRESULT"
2410 > gnome_vfs_mime_set_short_list_applications
2411 (const char *mime_type,
2413 HREF=../glib/glib-doubly-linked-lists.html#GLIST
2414 >GList</A> *application_ids);</PRE
2419 >Set the short list of applications for the specified MIME type. The short list
2420 contains applications recommended for possible selection by the user.</P
2424 CLASS="INFORMALTABLE"
2453 > A const char * containing a mime type, e.g. "application/x-php"</TD
2470 > GList of const char * application ids</TD
2485 > A GnomeVFSResult indicating the success of the operation or reporting
2486 any errors encountered.</TD
2501 NAME="GNOME-VFS-MIME-SET-SHORT-LIST-COMPONENTS"
2503 >gnome_vfs_mime_set_short_list_components ()</H3
2512 CLASS="PROGRAMLISTING"
2514 HREF="gnome-vfs-types.html#GNOMEVFSRESULT"
2516 > gnome_vfs_mime_set_short_list_components
2517 (const char *mime_type,
2519 HREF=../glib/glib-doubly-linked-lists.html#GLIST
2520 >GList</A> *component_iids);</PRE
2525 >Set the short list of components for the specified MIME type. The short list
2526 contains companents recommended for possible selection by the user. *</P
2530 CLASS="INFORMALTABLE"
2559 > A const char * containing a mime type, e.g. "application/x-php"</TD
2576 > GList of const char * OAF IIDs</TD
2591 > A GnomeVFSResult indicating the success of the operation or reporting
2592 any errors encountered.</TD
2607 NAME="GNOME-VFS-MIME-ADD-APPLICATION-TO-SHORT-LIST"
2609 >gnome_vfs_mime_add_application_to_short_list ()</H3
2618 CLASS="PROGRAMLISTING"
2620 HREF="gnome-vfs-types.html#GNOMEVFSRESULT"
2622 > gnome_vfs_mime_add_application_to_short_list
2623 (const char *mime_type,
2624 const char *application_id);</PRE
2629 >Add an application to the short list for MIME type <TT
2634 >. The short list contains
2635 applications recommended for display as choices to the user for a particular MIME type.</P
2639 CLASS="INFORMALTABLE"
2668 > A const char * containing a mime type, e.g. "application/x-php"</TD
2685 > const char * containing the application's id in the MIME database</TD
2700 > A GnomeVFSResult indicating the success of the operation or reporting
2701 any errors encountered.</TD
2716 NAME="GNOME-VFS-MIME-REMOVE-APPLICATION-FROM-SHORT-LIST"
2718 >gnome_vfs_mime_remove_application_from_short_list ()</H3
2727 CLASS="PROGRAMLISTING"
2729 HREF="gnome-vfs-types.html#GNOMEVFSRESULT"
2731 > gnome_vfs_mime_remove_application_from_short_list
2732 (const char *mime_type,
2733 const char *application_id);</PRE
2738 >Remove an application from the short list for MIME type <TT
2743 >. The short list contains
2744 applications recommended for display as choices to the user for a particular MIME type.</P
2748 CLASS="INFORMALTABLE"
2777 > A const char * containing a mime type, e.g. "application/x-php"</TD
2794 > const char * containing the application's id in the MIME database</TD
2809 > A GnomeVFSResult indicating the success of the operation or reporting
2810 any errors encountered.</TD
2825 NAME="GNOME-VFS-MIME-ADD-COMPONENT-TO-SHORT-LIST"
2827 >gnome_vfs_mime_add_component_to_short_list ()</H3
2836 CLASS="PROGRAMLISTING"
2838 HREF="gnome-vfs-types.html#GNOMEVFSRESULT"
2840 > gnome_vfs_mime_add_component_to_short_list
2841 (const char *mime_type,
2842 const char *iid);</PRE
2847 >Add a component to the short list for MIME type <TT
2852 >. The short list contains
2853 components recommended for display as choices to the user for a particular MIME type.</P
2857 CLASS="INFORMALTABLE"
2886 > A const char * containing a mime type, e.g. "application/x-php"</TD
2903 > const char * containing the component's OAF IID</TD
2918 > A GnomeVFSResult indicating the success of the operation or reporting
2919 any errors encountered.</TD
2934 NAME="GNOME-VFS-MIME-REMOVE-COMPONENT-FROM-SHORT-LIST"
2936 >gnome_vfs_mime_remove_component_from_short_list ()</H3
2945 CLASS="PROGRAMLISTING"
2947 HREF="gnome-vfs-types.html#GNOMEVFSRESULT"
2949 > gnome_vfs_mime_remove_component_from_short_list
2950 (const char *mime_type,
2951 const char *iid);</PRE
2956 >Remove a component from the short list for MIME type <TT
2961 >. The short list contains
2962 components recommended for display as choices to the user for a particular MIME type.</P
2966 CLASS="INFORMALTABLE"
2995 > A const char * containing a mime type, e.g. "application/x-php"</TD
3012 > const char * containing the component's OAF IID</TD
3027 > A GnomeVFSResult indicating the success of the operation or reporting
3028 any errors encountered.</TD
3043 NAME="GNOME-VFS-MIME-ADD-EXTENSION"
3045 >gnome_vfs_mime_add_extension ()</H3
3054 CLASS="PROGRAMLISTING"
3056 HREF="gnome-vfs-types.html#GNOMEVFSRESULT"
3058 > gnome_vfs_mime_add_extension (const char *mime_type,
3059 const char *extension);</PRE
3064 >Add a file extension to the specificed MIME type in the MIME database.</P
3068 CLASS="INFORMALTABLE"
3097 > The mime type to add the mapping to.</TD
3114 > The extension to add (e.g. "txt")</TD
3129 > GnomeVFSResult indicating the success of the operation or any
3130 errors that may have occurred.</TD
3145 NAME="GNOME-VFS-MIME-REMOVE-EXTENSION"
3147 >gnome_vfs_mime_remove_extension ()</H3
3156 CLASS="PROGRAMLISTING"
3158 HREF="gnome-vfs-types.html#GNOMEVFSRESULT"
3160 > gnome_vfs_mime_remove_extension
3161 (const char *mime_type,
3162 const char *extension);</PRE
3167 >Removes a file extension from the specificed MIME type in the MIME database.</P
3171 CLASS="INFORMALTABLE"
3200 > The mime type to remove the extension from</TD
3217 > The extension to remove</TD
3232 > GnomeVFSResult indicating the success of the operation or any
3233 errors that may have occurred.</TD
3248 NAME="GNOME-VFS-MIME-EXTEND-ALL-APPLICATIONS"
3250 >gnome_vfs_mime_extend_all_applications ()</H3
3259 CLASS="PROGRAMLISTING"
3261 HREF="gnome-vfs-types.html#GNOMEVFSRESULT"
3263 > gnome_vfs_mime_extend_all_applications
3264 (const char *mime_type,
3266 HREF=../glib/glib-doubly-linked-lists.html#GLIST
3267 >GList</A> *application_ids);</PRE
3277 > as being handled by all applications list in <TT
3286 CLASS="INFORMALTABLE"
3315 > A const char * containing a mime type, e.g. "application/x-php"</TD
3332 > a GList of const char * containing application ids</TD
3347 > A GnomeVFSResult indicating the success of the operation or reporting
3348 any errors encountered.</TD
3363 NAME="GNOME-VFS-MIME-REMOVE-FROM-ALL-APPLICATIONS"
3365 >gnome_vfs_mime_remove_from_all_applications ()</H3
3374 CLASS="PROGRAMLISTING"
3376 HREF="gnome-vfs-types.html#GNOMEVFSRESULT"
3378 > gnome_vfs_mime_remove_from_all_applications
3379 (const char *mime_type,
3381 HREF=../glib/glib-doubly-linked-lists.html#GLIST
3382 >GList</A> *application_ids);</PRE
3392 > as a handled type from every application in <TT
3401 CLASS="INFORMALTABLE"
3430 > A const char * containing a mime type, e.g. "application/x-php"</TD
3447 > a GList of const char * containing application ids</TD
3462 > A GnomeVFSResult indicating the success of the operation or reporting
3463 any errors encountered.</TD
3478 NAME="GNOME-VFS-MIME-APPLICATION-NEW-FROM-ID"
3480 >gnome_vfs_mime_application_new_from_id ()</H3
3489 CLASS="PROGRAMLISTING"
3491 HREF="gnome-vfs-mime-handlers.html#GNOMEVFSMIMEAPPLICATION"
3492 >GnomeVFSMimeApplication</A
3493 >* gnome_vfs_mime_application_new_from_id
3494 (const char *id);</PRE
3499 >Fetches the GnomeVFSMimeApplication associated with the specified
3500 application ID from the MIME database.</P
3504 CLASS="INFORMALTABLE"
3533 > A const char * containing an application id</TD
3548 > GnomeVFSMimeApplication * corresponding to <TT
3568 NAME="GNOME-VFS-MIME-APPLICATION-FREE"
3570 >gnome_vfs_mime_application_free ()</H3
3579 CLASS="PROGRAMLISTING"
3580 >void gnome_vfs_mime_application_free (<A
3581 HREF="gnome-vfs-mime-handlers.html#GNOMEVFSMIMEAPPLICATION"
3582 >GnomeVFSMimeApplication</A
3583 > *application);</PRE
3588 >Frees a GnomeVFSMimeApplication *.</P
3592 CLASS="INFORMALTABLE"
3621 > The GnomeVFSMimeApplication to be freed</TD
3636 NAME="GNOME-VFS-MIME-ACTION-FREE"
3638 >gnome_vfs_mime_action_free ()</H3
3647 CLASS="PROGRAMLISTING"
3648 >void gnome_vfs_mime_action_free (<A
3649 HREF="gnome-vfs-mime-handlers.html#GNOMEVFSMIMEACTION"
3650 >GnomeVFSMimeAction</A
3656 >Frees a GnomeVFSMimeAction *.</P
3660 CLASS="INFORMALTABLE"
3689 > The GnomeVFSMimeAction to be freed</TD
3704 NAME="GNOME-VFS-MIME-APPLICATION-LIST-FREE"
3706 >gnome_vfs_mime_application_list_free ()</H3
3715 CLASS="PROGRAMLISTING"
3716 >void gnome_vfs_mime_application_list_free
3718 HREF=../glib/glib-doubly-linked-lists.html#GLIST
3719 >GList</A> *list);</PRE
3724 >Frees lists of GnomeVFSApplications, as returned from functions such
3725 as gnome_vfs_get_all_applications().</P
3729 CLASS="INFORMALTABLE"
3758 > a GList of GnomeVFSApplication * to be freed</TD
3773 NAME="GNOME-VFS-MIME-COMPONENT-LIST-FREE"
3775 >gnome_vfs_mime_component_list_free ()</H3
3784 CLASS="PROGRAMLISTING"
3785 >void gnome_vfs_mime_component_list_free
3787 HREF=../glib/glib-doubly-linked-lists.html#GLIST
3788 >GList</A> *list);</PRE
3793 >Frees lists of Bonobo_ServerInfo * (as returned from functions such
3797 >gnome_vfs_get_all_components</I
3803 CLASS="INFORMALTABLE"
3832 > a GList of Bonobo_ServerInfo * to be freed</TD
3847 NAME="GNOME-VFS-MIME-ID-IN-APPLICATION-LIST"
3849 >gnome_vfs_mime_id_in_application_list ()</H3
3858 CLASS="PROGRAMLISTING"
3860 HREF=../glib/glib-basic-types.html#GBOOLEAN
3861 >gboolean</A> gnome_vfs_mime_id_in_application_list
3864 HREF=../glib/glib-doubly-linked-lists.html#GLIST
3865 >GList</A> *applications);</PRE
3870 >Check whether an application id is in a list of GnomeVFSMimeApplications.</P
3874 CLASS="INFORMALTABLE"
3903 > An application id.</TD
3920 > A GList * whose nodes are GnomeVFSMimeApplications, such as the
3922 HREF="gnome-vfs-mime-handlers.html#GNOME-VFS-MIME-GET-SHORT-LIST-APPLICATIONS"
3923 >gnome_vfs_mime_get_short_list_applications</A
3939 > TRUE if an application whose id matches <TT
3964 NAME="GNOME-VFS-MIME-ID-IN-COMPONENT-LIST"
3966 >gnome_vfs_mime_id_in_component_list ()</H3
3975 CLASS="PROGRAMLISTING"
3977 HREF=../glib/glib-basic-types.html#GBOOLEAN
3978 >gboolean</A> gnome_vfs_mime_id_in_component_list
3981 HREF=../glib/glib-doubly-linked-lists.html#GLIST
3982 >GList</A> *components);</PRE
3987 >Check whether a component iid is in a list of Bonobo_ServerInfos.</P
3991 CLASS="INFORMALTABLE"
4020 > A component iid.</TD
4037 > A GList * whose nodes are Bonobo_ServerInfos, such as the
4039 HREF="gnome-vfs-mime-handlers.html#GNOME-VFS-MIME-GET-SHORT-LIST-COMPONENTS"
4040 >gnome_vfs_mime_get_short_list_components</A
4056 > TRUE if a component whose iid matches <TT
4081 NAME="GNOME-VFS-MIME-REMOVE-APPLICATION-FROM-LIST"
4083 >gnome_vfs_mime_remove_application_from_list ()</H3
4092 CLASS="PROGRAMLISTING"
4094 HREF=../glib/glib-doubly-linked-lists.html#GLIST
4095 >GList</A>* gnome_vfs_mime_remove_application_from_list
4097 HREF=../glib/glib-doubly-linked-lists.html#GLIST
4098 >GList</A> *applications,
4099 const char *application_id,
4101 HREF=../glib/glib-basic-types.html#GBOOLEAN
4102 >gboolean</A> *did_remove);</PRE
4107 >Remove an application specified by id from a list of GnomeVFSMimeApplications.</P
4111 CLASS="INFORMALTABLE"
4140 > A GList * whose nodes are GnomeVFSMimeApplications, such as the
4142 HREF="gnome-vfs-mime-handlers.html#GNOME-VFS-MIME-GET-SHORT-LIST-APPLICATIONS"
4143 >gnome_vfs_mime_get_short_list_applications</A
4161 > The id of an application to remove from <TT
4183 > If non-NULL, this is filled in with TRUE if the application
4184 was found in the list, FALSE otherwise.</TD
4199 > The modified list. If the application is not found, the list will
4215 NAME="GNOME-VFS-MIME-REMOVE-COMPONENT-FROM-LIST"
4217 >gnome_vfs_mime_remove_component_from_list ()</H3
4226 CLASS="PROGRAMLISTING"
4228 HREF=../glib/glib-doubly-linked-lists.html#GLIST
4229 >GList</A>* gnome_vfs_mime_remove_component_from_list
4231 HREF=../glib/glib-doubly-linked-lists.html#GLIST
4232 >GList</A> *components,
4235 HREF=../glib/glib-basic-types.html#GBOOLEAN
4236 >gboolean</A> *did_remove);</PRE
4241 >Remove a component specified by iid from a list of Bonobo_ServerInfos.</P
4245 CLASS="INFORMALTABLE"
4274 > A GList * whose nodes are Bonobo_ServerInfos, such as the
4276 HREF="gnome-vfs-mime-handlers.html#GNOME-VFS-MIME-GET-SHORT-LIST-COMPONENTS"
4277 >gnome_vfs_mime_get_short_list_components</A
4295 > The iid of a component to remove from <TT
4317 > If non-NULL, this is filled in with TRUE if the component
4318 was found in the list, FALSE otherwise.</TD
4333 > The modified list. If the component is not found, the list will
4349 NAME="GNOME-VFS-MIME-ID-LIST-FROM-COMPONENT-LIST"
4351 >gnome_vfs_mime_id_list_from_component_list ()</H3
4360 CLASS="PROGRAMLISTING"
4362 HREF=../glib/glib-doubly-linked-lists.html#GLIST
4363 >GList</A>* gnome_vfs_mime_id_list_from_component_list
4365 HREF=../glib/glib-doubly-linked-lists.html#GLIST
4366 >GList</A> *components);</PRE
4371 >Create a list of component iids from a list of Bonobo_ServerInfos.</P
4375 CLASS="INFORMALTABLE"
4404 > A GList * whose nodes are Bonobo_ServerInfos, such as the
4406 HREF="gnome-vfs-mime-handlers.html#GNOME-VFS-MIME-GET-SHORT-LIST-COMPONENTS"
4407 >gnome_vfs_mime_get_short_list_components</A
4423 > A new list where each Bonobo_ServerInfo in the original
4424 list is replaced by a char * with the component's iid. The original list is
4440 NAME="GNOME-VFS-MIME-ID-LIST-FROM-APPLICATION-LIST"
4442 >gnome_vfs_mime_id_list_from_application_list ()</H3
4451 CLASS="PROGRAMLISTING"
4453 HREF=../glib/glib-doubly-linked-lists.html#GLIST
4454 >GList</A>* gnome_vfs_mime_id_list_from_application_list
4456 HREF=../glib/glib-doubly-linked-lists.html#GLIST
4457 >GList</A> *applications);</PRE
4462 >Create a list of application ids from a list of GnomeVFSMimeApplications.</P
4466 CLASS="INFORMALTABLE"
4495 > A GList * whose nodes are GnomeVFSMimeApplications, such as the
4497 HREF="gnome-vfs-mime-handlers.html#GNOME-VFS-MIME-GET-SHORT-LIST-APPLICATIONS"
4498 >gnome_vfs_mime_get_short_list_applications</A
4514 > A new list where each GnomeVFSMimeApplication in the original
4515 list is replaced by a char * with the application's id. The original list is
4528 CLEAR="all"><BR><TABLE
4540 HREF="gnome-vfs-mime.html"
4545 ><<< Previous Page</B
4578 HREF="mime-registry.html"
4594 HREF="gnome-vfs-mime-info.html"
4599 >Next Page >>></B
4612 >MIME Type Detection</B