3 #ifndef _LIBGNOMEVFSMM_DRIVE_H
4 #define _LIBGNOMEVFSMM_DRIVE_H
29 #ifndef DOXYGEN_SHOULD_SKIP_THIS
30 typedef struct _GnomeVFSDrive GnomeVFSDrive;
31 typedef struct _GnomeVFSDriveClass GnomeVFSDriveClass;
39 {
class Drive_Class; }
51 class Drive :
public Glib::Object
54 #ifndef DOXYGEN_SHOULD_SKIP_THIS
57 typedef Drive CppObjectType;
58 typedef Drive_Class CppClassType;
59 typedef GnomeVFSDrive BaseObjectType;
60 typedef GnomeVFSDriveClass BaseClassType;
62 private:
friend class Drive_Class;
63 static CppClassType drive_class_;
71 explicit Drive(
const Glib::ConstructParams& construct_params);
72 explicit Drive(GnomeVFSDrive* castitem);
79 #ifndef DOXYGEN_SHOULD_SKIP_THIS
80 static GType get_type() G_GNUC_CONST;
81 static GType get_base_type() G_GNUC_CONST;
85 GnomeVFSDrive*
gobj() {
return reinterpret_cast<GnomeVFSDrive*
>(gobject_); }
88 const GnomeVFSDrive*
gobj()
const {
return reinterpret_cast<GnomeVFSDrive*
>(gobject_); }
101 typedef sigc::slot<void, bool, const Glib::ustring&, const Glib::ustring&>
OpSlot;
142 static int compare(
const Glib::RefPtr<const Drive>& a,
const Glib::RefPtr<const Drive>& b);
159 Glib::SignalProxy1< void,const Glib::RefPtr<Volume>& >
signal_mounted();
182 #ifdef GLIBMM_VFUNCS_ENABLED
183 #endif //GLIBMM_VFUNCS_ENABLED
187 #ifdef GLIBMM_VFUNCS_ENABLED
188 #endif //GLIBMM_VFUNCS_ENABLED
191 #ifdef GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
192 virtual void on_mounted(
const Glib::RefPtr<Volume>& volume);
194 virtual void on_unmounted(
const Glib::RefPtr<Volume>& volume);
195 #endif //GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
215 Glib::RefPtr<Gnome::Vfs::Drive> wrap(GnomeVFSDrive*
object,
bool take_copy =
false);
Glib::ListHandle< Glib::RefPtr< Volume > > get_mounted_volumes()
virtual void on_mounted(const Glib::RefPtr< Volume > &volume)
static int compare(const Glib::RefPtr< const Drive > &a, const Glib::RefPtr< const Drive > &b)
virtual void on_pre_unmount(const Glib::RefPtr< Volume > &volume)
Glib::SignalProxy1< void, const Glib::RefPtr< Volume > & > signal_unmounted()
sigc::slot< void, bool, const Glib::ustring &, const Glib::ustring & > OpSlot
For instance, void on_operation(bool succeeded, const Glib::ustring& error, const Glib::ustring& deta...
Definition: drive.h:101
void unmount(const OpSlot &slot)
Glib::ustring get_device_path() const
const GnomeVFSDrive * gobj() const
Provides access to the underlying C GObject.
Definition: drive.h:88
bool is_user_visible() const
Glib::SignalProxy1< void, const Glib::RefPtr< Volume > & > signal_pre_unmount()
void eject(const OpSlot &slot)
Glib::RefPtr< Volume > get_mounted_volume()
Glib::ustring get_hal_udi() const
Glib::ustring get_icon() const
DeviceType get_device_type() const
Glib::ustring get_activation_uri() const
Glib::SignalProxy1< void, const Glib::RefPtr< Volume > & > signal_mounted()
virtual void on_unmounted(const Glib::RefPtr< Volume > &volume)
GnomeVFSDrive * gobj_copy()
Provides access to the underlying C instance. The caller is responsible for unrefing it...
Glib::ustring get_display_name() const
GnomeVFSDrive * gobj()
Provides access to the underlying C GObject.
Definition: drive.h:85
void mount(const OpSlot &slot)
bool is_connected() const