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
30typedef struct _GnomeVFSVolume GnomeVFSVolume;
31typedef struct _GnomeVFSVolumeClass GnomeVFSVolumeClass;
32#endif /* DOXYGEN_SHOULD_SKIP_THIS */
33
34
35namespace Gnome
36{
37
38namespace Vfs
39{ class Volume_Class; } // namespace Vfs
40
41} // namespace Gnome
42namespace Gnome
43{
44
45namespace Vfs
46{
47
48class Drive;
49
50
51class Volume : public Glib::Object
52{
53
54#ifndef DOXYGEN_SHOULD_SKIP_THIS
55
56public:
57 typedef Volume CppObjectType;
58 typedef Volume_Class CppClassType;
59 typedef GnomeVFSVolume BaseObjectType;
60 typedef GnomeVFSVolumeClass BaseClassType;
61
62private: friend class Volume_Class;
63 static CppClassType volume_class_;
64
65private:
66 // noncopyable
67 Volume(const Volume&);
68 Volume& operator=(const Volume&);
69
70protected:
71 explicit Volume(const Glib::ConstructParams& construct_params);
72 explicit Volume(GnomeVFSVolume* castitem);
73
74#endif /* DOXYGEN_SHOULD_SKIP_THIS */
75
76public:
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
93private:
94
95
96public:
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
151public:
152
153public:
154 //C++ methods used to invoke GTK+ virtual functions:
155#ifdef GLIBMM_VFUNCS_ENABLED
156#endif //GLIBMM_VFUNCS_ENABLED
157
158protected:
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
175namespace Glib
176{
185 Glib::RefPtr<Gnome::Vfs::Volume> wrap(GnomeVFSVolume* object, bool take_copy = false);
186}
187
188
189#endif /* _LIBGNOMEVFSMM_VOLUME_H */
190
Definition: volume.h:52
Glib::ustring get_filesystem_type() const
bool is_mounted() const
bool is_read_only() const
GnomeVFSVolume * gobj()
Provides access to the underlying C GObject.
Definition: volume.h:85
DeviceType get_device_type() const
Glib::ustring get_icon() const
const GnomeVFSVolume * gobj() const
Provides access to the underlying C GObject.
Definition: volume.h:88
Glib::ustring get_device_path() const
static int compare(const Glib::RefPtr< const Volume > &a, const Glib::RefPtr< const Volume > &b)
VolumeType get_volume_type() const
gulong get_id() const
GnomeVFSVolume * gobj_copy()
Provides access to the underlying C instance. The caller is responsible for unrefing it....
Glib::RefPtr< Drive > get_drive() const
Glib::ustring get_activation_uri() const
void eject(const OpSlot &slot)
Glib::ustring get_hal_udi() const
void unmount(const OpSlot &slot)
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
Glib::ustring get_display_name() const
bool handles_trash() const
Glib::RefPtr< Gnome::Vfs::Volume > wrap(GnomeVFSVolume *object, bool take_copy=false)
A Glib::wrap() method for this object.
bool is_user_visible() const
static void connect_to_server(const Glib::ustring &uri, const Glib::ustring &display_name, const Glib::ustring &icon)
VolumeType
Definition: enums.h:732
DeviceType
Definition: enums.h:743
Definition: address.h:120
Definition: address.h:37