libgnomevfsmm  2.26.0
volume.h
Go to the documentation of this file.
1 // -*- c++ -*-
2 // Generated by gtkmmproc -- DO NOT MODIFY!
3 #ifndef _LIBGNOMEVFSMM_VOLUME_H
4 #define _LIBGNOMEVFSMM_VOLUME_H
5 
6 
7 #include <glibmm.h>
8 
9 /* Copyright 2003 gnome-vfsmm Development Team
10  *
11  * This library is free software; you can redistribute it and/or
12  * modify it under the terms of the GNU Lesser General Public
13  * License as published by the Free Software Foundation; either
14  * version 2.1 of the License, or (at your option) any later version.
15  *
16  * This library is distributed in the hope that it will be useful,
17  * but WITHOUT ANY WARRANTY; without even the implied warranty of
18  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
19  * Lesser General Public License for more details.
20  *
21  * You should have received a copy of the GNU Lesser General Public
22  * License along with this library; if not, write to the Free
23  * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
24  */
25 
26 
27 #include <libgnomevfsmm/enums.h>
28 
29 #ifndef DOXYGEN_SHOULD_SKIP_THIS
30 typedef struct _GnomeVFSVolume GnomeVFSVolume;
31 typedef struct _GnomeVFSVolumeClass GnomeVFSVolumeClass;
32 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
33 
34 
35 namespace Gnome
36 {
37 
38 namespace Vfs
39 { class Volume_Class; } // namespace Vfs
40 
41 } // namespace Gnome
42 namespace Gnome
43 {
44 
45 namespace Vfs
46 {
47 
48 class Drive;
49 
50 
51 class Volume : public Glib::Object
52 {
53 
54 #ifndef DOXYGEN_SHOULD_SKIP_THIS
55 
56 public:
57  typedef Volume CppObjectType;
58  typedef Volume_Class CppClassType;
59  typedef GnomeVFSVolume BaseObjectType;
60  typedef GnomeVFSVolumeClass BaseClassType;
61 
62 private: friend class Volume_Class;
63  static CppClassType volume_class_;
64 
65 private:
66  // noncopyable
67  Volume(const Volume&);
68  Volume& operator=(const Volume&);
69 
70 protected:
71  explicit Volume(const Glib::ConstructParams& construct_params);
72  explicit Volume(GnomeVFSVolume* castitem);
73 
74 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
75 
76 public:
77  virtual ~Volume();
78 
79 #ifndef DOXYGEN_SHOULD_SKIP_THIS
80  static GType get_type() G_GNUC_CONST;
81  static GType get_base_type() G_GNUC_CONST;
82 #endif
83 
85  GnomeVFSVolume* gobj() { return reinterpret_cast<GnomeVFSVolume*>(gobject_); }
86 
88  const GnomeVFSVolume* gobj() const { return reinterpret_cast<GnomeVFSVolume*>(gobject_); }
89 
91  GnomeVFSVolume* gobj_copy();
92 
93 private:
94 
95 
96 public:
97 
101  typedef sigc::slot<void, bool, Glib::ustring, Glib::ustring> OpSlot;
102 
103 
104  gulong get_id() const;
105 
107 
109 
110  Glib::RefPtr<Drive> get_drive() const;
111 
112  Glib::ustring get_device_path() const;
113 
114  Glib::ustring get_activation_uri() const;
115 
116  Glib::ustring get_filesystem_type() const;
117 
118  Glib::ustring get_display_name() const;
119 
120  Glib::ustring get_icon() const;
121 
122  Glib::ustring get_hal_udi() const;
123 
124  bool is_user_visible() const;
125 
126  bool is_read_only() const;
127 
128  bool is_mounted() const;
129 
130  bool handles_trash() const;
131 
132 
133  static int compare(const Glib::RefPtr<const Volume>& a, const Glib::RefPtr<const Volume>& b);
134 
135 
136  // These are not implemented in gnome-vfs on Win32
137 #ifndef G_OS_WIN32
138  void unmount(const OpSlot& slot);
139  void eject(const OpSlot& slot);
140 
141  // We can't use the ifdef functionality from WRAP_METHOD because we need
142  // ifndef.
143 
144 
145  static void connect_to_server(const Glib::ustring& uri, const Glib::ustring& display_name, const Glib::ustring& icon);
146 
147 
148 #endif // G_OS_WIN32
149 
150 
151 public:
152 
153 public:
154  //C++ methods used to invoke GTK+ virtual functions:
155 #ifdef GLIBMM_VFUNCS_ENABLED
156 #endif //GLIBMM_VFUNCS_ENABLED
157 
158 protected:
159  //GTK+ Virtual Functions (override these to change behaviour):
160 #ifdef GLIBMM_VFUNCS_ENABLED
161 #endif //GLIBMM_VFUNCS_ENABLED
162 
163  //Default Signal Handlers::
164 #ifdef GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
165 #endif //GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
166 
167 
168 };
169 
170 
171 } // namespace Vfs
172 } // namespace Gnome
173 
174 
175 namespace Glib
176 {
185  Glib::RefPtr<Gnome::Vfs::Volume> wrap(GnomeVFSVolume* object, bool take_copy = false);
186 }
187 
188 
189 #endif /* _LIBGNOMEVFSMM_VOLUME_H */
190 
Gnome::Vfs::Volume::get_volume_type
VolumeType get_volume_type() const
Gnome::Vfs::Volume
Definition: volume.h:52
Gnome
Definition: address.h:37
Gnome::Vfs::Volume::get_activation_uri
Glib::ustring get_activation_uri() const
Gnome::Vfs::Volume::eject
void eject(const OpSlot &slot)
Gnome::Vfs::VolumeType
VolumeType
Definition: enums.h:732
Gnome::Vfs::Volume::get_icon
Glib::ustring get_icon() const
Gnome::Vfs::Volume::get_hal_udi
Glib::ustring get_hal_udi() const
Gnome::Vfs::Volume::get_device_path
Glib::ustring get_device_path() const
Gnome::Vfs::Volume::get_id
gulong get_id() const
Gnome::Vfs::Volume::wrap
Glib::RefPtr< Gnome::Vfs::Volume > wrap(GnomeVFSVolume *object, bool take_copy=false)
A Glib::wrap() method for this object.
Gnome::Vfs::Volume::is_read_only
bool is_read_only() const
Gnome::Vfs::Volume::get_drive
Glib::RefPtr< Drive > get_drive() const
Gnome::Vfs::Volume::get_filesystem_type
Glib::ustring get_filesystem_type() const
Gnome::Vfs::Volume::OpSlot
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
Gnome::Vfs::Volume::get_device_type
DeviceType get_device_type() const
Gnome::Vfs::Volume::get_display_name
Glib::ustring get_display_name() const
Gnome::Vfs::Volume::gobj_copy
GnomeVFSVolume * gobj_copy()
Provides access to the underlying C instance. The caller is responsible for unrefing it....
Gnome::Vfs::Volume::handles_trash
bool handles_trash() const
Gnome::Vfs::Volume::is_user_visible
bool is_user_visible() const
Gnome::Vfs::Volume::gobj
GnomeVFSVolume * gobj()
Provides access to the underlying C GObject.
Definition: volume.h:85
Gnome::Vfs::Volume::~Volume
virtual ~Volume()
Gnome::Vfs::Volume::unmount
void unmount(const OpSlot &slot)
enums.h
Gnome::Vfs::Volume::is_mounted
bool is_mounted() const
Gnome::Vfs::DeviceType
DeviceType
Definition: enums.h:743
Gnome::Vfs::Volume::compare
static int compare(const Glib::RefPtr< const Volume > &a, const Glib::RefPtr< const Volume > &b)
Gnome::Vfs::Volume::connect_to_server
static void connect_to_server(const Glib::ustring &uri, const Glib::ustring &display_name, const Glib::ustring &icon)
Glib
Definition: address.h:120
Gnome::Vfs::Volume::gobj
const GnomeVFSVolume * gobj() const
Provides access to the underlying C GObject.
Definition: volume.h:88