mime-handlers.h File Reference

#include <glibmm.h>
#include <libgnomevfsmm/enums.h>
#include <libgnomevfsmm/exception.h>
#include <libgnomevfsmm/mime-application.h>
#include <libgnomevfsmm/mime-action.h>

Go to the source code of this file.

Namespaces

namespace  Gnome
namespace  Gnome::Vfs
namespace  Gnome::Vfs::Mime

Typedefs

typedef Glib::ListHandle<
Gnome::Vfs::MimeApplication * > 
Gnome::Vfs::Mime::ListHandleApps
typedef Glib::ListHandle<
Glib::ustring > 
Gnome::Vfs::Mime::ListHandleStrings

Functions

MimeActionType Gnome::Vfs::Mime::get_default_action_type (const Glib::ustring &mime_type)
 Get a default action type for specified mime_type.
MimeApplication Gnome::Vfs::Mime::get_default_application (const Glib::ustring &mime_type)
 Get the default application for specified mime_type.
GnomeVFSMimeAction * Gnome::Vfs::Mime::get_default_action (const Glib::ustring &mime_type)
 Get the default action for specified mime_type.
ListHandleApps Gnome::Vfs::Mime::get_short_list_applications (const Glib::ustring &mime_type)
 Get a short list of applications for specified mime_type.
ListHandleApps Gnome::Vfs::Mime::get_all_applications (const Glib::ustring &mime_type)
 Get the entire list of applications for specified mime_type.
bool Gnome::Vfs::Mime::id_in_application_list (const Glib::ustring &id, const ListHandleApps &applications)
 Test if an application ID is in a list of applications.
ListHandleStrings Gnome::Vfs::Mime::id_list_from_application_list (const ListHandleApps &applications)
 Get a list of IDs corresponding to the applications in a list.
Glib::ustring Gnome::Vfs::Mime::get_icon (const Glib::ustring &mime_type)
 Query the MIME database for an icon representing the specified MIME type.
Glib::ustring Gnome::Vfs::Mime::get_description (const Glib::ustring &mime_type)
 Query the MIME database for a description of the specified MIME type.
bool Gnome::Vfs::Mime::can_be_executable (const Glib::ustring &mime_type)
 Test whether files of this MIME type might conceivably be executable.
bool Gnome::Vfs::Mime::type_is_known (const Glib::ustring &mime_type)
 Test to see if mime_type is in the MIME database at all.
ListHandleStrings Gnome::Vfs::Mime::get_extensions_list (const Glib::ustring &mime_type)
 Get the file extensions associated with an MIME type.
Glib::ustring Gnome::Vfs::Mime::get_extensions_string (const Glib::ustring &mime_type, bool pretty=false)
 Retrieves the extensions associated with mime_type.
ListHandleStrings Gnome::Vfs::Mime::get_registered_types ()
 Get a list of registered MIME types from the MIME database.
Glib::ustring Gnome::Vfs::Mime::get_value (Glib::ustring &mime_type, Glib::ustring &key)
 Retrieve the value associated with key in the given GnomeMimeContext.
ListHandleStrings Gnome::Vfs::Mime::get_key_list (Glib::ustring &mime_type)
 Retrieve a list of all keys associated with mime_type.
void Gnome::Vfs::Mime::set_default_action_type (const Glib::ustring &mime_type, MimeActionType action_type) throw (exception)
 Sets the default action type to be performed on files of the specified MIME type.
void Gnome::Vfs::Mime::set_default_application (const Glib::ustring &mime_type, const Glib::ustring &application_id) throw (exception)
 Sets the default application to run on files of the specified MIME type.
void Gnome::Vfs::Mime::set_default_component (const Glib::ustring &mime_type, const Glib::ustring &iid) throw (exception)
 Sets the default component to use with files of the specified MIME type.
void Gnome::Vfs::Mime::set_icon (const Glib::ustring &mime_type, const Glib::ustring &filename) throw (exception)
 Set the icon entry for a particular MIME type in the MIME database.
void Gnome::Vfs::Mime::set_description (const Glib::ustring &mime_type, const Glib::ustring &description) throw (exception)
 Set the description of this MIME type in the MIME database.
void Gnome::Vfs::Mime::set_can_be_executable (const Glib::ustring &mime_type, bool new_value) throw (exception)
 Set whether files of this MIME type might conceivably be executable.
void Gnome::Vfs::Mime::set_short_list_applications (const Glib::ustring &mime_type, ListHandleStrings &application_ids) throw (exception)
 Set the short list of applications for the specified MIME type.
void Gnome::Vfs::Mime::set_short_list_components (const Glib::ustring &mime_type, ListHandleStrings &component_iids) throw (exception)
 Set the short list of components for the specified MIME type.
void Gnome::Vfs::Mime::add_application_to_short_list (const Glib::ustring &mime_type, Glib::ustring &application_id) throw (exception)
 Add an application to the short list for the specified MIME type.
void Gnome::Vfs::Mime::remove_application_from_short_list (const Glib::ustring &mime_type, Glib::ustring &application_id) throw (exception)
 Remove an application from the short list for the specified MIME type.
void Gnome::Vfs::Mime::add_component_to_short_list (const Glib::ustring &mime_type, Glib::ustring &component_iid) throw (exception)
 Add a component to the short list for the specified MIME type.
void Gnome::Vfs::Mime::remove_component_from_short_list (const Glib::ustring &mime_type, Glib::ustring &component_iid) throw (exception)
 Remove a component from the short list for the specified MIME type.
void Gnome::Vfs::Mime::add_extension (const Glib::ustring &mime_type, Glib::ustring &extension) throw (exception)
 Add a file extension to the specified MIME type in the database.
void Gnome::Vfs::Mime::remove_extension (const Glib::ustring &mime_type, Glib::ustring &extension) throw (exception)
 Removes a file extension from the specified MIME type in the database.
void Gnome::Vfs::Mime::set_extensions_list (const Glib::ustring &mime_type, const Glib::ustring &extensions_list) throw (exception)
 Sets the extensions for a given mime type.
void Gnome::Vfs::Mime::extend_all_applications (const Glib::ustring &mime_type, ListHandleStrings &application_ids) throw (exception)
 Register mime_type as being handled by all applications listed in application_ids.
void Gnome::Vfs::Mime::remove_from_all_applications (const Glib::ustring &mime_type, ListHandleStrings &application_ids) throw (exception)
 Remove mime_type as a handled type from every application in application_ids.
void Gnome::Vfs::Mime::registered_mime_type_delete (const Glib::ustring &mime_type)
 Delete an MIME type for the user who runs this command.
void Gnome::Vfs::Mime::set_registered_type_key (const Glib::ustring &mime_type, const Glib::ustring &key, const Glib::ustring &data) throw (exception)
 Set the key data for the registered MIME type's hash table.
void Gnome::Vfs::Mime::set_value (const Glib::ustring &mime_type, const Glib::ustring &key, const Glib::ustring &value) throw (exception)
 Set the value associated with the key.
void Gnome::Vfs::Mime::freeze ()
 Freeze the MIME data so that you can do multiple updates to the data in one batch without needing to back-up the files to disk or rewind them.
void Gnome::Vfs::Mime::thaw ()
 UnFreeze the MIME data after a freeze.
void Gnome::Vfs::Mime::info_reload ()
 Reload the MIME database from disk.
void Gnome::Vfs::Mime::reset ()
 Reset the user's MIME database to the system defaults.


Generated on Tue Aug 22 09:07:07 2006 for libgnomevfsmm by  doxygen 1.4.7