<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8"> <title>libgnomevfsmm: volume-monitor.h Source File</title> <link href="doxygen.css" rel="stylesheet" type="text/css"> <link href="tabs.css" rel="stylesheet" type="text/css"> </head><body> <!-- Generated by Doxygen 1.5.6 --> <div class="navigation" id="top"> <div class="tabs"> <ul> <li><a href="index.html"><span>Main Page</span></a></li> <li><a href="pages.html"><span>Related Pages</span></a></li> <li><a href="modules.html"><span>Modules</span></a></li> <li><a href="namespaces.html"><span>Namespaces</span></a></li> <li><a href="classes.html"><span>Classes</span></a></li> <li class="current"><a href="files.html"><span>Files</span></a></li> </ul> </div> <h1>volume-monitor.h</h1><a href="volume-monitor_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">// -*- c++ -*-</span> <a name="l00002"></a>00002 <span class="comment">// Generated by gtkmmproc -- DO NOT MODIFY!</span> <a name="l00003"></a>00003 <span class="preprocessor">#ifndef _LIBGNOMEVFSMM_VOLUME_MONITOR_H</span> <a name="l00004"></a>00004 <span class="preprocessor"></span><span class="preprocessor">#define _LIBGNOMEVFSMM_VOLUME_MONITOR_H</span> <a name="l00005"></a>00005 <span class="preprocessor"></span> <a name="l00006"></a>00006 <a name="l00007"></a>00007 <span class="preprocessor">#include <glibmm.h></span> <a name="l00008"></a>00008 <a name="l00009"></a>00009 <span class="comment">/* Copyright 2003 gnome-vfsmm Development Team</span> <a name="l00010"></a>00010 <span class="comment"> *</span> <a name="l00011"></a>00011 <span class="comment"> * This library is free software; you can redistribute it and/or</span> <a name="l00012"></a>00012 <span class="comment"> * modify it under the terms of the GNU Lesser General Public</span> <a name="l00013"></a>00013 <span class="comment"> * License as published by the Free Software Foundation; either</span> <a name="l00014"></a>00014 <span class="comment"> * version 2.1 of the License, or (at your option) any later version.</span> <a name="l00015"></a>00015 <span class="comment"> *</span> <a name="l00016"></a>00016 <span class="comment"> * This library is distributed in the hope that it will be useful,</span> <a name="l00017"></a>00017 <span class="comment"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span> <a name="l00018"></a>00018 <span class="comment"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU</span> <a name="l00019"></a>00019 <span class="comment"> * Lesser General Public License for more details.</span> <a name="l00020"></a>00020 <span class="comment"> *</span> <a name="l00021"></a>00021 <span class="comment"> * You should have received a copy of the GNU Lesser General Public</span> <a name="l00022"></a>00022 <span class="comment"> * License along with this library; if not, write to the Free</span> <a name="l00023"></a>00023 <span class="comment"> * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.</span> <a name="l00024"></a>00024 <span class="comment"> */</span> <a name="l00025"></a>00025 <a name="l00026"></a>00026 <a name="l00027"></a>00027 <span class="preprocessor">#include <<a class="code" href="drive_8h.html">libgnomevfsmm/drive.h</a>></span> <a name="l00028"></a>00028 <span class="preprocessor">#include <<a class="code" href="volume_8h.html">libgnomevfsmm/volume.h</a>></span> <a name="l00029"></a>00029 <a name="l00030"></a>00030 <span class="preprocessor">#ifndef DOXYGEN_SHOULD_SKIP_THIS</span> <a name="l00031"></a>00031 <span class="preprocessor"></span><span class="keyword">typedef</span> <span class="keyword">struct </span>_GnomeVFSVolumeMonitor GnomeVFSVolumeMonitor; <a name="l00032"></a>00032 <span class="keyword">typedef</span> <span class="keyword">struct </span>_GnomeVFSVolumeMonitorClass GnomeVFSVolumeMonitorClass; <a name="l00033"></a>00033 <span class="preprocessor">#endif </span><span class="comment">/* DOXYGEN_SHOULD_SKIP_THIS */</span> <a name="l00034"></a>00034 <a name="l00035"></a>00035 <a name="l00036"></a>00036 <span class="keyword">namespace </span>Gnome <a name="l00037"></a>00037 { <a name="l00038"></a>00038 <a name="l00039"></a>00039 <span class="keyword">namespace </span>Vfs <a name="l00040"></a>00040 { <span class="keyword">class </span>VolumeMonitor_Class; } <span class="comment">// namespace Vfs</span> <a name="l00041"></a>00041 <a name="l00042"></a>00042 } <span class="comment">// namespace Gnome</span> <a name="l00043"></a>00043 <span class="keyword">namespace </span>Gnome <a name="l00044"></a>00044 { <a name="l00045"></a>00045 <a name="l00046"></a>00046 <span class="keyword">namespace </span>Vfs <a name="l00047"></a>00047 { <a name="l00048"></a>00048 <a name="l00049"></a>00049 <a name="l00050"></a><a class="code" href="classGnome_1_1Vfs_1_1VolumeMonitor.html">00050</a> <span class="keyword">class </span><a class="code" href="classGnome_1_1Vfs_1_1VolumeMonitor.html">VolumeMonitor</a> : <span class="keyword">public</span> Glib::<a class="code" href="classGlib_1_1Object.html">Object</a> <a name="l00051"></a>00051 { <a name="l00052"></a>00052 <a name="l00053"></a>00053 <span class="preprocessor">#ifndef DOXYGEN_SHOULD_SKIP_THIS</span> <a name="l00054"></a>00054 <span class="preprocessor"></span> <a name="l00055"></a>00055 <span class="keyword">public</span>: <a name="l00056"></a>00056 <span class="keyword">typedef</span> <a class="code" href="classGnome_1_1Vfs_1_1VolumeMonitor.html">VolumeMonitor</a> CppObjectType; <a name="l00057"></a>00057 <span class="keyword">typedef</span> VolumeMonitor_Class CppClassType; <a name="l00058"></a>00058 <span class="keyword">typedef</span> GnomeVFSVolumeMonitor BaseObjectType; <a name="l00059"></a>00059 <span class="keyword">typedef</span> GnomeVFSVolumeMonitorClass BaseClassType; <a name="l00060"></a>00060 <a name="l00061"></a>00061 <span class="keyword">private</span>: <span class="keyword">friend</span> <span class="keyword">class </span>VolumeMonitor_Class; <a name="l00062"></a>00062 <span class="keyword">static</span> CppClassType volumemonitor_class_; <a name="l00063"></a>00063 <a name="l00064"></a>00064 <span class="keyword">private</span>: <a name="l00065"></a>00065 <span class="comment">// noncopyable</span> <a name="l00066"></a>00066 <a class="code" href="classGnome_1_1Vfs_1_1VolumeMonitor.html">VolumeMonitor</a>(<span class="keyword">const</span> <a class="code" href="classGnome_1_1Vfs_1_1VolumeMonitor.html">VolumeMonitor</a>&); <a name="l00067"></a>00067 <a class="code" href="classGnome_1_1Vfs_1_1VolumeMonitor.html">VolumeMonitor</a>& operator=(<span class="keyword">const</span> <a class="code" href="classGnome_1_1Vfs_1_1VolumeMonitor.html">VolumeMonitor</a>&); <a name="l00068"></a>00068 <a name="l00069"></a>00069 <span class="keyword">protected</span>: <a name="l00070"></a>00070 <span class="keyword">explicit</span> <a class="code" href="classGnome_1_1Vfs_1_1VolumeMonitor.html">VolumeMonitor</a>(<span class="keyword">const</span> Glib::ConstructParams& construct_params); <a name="l00071"></a>00071 <span class="keyword">explicit</span> <a class="code" href="classGnome_1_1Vfs_1_1VolumeMonitor.html">VolumeMonitor</a>(GnomeVFSVolumeMonitor* castitem); <a name="l00072"></a>00072 <a name="l00073"></a>00073 <span class="preprocessor">#endif </span><span class="comment">/* DOXYGEN_SHOULD_SKIP_THIS */</span> <a name="l00074"></a>00074 <a name="l00075"></a>00075 <span class="keyword">public</span>: <a name="l00076"></a>00076 <span class="keyword">virtual</span> <a class="code" href="classGnome_1_1Vfs_1_1VolumeMonitor.html#ee892a8a821386e038e4213a5ecf6bf7">~VolumeMonitor</a>(); <a name="l00077"></a>00077 <a name="l00078"></a>00078 <span class="preprocessor">#ifndef DOXYGEN_SHOULD_SKIP_THIS</span> <a name="l00079"></a>00079 <span class="preprocessor"></span> <span class="keyword">static</span> GType get_type() G_GNUC_CONST; <a name="l00080"></a>00080 <span class="keyword">static</span> GType get_base_type() G_GNUC_CONST; <a name="l00081"></a>00081 <span class="preprocessor">#endif</span> <a name="l00082"></a>00082 <span class="preprocessor"></span> <a name="l00084"></a><a class="code" href="classGnome_1_1Vfs_1_1VolumeMonitor.html#f192a114f0b20c970f7a1323d972c645">00084</a> GnomeVFSVolumeMonitor* <a class="code" href="classGnome_1_1Vfs_1_1VolumeMonitor.html#f192a114f0b20c970f7a1323d972c645" title="Provides access to the underlying C GObject.">gobj</a>() { <span class="keywordflow">return</span> <span class="keyword">reinterpret_cast<</span>GnomeVFSVolumeMonitor*<span class="keyword">></span>(gobject_); } <a name="l00085"></a>00085 <a name="l00087"></a><a class="code" href="classGnome_1_1Vfs_1_1VolumeMonitor.html#215b5682a739fb1d920b94f386b4430c">00087</a> <span class="keyword">const</span> GnomeVFSVolumeMonitor* <a class="code" href="classGnome_1_1Vfs_1_1VolumeMonitor.html#f192a114f0b20c970f7a1323d972c645" title="Provides access to the underlying C GObject.">gobj</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <span class="keyword">reinterpret_cast<</span>GnomeVFSVolumeMonitor*<span class="keyword">></span>(gobject_); } <a name="l00088"></a>00088 <a name="l00090"></a>00090 GnomeVFSVolumeMonitor* <a class="code" href="classGnome_1_1Vfs_1_1VolumeMonitor.html#fcc998c305b99b003bfdc3b26a3f5d03" title="Provides access to the underlying C instance. The caller is responsible for unrefing...">gobj_copy</a>(); <a name="l00091"></a>00091 <a name="l00092"></a>00092 <span class="keyword">private</span>: <a name="l00093"></a>00093 <a name="l00094"></a>00094 <a name="l00095"></a>00095 <span class="keyword">public</span>: <a name="l00096"></a>00096 <a name="l00097"></a>00097 <a name="l00098"></a>00098 <span class="keyword">static</span> Glib::RefPtr<VolumeMonitor> <a class="code" href="classGnome_1_1Vfs_1_1VolumeMonitor.html#42249660388122dc2bb79c35922e16e1">create</a>(); <a name="l00099"></a>00099 <a name="l00100"></a>00100 <a name="l00101"></a>00101 Glib::ListHandle< Glib::RefPtr<Volume> > <a class="code" href="classGnome_1_1Vfs_1_1VolumeMonitor.html#95f47e963d36c63e93ab0325f34d9023">get_mounted_volumes</a>(); <a name="l00102"></a>00102 <a name="l00103"></a>00103 Glib::ListHandle< Glib::RefPtr<const Volume> > <a class="code" href="classGnome_1_1Vfs_1_1VolumeMonitor.html#95f47e963d36c63e93ab0325f34d9023">get_mounted_volumes</a>() <span class="keyword">const</span>; <a name="l00104"></a>00104 <a name="l00105"></a>00105 <a name="l00106"></a>00106 Glib::ListHandle< Glib::RefPtr<Drive> > <a class="code" href="classGnome_1_1Vfs_1_1VolumeMonitor.html#87707836c5d640af44111938ce1761f6">get_connected_drives</a>(); <a name="l00107"></a>00107 <a name="l00108"></a>00108 Glib::ListHandle< Glib::RefPtr<const Drive> > <a class="code" href="classGnome_1_1Vfs_1_1VolumeMonitor.html#87707836c5d640af44111938ce1761f6">get_connected_drives</a>() <span class="keyword">const</span>; <a name="l00109"></a>00109 <a name="l00110"></a>00110 <a name="l00111"></a>00111 Glib::RefPtr<Volume> <a class="code" href="classGnome_1_1Vfs_1_1VolumeMonitor.html#65c11f1af2d93e44413a8082c207202e">get_volume</a>(<span class="keyword">const</span> Glib::ustring& path); <a name="l00112"></a>00112 <a name="l00113"></a>00113 Glib::RefPtr<const Volume> <a class="code" href="classGnome_1_1Vfs_1_1VolumeMonitor.html#65c11f1af2d93e44413a8082c207202e">get_volume</a>(<span class="keyword">const</span> Glib::ustring& path) <span class="keyword">const</span>; <a name="l00114"></a>00114 <a name="l00115"></a>00115 Glib::RefPtr<Volume> <a class="code" href="classGnome_1_1Vfs_1_1VolumeMonitor.html#65c11f1af2d93e44413a8082c207202e">get_volume</a>(gulong <span class="keywordtype">id</span>); <a name="l00116"></a>00116 <a name="l00117"></a>00117 Glib::RefPtr<const Volume> <a class="code" href="classGnome_1_1Vfs_1_1VolumeMonitor.html#65c11f1af2d93e44413a8082c207202e">get_volume</a>(gulong <span class="keywordtype">id</span>) <span class="keyword">const</span>; <a name="l00118"></a>00118 <a name="l00119"></a>00119 Glib::RefPtr<Drive> <a class="code" href="classGnome_1_1Vfs_1_1VolumeMonitor.html#6389146eb251ae0f62f59b0b7fd6560f">get_drive</a>(gulong <span class="keywordtype">id</span>); <a name="l00120"></a>00120 <a name="l00121"></a>00121 Glib::RefPtr<const Drive> <a class="code" href="classGnome_1_1Vfs_1_1VolumeMonitor.html#6389146eb251ae0f62f59b0b7fd6560f">get_drive</a>(gulong <span class="keywordtype">id</span>) <span class="keyword">const</span>; <a name="l00122"></a>00122 <a name="l00123"></a>00123 <a name="l00129"></a>00129 Glib::SignalProxy1< void,const Glib::RefPtr<Volume>& > <a class="code" href="classGnome_1_1Vfs_1_1VolumeMonitor.html#680cf0c116f3bb23acfe8d3c242eb0e6">signal_volume_mounted</a>(); <a name="l00130"></a>00130 <a name="l00131"></a>00131 <a name="l00137"></a>00137 Glib::SignalProxy1< void,const Glib::RefPtr<Volume>& > <a class="code" href="classGnome_1_1Vfs_1_1VolumeMonitor.html#15a04116db8a12ec8a450dcd858a5c9b">signal_volume_pre_unmount</a>(); <a name="l00138"></a>00138 <a name="l00139"></a>00139 <a name="l00145"></a>00145 Glib::SignalProxy1< void,const Glib::RefPtr<Volume>& > <a class="code" href="classGnome_1_1Vfs_1_1VolumeMonitor.html#7c8b583cc2b051d050a3880e3cb3d1c2">signal_volume_unmounted</a>(); <a name="l00146"></a>00146 <a name="l00147"></a>00147 <a name="l00153"></a>00153 Glib::SignalProxy1< void,const Glib::RefPtr<Drive>& > <a class="code" href="classGnome_1_1Vfs_1_1VolumeMonitor.html#1988239eac2d0ef835a9801daae22a18">signal_drive_connected</a>(); <a name="l00154"></a>00154 <a name="l00155"></a>00155 <a name="l00161"></a>00161 Glib::SignalProxy1< void,const Glib::RefPtr<Drive>& > <a class="code" href="classGnome_1_1Vfs_1_1VolumeMonitor.html#019c1657d511d4a14d603b221dfdd244">signal_drive_disconnected</a>(); <a name="l00162"></a>00162 <a name="l00163"></a>00163 <a name="l00164"></a>00164 <span class="keyword">public</span>: <a name="l00165"></a>00165 <a name="l00166"></a>00166 <span class="keyword">public</span>: <a name="l00167"></a>00167 <span class="comment">//C++ methods used to invoke GTK+ virtual functions:</span> <a name="l00168"></a>00168 <span class="preprocessor">#ifdef GLIBMM_VFUNCS_ENABLED</span> <a name="l00169"></a>00169 <span class="preprocessor"></span><span class="preprocessor">#endif //GLIBMM_VFUNCS_ENABLED</span> <a name="l00170"></a>00170 <span class="preprocessor"></span> <a name="l00171"></a>00171 <span class="keyword">protected</span>: <a name="l00172"></a>00172 <span class="comment">//GTK+ Virtual Functions (override these to change behaviour):</span> <a name="l00173"></a>00173 <span class="preprocessor">#ifdef GLIBMM_VFUNCS_ENABLED</span> <a name="l00174"></a>00174 <span class="preprocessor"></span><span class="preprocessor">#endif //GLIBMM_VFUNCS_ENABLED</span> <a name="l00175"></a>00175 <span class="preprocessor"></span> <a name="l00176"></a>00176 <span class="comment">//Default Signal Handlers::</span> <a name="l00177"></a>00177 <span class="preprocessor">#ifdef GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED</span> <a name="l00178"></a>00178 <span class="preprocessor"></span> <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classGnome_1_1Vfs_1_1VolumeMonitor.html#22e32869c8d7c32cb152af1bad64fd84">on_volume_mounted</a>(<span class="keyword">const</span> Glib::RefPtr<Volume>& volume); <a name="l00179"></a>00179 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classGnome_1_1Vfs_1_1VolumeMonitor.html#7bdb754b76254da7f2a2dd1d9f5d303b">on_volume_pre_unmount</a>(<span class="keyword">const</span> Glib::RefPtr<Volume>& volume); <a name="l00180"></a>00180 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classGnome_1_1Vfs_1_1VolumeMonitor.html#d96e36432e63f322ddb9737eb1a5cb5e">on_volume_unmounted</a>(<span class="keyword">const</span> Glib::RefPtr<Volume>& volume); <a name="l00181"></a>00181 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classGnome_1_1Vfs_1_1VolumeMonitor.html#c12821c7aa4a911a43709e2e300203e1">on_drive_connected</a>(<span class="keyword">const</span> Glib::RefPtr<Drive>& drive); <a name="l00182"></a>00182 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classGnome_1_1Vfs_1_1VolumeMonitor.html#928ab22761611549cf07ad1f96e8a781">on_drive_disconnected</a>(<span class="keyword">const</span> Glib::RefPtr<Drive>& drive); <a name="l00183"></a>00183 <span class="preprocessor">#endif //GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED</span> <a name="l00184"></a>00184 <span class="preprocessor"></span> <a name="l00185"></a>00185 <a name="l00186"></a>00186 }; <a name="l00187"></a>00187 <a name="l00188"></a>00188 <a name="l00189"></a>00189 } <span class="comment">// namespace Vfs</span> <a name="l00190"></a>00190 } <span class="comment">// namespace Gnome</span> <a name="l00191"></a>00191 <a name="l00192"></a>00192 <a name="l00193"></a>00193 <span class="keyword">namespace </span>Glib <a name="l00194"></a>00194 { <a name="l00203"></a>00203 Glib::RefPtr<Gnome::Vfs::VolumeMonitor> wrap(GnomeVFSVolumeMonitor* <span class="keywordtype">object</span>, <span class="keywordtype">bool</span> take_copy = <span class="keyword">false</span>); <a name="l00204"></a>00204 } <a name="l00205"></a>00205 <a name="l00206"></a>00206 <a name="l00207"></a>00207 <span class="preprocessor">#endif </span><span class="comment">/* _LIBGNOMEVFSMM_VOLUME_MONITOR_H */</span> <a name="l00208"></a>00208 </pre></div></div> <hr size="1"><address style="text-align: right;"><small>Generated on Mon Mar 16 18:27:50 2009 for libgnomevfsmm by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.6 </small></address> </body> </html>