21 #ifndef _LIBGNOMEVFSMM_APPLICATION_REGISTRY_H
22 #define _LIBGNOMEVFSMM_APPLICATION_REGISTRY_H
29 #include <libgnomevfs/gnome-vfs-application-registry.h>
41 namespace ApplicationRegistry
52 bool exists(
const Glib::ustring& app_id);
69 Glib::ustring
peek_value(
const Glib::ustring& app_id,
const Glib::ustring& key);
82 bool get_bool_value(
const Glib::ustring& app_id,
const Glib::ustring& key,
bool& got_key);
98 void set_value(
const Glib::ustring& app_id,
const Glib::ustring& key,
const Glib::ustring& value);
110 void set_value(
const Glib::ustring& app_id,
const Glib::ustring& key,
bool value =
true);
119 void unset_key(
const Glib::ustring& app_id,
const Glib::ustring& key);
174 void add_mime_type(
const Glib::ustring& app_id,
const Glib::ustring& mime_type);
182 void remove_mime_type(
const Glib::ustring& app_id,
const Glib::ustring& mime_type);
188 #ifdef GLIBMM_EXCEPTIONS_ENABLED
191 void sync(std::auto_ptr<Gnome::Vfs::exception>& error);
MimeApplication get_mime_application(const Glib::ustring &app_id)
Get the MimeApplication associated with app_id .
bool exists(const Glib::ustring &app_id)
Check to see if there is an entry for app_id in the registry.
void sync()
This function will sync the registry.
Definition: mime-application.h:42
void remove_application(const Glib::ustring &app_id)
Remove the application represented by app_id from the registry.
void remove_mime_type(const Glib::ustring &app_id, const Glib::ustring &mime_type)
De-Associate an MIME type from an application.
bool supports_mime_type(const Glib::ustring &app_id, const Glib::ustring &mime_type)
Checks whether an application is associated with a given MIME type.
void add_mime_type(const Glib::ustring &app_id, const Glib::ustring &mime_type)
Associate an MIME type with an application.
bool supports_uri_scheme(const Glib::ustring &app_id, const Glib::ustring &uri_scheme)
Checks whether an application supports the given URI scheme.
void save_mime_application(const MimeApplication &application)
Save an application to the registry that will be associated with a defined MIME type.
bool get_bool_value(const Glib::ustring &app_id, const Glib::ustring &key, bool &got_key)
Look up a key in the structure pointed to by app_id and return the boolean value of that key...
void shutdown()
Synchronize the application registry data to disk and free resources.
void reload()
If this function is called for the first time, it will initialize the registry.
Glib::ustring peek_value(const Glib::ustring &app_id, const Glib::ustring &key)
Get the value associated with key for app_id in the registry.
void clear_mime_types(const Glib::ustring &app_id)
Remove the MIME types associated with an application.
Definition: exception.h:33
void set_value(const Glib::ustring &app_id, const Glib::ustring &key, const Glib::ustring &value)
Set values pertaining to the registry entry pointed to by app_id.
ListHandleStrings get_mime_types(const Glib::ustring &app_id)
Get all MIME types that can be handled by an application.
ListHandleStrings get_keys(const Glib::ustring &app_id)
Get a list of keys for a specified application in the registry.
ListHandleStrings get_applications(const Glib::ustring &mime_type)
Get all application IDs from the registry that are associated with the given MIME type...
void unset_key(const Glib::ustring &app_id, const Glib::ustring &key)
Wipe the current value that key contains for app_id.
Glib::ListHandle< Glib::ustring > ListHandleStrings
Definition: application-registry.h:44