summaryrefslogtreecommitdiff
path: root/gio/src/volumemonitor.hg
diff options
context:
space:
mode:
authorMurray Cumming <murrayc@murrayc.com>2008-01-16 21:10:11 +0000
committerMurray Cumming <murrayc@src.gnome.org>2008-01-16 21:10:11 +0000
commit9ea9f76dd6c704f7211aca51b15608c764ba50a2 (patch)
tree96851c2d01b1f43f7116d587050c2bfdcfb5a479 /gio/src/volumemonitor.hg
parentbceb6067b444a23c86ab7d397a44a585037b1f0b (diff)
downloadglibmm-9ea9f76dd6c704f7211aca51b15608c764ba50a2.tar.gz
Added Mount and VolumeMonitor. Regenerated.
2008-01-16 Murray Cumming <murrayc@murrayc.com> * tools/extra_defs_gen/generate_defs_gio.cc: Added Mount and VolumeMonitor. * gio/src/gio_signals.defs: Regenerated. * gio/src/Makefile_list_of_hg.am_fragment: * gio/src/mount.ccg: * gio/src/mount.hg: Added Mount * gio/src/volumemonitor.hg: * gio/src/volumemonitor.ccg: Added VolumeMonitor. * tools/m4/convert_gio.m4: Added necessary conversions. svn path=/trunk/; revision=516
Diffstat (limited to 'gio/src/volumemonitor.hg')
-rw-r--r--gio/src/volumemonitor.hg58
1 files changed, 58 insertions, 0 deletions
diff --git a/gio/src/volumemonitor.hg b/gio/src/volumemonitor.hg
new file mode 100644
index 00000000..dcab06e0
--- /dev/null
+++ b/gio/src/volumemonitor.hg
@@ -0,0 +1,58 @@
+// -*- Mode: C++; indent-tabs-mode: nil; c-basic-offset: 2 -*-
+
+/* Copyright (C) 2007 The gtkmm Development Team
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Library General Public
+ * License as published by the Free Software Foundation; either
+ * version 2 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Library General Public License for more details.
+ *
+ * You should have received a copy of the GNU Library General Public
+ * License along with this library; if not, write to the Free
+ * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+ */
+
+#include <giomm/volume.h>
+#include <giomm/mount.h>
+
+_DEFS(giomm,gio)
+_PINCLUDE(glibmm/private/object_p.h)
+
+namespace Gio
+{
+
+_WRAP_ENUM(VolumeMonitorEvent, GVolumeMonitorEvent, NO_GTYPE)
+
+/** Monitors a file or directory for changes.
+ * TODO: Documentation: See http://bugzilla.gnome.org/show_bug.cgi?id=509994.
+ * @newin2p16
+ */
+class VolumeMonitor : public Glib::Object
+{
+ _CLASS_GOBJECT(VolumeMonitor, GVolumeMonitor, G_VOLUME_MONITOR, Glib::Object, GObject)
+protected:
+
+public:
+
+ _WRAP_METHOD(static Glib::RefPtr<VolumeMonitor> get(), g_volume_monitor_get)
+//TODO: GList * g_volume_monitor_get_connected_drives (GVolumeMonitor *volume_monitor);
+//TODO: GList * g_volume_monitor_get_volumes (GVolumeMonitor *volume_monitor);
+//TODO: GList * g_volume_monitor_get_mounts (GVolumeMonitor *volume_monitor);
+ _WRAP_METHOD(Glib::RefPtr<Volume> get_volume_for_uuid(const std::string& uuid), g_volume_monitor_get_volume_for_uuid, refreturn)
+ _WRAP_METHOD(Glib::RefPtr<Mount> get_mount_for_uuid(const std::string& uuid), g_volume_monitor_get_mount_for_uuid, refreturn)
+
+ _WRAP_METHOD(static Glib::RefPtr<Volume> adopt_orphan_mount(const Glib::RefPtr<Mount>& mount), g_volume_monitor_adopt_orphan_mount)
+
+
+ //TODO: vfuncs and signals.
+
+ //There are no properties.
+};
+
+} // namespace Gio
+