3 #ifndef _LIBGNOMEVFSMM_VOLUME_H
4 #define _LIBGNOMEVFSMM_VOLUME_H
29 #ifndef DOXYGEN_SHOULD_SKIP_THIS
30 typedef struct _GnomeVFSVolume GnomeVFSVolume;
31 typedef struct _GnomeVFSVolumeClass GnomeVFSVolumeClass;
39 {
class Volume_Class; }
54 #ifndef DOXYGEN_SHOULD_SKIP_THIS
57 typedef Volume CppObjectType;
58 typedef Volume_Class CppClassType;
59 typedef GnomeVFSVolume BaseObjectType;
60 typedef GnomeVFSVolumeClass BaseClassType;
62 private:
friend class Volume_Class;
63 static CppClassType volume_class_;
71 explicit Volume(
const Glib::ConstructParams& construct_params);
72 explicit Volume(GnomeVFSVolume* 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 GnomeVFSVolume*
gobj() {
return reinterpret_cast<GnomeVFSVolume*
>(gobject_); }
88 const GnomeVFSVolume*
gobj()
const {
return reinterpret_cast<GnomeVFSVolume*
>(gobject_); }
101 typedef sigc::slot<void, bool, Glib::ustring, Glib::ustring>
OpSlot;
133 static int compare(
const Glib::RefPtr<const Volume>& a,
const Glib::RefPtr<const Volume>& b);
145 static void connect_to_server(
const Glib::ustring& uri,
const Glib::ustring& display_name,
const Glib::ustring& icon);
155 #ifdef GLIBMM_VFUNCS_ENABLED
156 #endif //GLIBMM_VFUNCS_ENABLED
160 #ifdef GLIBMM_VFUNCS_ENABLED
161 #endif //GLIBMM_VFUNCS_ENABLED
164 #ifdef GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
165 #endif //GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
185 Glib::RefPtr<Gnome::Vfs::Volume> wrap(GnomeVFSVolume*
object,
bool take_copy =
false);
bool is_user_visible() const
Glib::ustring get_filesystem_type() const
void unmount(const OpSlot &slot)
Glib::ustring get_icon() const
static void connect_to_server(const Glib::ustring &uri, const Glib::ustring &display_name, const Glib::ustring &icon)
Glib::ustring get_activation_uri() const
bool is_read_only() const
GnomeVFSVolume * gobj()
Provides access to the underlying C GObject.
Definition: volume.h:85
VolumeType get_volume_type() const
static int compare(const Glib::RefPtr< const Volume > &a, const Glib::RefPtr< const Volume > &b)
sigc::slot< void, bool, Glib::ustring, Glib::ustring > OpSlot
For instance, void on_operation(bool succeeded, const Glib::ustring& error, const Glib::ustring& deta...
Definition: volume.h:101
void eject(const OpSlot &slot)
const GnomeVFSVolume * gobj() const
Provides access to the underlying C GObject.
Definition: volume.h:88
bool handles_trash() const
Glib::ustring get_device_path() const
DeviceType get_device_type() const
Glib::ustring get_hal_udi() const
GnomeVFSVolume * gobj_copy()
Provides access to the underlying C instance. The caller is responsible for unrefing it...
Glib::ustring get_display_name() const
Glib::RefPtr< Drive > get_drive() const