libgnomevfsmm 2.26.0
|
00001 // -*- c++ -*- 00002 // Generated by gtkmmproc -- DO NOT MODIFY! 00003 #ifndef _LIBGNOMEVFSMM_MIME_ACTION_H 00004 #define _LIBGNOMEVFSMM_MIME_ACTION_H 00005 00006 00007 #include <glibmm.h> 00008 00009 /* Copyright 2003 gnome-vfsmm Development Team 00010 * 00011 * This library is free software; you can redistribute it and/or 00012 * modify it under the terms of the GNU Lesser General Public 00013 * License as published by the Free Software Foundation; either 00014 * version 2.1 of the License, or (at your option) any later version. 00015 * 00016 * This library is distributed in the hope that it will be useful, 00017 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00018 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00019 * Lesser General Public License for more details. 00020 * 00021 * You should have received a copy of the GNU Lesser General Public 00022 * License along with this library; if not, write to the Free 00023 * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 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 /* DOXYGEN_SHOULD_SKIP_THIS */ 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 //Instances of this class can not be copied: 00074 MimeAction(const MimeAction&); 00075 MimeAction& operator=(const MimeAction&); 00076 00077 00078 }; 00079 00080 } // namespace Vfs 00081 } // namespace Gnome 00082 00083 00084 #endif /* _LIBGNOMEVFSMM_MIME_ACTION_H */ 00085