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);
64 GnomeVFSMimeApplication*
gobj_copy()
const;
77 ListHandleStrings supported_uri_schemes,
bool multiple_files,
bool requires_terminal);
80 operator bool()
const;
85 Glib::ustring
get_id()
const;
118 void set_id(
const Glib::ustring& value);
119 void set_name(
const Glib::ustring& value);
157 Glib::ustring
get_value(
const Glib::ustring& key)
const;
158 bool get_value_bool(
const Glib::ustring& key,
bool& got_key)
const;
161 void set_value(
const Glib::ustring& key,
const Glib::ustring& value);
162 void set_value(
const Glib::ustring& key,
bool value);
163 void unset_key(
const Glib::ustring& key);
172 #ifdef GLIBMM_EXCEPTIONS_ENABLED 178 void launch(
const Glib::ListHandle<Glib::ustring>& uris)
throw(
exception);
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);
void unset_key(const Glib::ustring &key)
void set_value(const Glib::ustring &key, const Glib::ustring &value)
Definition: mime-application.h:42
Definition: address.h:119
void set_supported_uri_schemes(const Glib::ListHandle< Glib::ustring > &value)
bool can_open_multiple_files() const
Test to see if this application can open multiple files.
void add_mime_type(const Glib::ustring &mime_type)
void remove_from_registry()
Glib::ListHandle< Glib::ustring > ListHandleStrings
Definition: mime-application.h:39
void set_requires_terminal(bool value=true)
ListHandleStrings get_mime_types() const
void set_argument_type(const MimeApplicationArgumentType &value)
Gnome::Vfs::MimeApplication wrap(GnomeVFSMimeApplication *object, bool take_copy=false)
A Glib::wrap() method for this object.
void set_open_multiple_files(bool value=true)
bool supports_mime_type(const Glib::ustring &mime_type) const
Glib::ustring get_value(const Glib::ustring &key) const
bool supports_uri_scheme(const Glib::ustring &uri_scheme) const
bool get_value_bool(const Glib::ustring &key, bool &got_key) const
bool requires_terminal() const
Test to see if this application requires the terminal.
void save_to_registry()
This will save to the registry the application that will be associated with a defined mime type...
MimeApplicationArgumentType get_argument_type() const
Get the argument type for this application.
void set_command(const Glib::ustring &value)
Glib::ListHandle< Glib::ustring > get_supported_uri_schemes() const
Get a list of this application's supported uri schemes.
ListHandleStrings get_keys() const
MimeApplication & operator=(const MimeApplication &src)
bool exists_in_registry() const
void add_to_short_list(const Glib::ustring &mime_type)
bool is_user_owned() const
Checks whether this application is owned or not.
GnomeVFSMimeApplication * gobj_copy() const
Provides access to the underlying C instance. The caller is responsible for freeing it...
void launch(const Glib::ListHandle< Glib::ustring > &uris)
Glib::ustring get_command() const
Get the command for this application.
Glib::ustring get_name() const
Get the name of this application.
Definition: exception.h:33
void remove_from_short_list(const Glib::ustring &mime_type)
Glib::ustring get_id() const
Get the id of this applicaiton.
void set_name(const Glib::ustring &value)
GnomeVFSMimeApplication * gobject_
Definition: mime-application.h:67
GnomeVFSMimeApplication * gobj()
Definition: mime-application.h:60
const GnomeVFSMimeApplication * gobj() const
Definition: mime-application.h:61
void remove_mime_type(const Glib::ustring &mime_type)
void set_default(const Glib::ustring &mime_type)
void set_id(const Glib::ustring &value)