Go to the documentation of this file.
3 #ifndef _LIBGNOMEVFSMM_MIME_APPLICATION_H
4 #define _LIBGNOMEVFSMM_MIME_APPLICATION_H
26 #include <libgnomevfs/gnome-vfs-mime-handlers.h>
27 #include <libgnomevfs/gnome-vfs-application-registry.h>
45 #ifndef DOXYGEN_SHOULD_SKIP_THIS
47 typedef GnomeVFSMimeApplication BaseObjectType;
53 explicit MimeApplication(GnomeVFSMimeApplication* castitem,
bool make_a_copy =
false);
80 operator bool()
const;
157 Glib::ustring
get_value(
const Glib::ustring& key)
const;
161 void set_value(
const Glib::ustring& key,
const Glib::ustring& value);
172 #ifdef GLIBMM_EXCEPTIONS_ENABLED
179 void launch(
const Glib::ListHandle<Glib::ustring>& uris,
const Glib::ustring& envp)
throw(
exception);
183 void set_default(
const Glib::ustring& mime_type, std::auto_ptr<Gnome::Vfs::exception>& error);
184 void add_to_short_list(
const Glib::ustring& mime_type, std::auto_ptr<Gnome::Vfs::exception>& error);
187 void launch(
const Glib::ListHandle<Glib::ustring>& uris, std::auto_ptr<Gnome::Vfs::exception>& error);
188 void launch(
const Glib::ListHandle<Glib::ustring>& uris,
const Glib::ustring& envp, std::auto_ptr<Gnome::Vfs::exception>& error);
Gnome::Vfs::MimeApplication wrap(GnomeVFSMimeApplication *object, bool take_copy=false)
A Glib::wrap() method for this object.
void add_mime_type(const Glib::ustring &mime_type)
MimeApplication(const Glib::ustring &id)
GnomeVFSMimeApplication * gobj()
Definition: mime-application.h:60
void remove_from_registry()
void set_id(const Glib::ustring &value)
void unset_key(const Glib::ustring &key)
bool get_value_bool(const Glib::ustring &key, bool &got_key) const
ListHandleStrings get_keys() const
GnomeVFSMimeApplication * gobj_copy() const
Provides access to the underlying C instance. The caller is responsible for freeing it....
MimeApplication(const MimeApplication &src)
Glib::ustring get_command() const
Get the command for this application.
void set_name(const Glib::ustring &value)
void set_supported_uri_schemes(const Glib::ListHandle< Glib::ustring > &value)
void remove_mime_type(const Glib::ustring &mime_type)
void set_default(const Glib::ustring &mime_type)
void set_open_multiple_files(bool value=true)
bool get_value_bool(const Glib::ustring &key) const
MimeApplicationArgumentType get_argument_type() const
Get the argument type for this application.
void save_to_registry()
This will save to the registry the application that will be associated with a defined mime type.
void launch(const Glib::ListHandle< Glib::ustring > &uris)
void set_command(const Glib::ustring &value)
bool can_open_multiple_files() const
Test to see if this application can open multiple files.
Definition: exception.h:34
Glib::ListHandle< Glib::ustring > get_supported_uri_schemes() const
Get a list of this application's supported uri schemes.
const GnomeVFSMimeApplication * gobj() const
Definition: mime-application.h:61
void set_argument_type(const MimeApplicationArgumentType &value)
Glib::ustring get_value(const Glib::ustring &key) const
MimeApplication(const Glib::ustring &id, const Glib::ustring &name, const Glib::ustring &command, MimeApplicationArgumentType argument_type, ListHandleStrings supported_uri_schemes, bool multiple_files, bool requires_terminal)
Glib::ustring get_name() const
Get the name of this application.
MimeApplication & operator=(const MimeApplication &src)
void launch(const Glib::ListHandle< Glib::ustring > &uris, const Glib::ustring &envp)
void set_requires_terminal(bool value=true)
bool supports_uri_scheme(const Glib::ustring &uri_scheme) const
ListHandleStrings get_mime_types() const
Definition: mime-application.h:43
void add_to_short_list(const Glib::ustring &mime_type)
bool is_user_owned() const
Checks whether this application is owned or not.
bool requires_terminal() const
Test to see if this application requires the terminal.
void set_value(const Glib::ustring &key, bool value)
bool supports_mime_type(const Glib::ustring &mime_type) const
void remove_from_short_list(const Glib::ustring &mime_type)
GnomeVFSMimeApplication * gobject_
Definition: mime-application.h:67
Glib::ustring get_id() const
Get the id of this applicaiton.
MimeApplication(GnomeVFSMimeApplication *castitem, bool make_a_copy=false)
Definition: address.h:120
void set_value(const Glib::ustring &key, const Glib::ustring &value)
bool exists_in_registry() const
Glib::ListHandle< Glib::ustring > ListHandleStrings
Definition: mime-application.h:39