libgnomevfsmm  2.26.0
Public Member Functions | Protected Attributes | Related Functions
Gnome::Vfs::MimeApplication Class Reference

#include <mime-application.h>

List of all members.

Public Member Functions

 MimeApplication ()
 MimeApplication (GnomeVFSMimeApplication *castitem, bool make_a_copy=false)
 MimeApplication (const MimeApplication &src)
MimeApplication & operator= (const MimeApplication &src)
 ~MimeApplication ()
GnomeVFSMimeApplication * gobj ()
const GnomeVFSMimeApplication * gobj () const
GnomeVFSMimeApplication * gobj_copy () const
 Provides access to the underlying C instance. The caller is responsible for freeing it. Use when directly setting fields in structs.
 MimeApplication (const Glib::ustring &id)
 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)
 operator bool () const
Glib::ustring get_id () const
 Get the id of this applicaiton.
Glib::ustring get_name () const
 Get the name of this application.
Glib::ustring get_command () const
 Get the command for this application.
MimeApplicationArgumentType get_argument_type () const
 Get the argument type for this application.
Glib::ListHandle< Glib::ustring > get_supported_uri_schemes () const
 Get a list of this application's supported uri schemes.
bool can_open_multiple_files () const
 Test to see if this application can open multiple files.
bool requires_terminal () const
 Test to see if this application requires the terminal.
void set_id (const Glib::ustring &value)
void set_name (const Glib::ustring &value)
void set_command (const Glib::ustring &value)
void set_argument_type (const MimeApplicationArgumentType &value)
void set_supported_uri_schemes (const Glib::ListHandle< Glib::ustring > &value)
void set_open_multiple_files (bool value=true)
void set_requires_terminal (bool value=true)
bool is_user_owned () const
 Checks whether this application is owned or not.
bool exists_in_registry () const
void remove_from_registry ()
void save_to_registry ()
 This will save to the registry the application that will be associated with a defined mime type.
ListHandleStrings get_keys () const
ListHandleStrings get_mime_types () const
void clear_mime_types ()
bool supports_mime_type (const Glib::ustring &mime_type) const
bool supports_uri_scheme (const Glib::ustring &uri_scheme) const
Glib::ustring get_value (const Glib::ustring &key) const
bool get_value_bool (const Glib::ustring &key, bool &got_key) const
bool get_value_bool (const Glib::ustring &key) const
void set_value (const Glib::ustring &key, const Glib::ustring &value)
void set_value (const Glib::ustring &key, bool value)
void unset_key (const Glib::ustring &key)
void add_mime_type (const Glib::ustring &mime_type)
void remove_mime_type (const Glib::ustring &mime_type)
void set_default (const Glib::ustring &mime_type) throw (exception)
void add_to_short_list (const Glib::ustring &mime_type) throw (exception)
void remove_from_short_list (const Glib::ustring &mime_type) throw (exception)
void launch (const Glib::ListHandle< Glib::ustring > &uris) throw (exception)
void launch (const Glib::ListHandle< Glib::ustring > &uris, const Glib::ustring &envp) throw (exception)

Protected Attributes

GnomeVFSMimeApplication * gobject_

Related Functions

(Note that these are not member functions.)

Gnome::Vfs::MimeApplication wrap (GnomeVFSMimeApplication *object, bool take_copy=false)
 A Glib::wrap() method for this object.

Constructor & Destructor Documentation

Gnome::Vfs::MimeApplication::MimeApplication ( GnomeVFSMimeApplication *  castitem,
bool  make_a_copy = false 
) [explicit]
Gnome::Vfs::MimeApplication::MimeApplication ( const Glib::ustring &  id)
Gnome::Vfs::MimeApplication::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 
)

Member Function Documentation

void Gnome::Vfs::MimeApplication::add_mime_type ( const Glib::ustring &  mime_type)
void Gnome::Vfs::MimeApplication::add_to_short_list ( const Glib::ustring &  mime_type) throw (exception)

Test to see if this application can open multiple files.

Returns:
true if this application has this ability; false otherwise.

Get the argument type for this application.

Returns:
An enum representing this application's argument type.

Get the command for this application.

Returns:
A string containing this application's command.
Glib::ustring Gnome::Vfs::MimeApplication::get_id ( ) const

