21#ifndef _LIBGNOMEVFSMM_APPLICATION_REGISTRY_H
22#define _LIBGNOMEVFSMM_APPLICATION_REGISTRY_H
29#include <libgnomevfs/gnome-vfs-application-registry.h>
41namespace ApplicationRegistry
52bool exists(
const Glib::ustring& app_id);
69Glib::ustring
peek_value(
const Glib::ustring& app_id,
const Glib::ustring& key);
82bool get_bool_value(
const Glib::ustring& app_id,
const Glib::ustring& key,
bool& got_key);
98void set_value(
const Glib::ustring& app_id,
const Glib::ustring& key,
const Glib::ustring& value);
110void set_value(
const Glib::ustring& app_id,
const Glib::ustring& key,
bool value =
true);
119void unset_key(
const Glib::ustring& app_id,
const Glib::ustring& key);
174void add_mime_type(
const Glib::ustring& app_id,
const Glib::ustring& mime_type);
188#ifdef GLIBMM_EXCEPTIONS_ENABLED
191void sync(std::auto_ptr<Gnome::Vfs::exception>& error);
Definition: mime-application.h:43
Definition: exception.h:34
ListHandleStrings get_applications(const Glib::ustring &mime_type)
Get all application IDs from the registry that are associated with the given MIME type.
bool exists(const Glib::ustring &app_id)
Check to see if there is an entry for app_id in the registry.
ListHandleStrings get_keys(const Glib::ustring &app_id)
Get a list of keys for a specified application in the registry.
void unset_key(const Glib::ustring &app_id, const Glib::ustring &key)
Wipe the current value that key contains for app_id.
void add_mime_type(const Glib::ustring &app_id, const Glib::ustring &mime_type)
Associate an MIME type with an application.
void clear_mime_types(const Glib::ustring &app_id)
Remove the MIME types associated with an application.
Glib::ListHandle< Glib::ustring > ListHandleStrings
Definition: application-registry.h:44
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 remove_application(const Glib::ustring &app_id)
Remove the application represented by app_id from the registry.
ListHandleStrings get_mime_types(const Glib::ustring &app_id)
Get all MIME types that can be handled by an application.
MimeApplication get_mime_application(const Glib::ustring &app_id)
Get the MimeApplication associated with app_id .
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 sync()
This function will sync the registry.
void save_mime_application(const MimeApplication &application)
Save an application to the registry that will be associated with a defined MIME type.
bool supports_uri_scheme(const Glib::ustring &app_id, const Glib::ustring &uri_scheme)
Checks whether an application supports the given URI scheme.
void remove_mime_type(const Glib::ustring &app_id, const Glib::ustring &mime_type)
De-Associate an MIME type from an application.
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.