Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members

monitor-handle.h

Go to the documentation of this file.
00001 #ifndef _LIBGNOMEVFSMM_MONITOR_HANDLE_H 00002 #define _LIBGNOMEVFSMM_MONITOR_HANDLE_H 00003 00004 #include <glibmm.h> 00005 00006 /* Copyright 2003 gnome-vfsmm Development Team 00007 * 00008 * This library is free software; you can redistribute it and/or 00009 * modify it under the terms of the GNU Library General Public 00010 * License as published by the Free Software Foundation; either 00011 * version 2 of the License, or (at your option) any later version. 00012 * 00013 * This library is distributed in the hope that it will be useful, 00014 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00015 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00016 * Library General Public License for more details. 00017 * 00018 * You should have received a copy of the GNU Library General Public 00019 * License along with this library; if not, write to the Free 00020 * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 00021 */ 00022 00023 #include <libgnomevfsmm/enums.h> 00024 #include <libgnomevfsmm/exception.h> 00025 #include <libgnomevfs/gnome-vfs-monitor.h> 00026 00027 00028 #ifndef DOXYGEN_SHOULD_SKIP_THIS 00029 typedef struct GnomeVFSMonitorHandle GnomeVFSMonitorHandle; 00030 #endif /* DOXYGEN_SHOULD_SKIP_THIS */ 00031 00032 00033 namespace Gnome 00034 { 00035 00036 namespace Vfs 00037 { 00038 00039 #ifndef DOXYGEN_SHOULD_SKIP_THIS 00040 namespace 00041 { 00042 00043 class SignalProxy_Monitor; 00044 00045 } 00046 #endif /* DOXYGEN_SHOULD_SKIP_THIS */ 00047 00048 class MonitorHandle 00049 { 00050 public: 00051 MonitorHandle(); 00052 virtual ~MonitorHandle(); 00053 00055 typedef SigC::Slot4<void, const MonitorHandle&, const Glib::ustring&, const Glib::ustring&, MonitorEventType> SlotMonitor; 00056 00057 void add(const Glib::ustring& text_uri, MonitorType type, const SlotMonitor& slot) throw(exception); 00058 void cancel() throw(exception); 00059 00060 GnomeVFSMonitorHandle** gobj_addr(); 00061 GnomeVFSMonitorHandle* gobj(); 00062 const GnomeVFSMonitorHandle* gobj() const; 00063 00064 private: 00065 00066 GnomeVFSMonitorHandle* gobj_; 00067 SignalProxy_Monitor* proxy_; 00068 }; 00069 00070 } // namespace Vfs 00071 } // namespace Gnome 00072 00073 #endif /* _LIBGNOMEVFSMM_MONITOR_HANDLE_H */ 00074

Generated on Fri Aug 13 09:24:46 2004 for libgnomevfsmm by doxygen 1.3.7