Get the id of this applicaiton.

Returns:
A string containing this application's id.
Glib::ustring Gnome::Vfs::MimeApplication::get_name ( ) const

Get the name of this application.

Returns:
A string containing this application's name.
Glib::ListHandle<Glib::ustring> Gnome::Vfs::MimeApplication::get_supported_uri_schemes ( ) const

Get a list of this application's supported uri schemes.

Returns:
A list of strings containing the uri schemes.
Glib::ustring Gnome::Vfs::MimeApplication::get_value ( const Glib::ustring &  key) const
bool Gnome::Vfs::MimeApplication::get_value_bool ( const Glib::ustring &  key,
bool &  got_key 
) const
bool Gnome::Vfs::MimeApplication::get_value_bool ( const Glib::ustring &  key) const
GnomeVFSMimeApplication* Gnome::Vfs::MimeApplication::gobj ( ) [inline]

References gobject_.

const GnomeVFSMimeApplication* Gnome::Vfs::MimeApplication::gobj ( ) const [inline]

References gobject_.

GnomeVFSMimeApplication* Gnome::Vfs::MimeApplication::gobj_copy ( ) const

Provides access to the underlying C instance. The caller is responsible for freeing it. Use when directly setting fields in structs.

Checks whether this application is owned or not.

By user owned, this means that the application is not a system application located in the prerequisite /usr area, but rather in the user's area.

Parameters:
applicationC++ doesn't use this :).
Returns:
true if this application is user owned, otherwise false.
void Gnome::Vfs::MimeApplication::launch ( const Glib::ListHandle< Glib::ustring > &  uris) throw (exception)
void Gnome::Vfs::MimeApplication::launch ( const Glib::ListHandle< Glib::ustring > &  uris,
const Glib::ustring &  envp 
) throw (exception)
Gnome::Vfs::MimeApplication::operator bool ( ) const
MimeApplication& Gnome::Vfs::MimeApplication::operator= ( const MimeApplication &  src)
void Gnome::Vfs::MimeApplication::remove_from_short_list ( const Glib::ustring &  mime_type) throw (exception)
void Gnome::Vfs::MimeApplication::remove_mime_type ( const Glib::ustring &  mime_type)

Test to see if this application requires the terminal.

Returns:
true if this application needs the terminal; false otherwise.

This will save to the registry the application that will be associated with a defined mime type.

The defined mime type is located within the GnomeVFSMimeApplication structure. Changes are not realized until the gnome_vfs_application_registry_sync function is called.

Parameters:
applicationApplication associated with the mime type.
void Gnome::Vfs::MimeApplication::set_command ( const Glib::ustring &  value)
void Gnome::Vfs::MimeApplication::set_default ( const Glib::ustring &  mime_type) throw (exception)
void Gnome::Vfs::MimeApplication::set_id ( const Glib::ustring &  value)
void Gnome::Vfs::MimeApplication::set_name ( const Glib::ustring &  value)
void Gnome::Vfs::MimeApplication::set_supported_uri_schemes ( const Glib::ListHandle< Glib::ustring > &  value)
void Gnome::Vfs::MimeApplication::set_value ( const Glib::ustring &  key,
const Glib::ustring &  value 
)
void Gnome::Vfs::MimeApplication::set_value ( const Glib::ustring &  key,
bool  value 
)
bool Gnome::Vfs::MimeApplication::supports_mime_type ( const Glib::ustring &  mime_type) const
bool Gnome::Vfs::MimeApplication::supports_uri_scheme ( const Glib::ustring &  uri_scheme) const
void Gnome::Vfs::MimeApplication::unset_key ( const Glib::ustring &  key)

Friends And Related Function Documentation

Gnome::Vfs::MimeApplication wrap ( GnomeVFSMimeApplication *  object,
bool  take_copy = false 
) [related]

A Glib::wrap() method for this object.

Parameters:
objectThe C instance.
take_copyFalse if the result should take ownership of the C instance. True if it should take a new copy or ref.
Returns:
A C++ instance that wraps this C instance.

Member Data Documentation

GnomeVFSMimeApplication* Gnome::Vfs::MimeApplication::gobject_ [protected]

Referenced by gobj().


The documentation for this class was generated from the following file: