00001
00002
00003 #ifndef _LIBGNOMEVFSMM_MIME_ACTION_H
00004 #define _LIBGNOMEVFSMM_MIME_ACTION_H
00005
00006
00007 #include <glibmm.h>
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026 #include <libgnomevfs/gnome-vfs-mime-handlers.h>
00027
00028 #include <libgnomevfsmm/enums.h>
00029 #include <libgnomevfsmm/exception.h>
00030
00031
00032 namespace Gnome
00033 {
00034
00035 namespace Vfs
00036 {
00037
00038 class MimeAction
00039 {
00040 public:
00041 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00042 typedef MimeAction CppObjectType;
00043 typedef GnomeVFSMimeAction BaseObjectType;
00044 #endif
00045
00046 private:
00047
00048
00049 public:
00050 MimeAction();
00051 ~MimeAction();
00052
00053 GnomeVFSMimeAction* gobj() { return gobject_; }
00054 const GnomeVFSMimeAction* gobj() const { return gobject_; }
00055
00056
00057 #ifdef GLIBMM_EXCEPTIONS_ENABLED
00058 void launch(const Glib::ListHandle<Glib::ustring>& uris) throw(exception);
00059 void launch(const Glib::ListHandle<Glib::ustring>& uris, const Glib::ustring& envp) throw(exception);
00060 #else
00061 void launch(const Glib::ListHandle<Glib::ustring>& uris, std::auto_ptr<Gnome::Vfs::exception>& error);
00062 void launch(const Glib::ListHandle<Glib::ustring>& uris, const Glib::ustring& envp, std::auto_ptr<Gnome::Vfs::exception>& error);
00063 #endif //GLIBMM_EXCEPTIONS_ENABLED
00064
00065 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00066 void assign_gobj(GnomeVFSMimeAction* src);
00067 #endif
00068
00069 protected:
00070 GnomeVFSMimeAction* gobject_;
00071
00072 private:
00073
00074 MimeAction(const MimeAction&);
00075 MimeAction& operator=(const MimeAction&);
00076
00077
00078 };
00079
00080 }
00081 }
00082
00083
00084 #endif
00085