GNOME Bugzilla – Bug 117264
Mime bindings and functions
Last modified: 2011-01-16 23:36:27 UTC
2003-07-09 Bryan Forbes <mxpxfifws@yahoo.com> * TODO: added subsection (b) to section 0; added a question to section 1. * docs/undocumented: added this file with classes/methods/functions that we need to document. * libgnomevfs/src/uri.hg: added documentation for create(), get_file_info(), create_symbolic_link(), and uri_exists(); added _IGNORE() for gnome_vfs_uri_equals and gnome_vfs_uri_exists since they are wrapped. * libgnomevfs/src/mime-application.hg: made is_user_owned() method and added set wrappers for each member. * libgnomevfs/libgnomevfsmm/application-registry.[h|cc]: documented all functions; changed sync() from returning a result to throwing an exception; added handle_result() to use in sync(); removed is_user_owned_application() and made it method of MimeApplication. * tools/m4/convert_gnome_vfsmm.m4: added conversion for Glib::ustring -> char* and Glib::ListHandle<Glib::ustring> -> GList*. 2003-07-08 Bryan Forbes <mxpxfifws@yahoo.com> * README: added some information. * TODO: detailed descriptions of what needs to be done to finish Mime stuff. * libgnomevfs/src/mime-application.hg: added documentation for all methods. * libgnomevfs/src/libgnomevfs_docs_override.xml: added documentation for MimeApplication::create_from_id(). * libgnomevfs/libgnomevfsmm/mime-handlers.h: added documentation for all functions. 2003-07-07 Bryan Forbes <mxpxfifws@yahoo.com> * libgnomevfs/libgnomevfsmm/mime-handlers.[h|cc]: wrapped what was left to wrap of the handlers code except for the Bonobo/component functions; see libgnomevfs/mime-unwrapped to see what else is left. * libgnomevfs/mime-unwrapped: went through the gnome-vfs docs and made a list of what needs to be completed for the Mime namespace. 2003-06-30 Bryan Forbes <mxpxfifws@yahoo.com> * configure.in: check for gnome-vfs-module-2.0 because some mime functions are put there. * libgnomevfs/libgnomevfsmm/application-registry.[h|cc]: wrapped gnome_vfs_application_is_user_owned_application and gnome_vfs_application_registry_[get|save]_mime_application. * libgnomevfs/libgnomevfsmm/mime-handlers.[h|cc]: added Mime namespace for the mime-handler functions; wrapped most functions (some list stuff to be done). * libgnomevfs/libgnomevfsmm/Makefile.am: added mime-handlers.[h|cc] to the list of files to be built. * libgnomevfs/src/enums.hg: wrapped all Mime and Xfer enums. * libgnomevfs/src/libgnomevfs_enums.defs: removed GNOME_ prefix from the Mime enum defs. * libgnomevfs/src/Makefile_list_of_hg.am_fragment: added mime-application.hg and mime-action.hg to the list. * libgnomevfs/src/mime-action.[hg|ccg]: wrapped GnomeVFSMimeAction with _CLASS_GENERIC and created all necesary basic methods. * libgnomevfs/src/mime-application.[hg|ccg]: wrapped GnomeVFSMimeApplication with _CLASS_OPAQUE_COPYABLE, wrapped a static create method, and all member accessors. * libgnomevfs/libgnomevfsmm.h: included mime-application.h, mime-action.h, and mime-handlers.h. * tools/m4/convert_gnome_vfsmm.m4: added a conversion for GList* --> Glib::ListHandle<Glib::ustring>, GnomeVFSMimeApplication* --> MimeApplication, and MimeApplicationArgumentType <-> GnomeVFSMimeApplicationArgumentType; also added a header to tell where the enumeration conversions begin.
Created attachment 18237 [details] [review] gnomevfsmm-2.0-20030712.diff
Created attachment 18238 [details] gnomevfsmm-2.0-20030712.tar.bz2
patch applied.
Great. I look forward to seeing examples that demonstrate how to use this. It looks like some ApplicationRegistry methods (e.g. get_mime_application()) should be static.