glibmm r576 - in trunk: . gio/src tools/m4
- From: jaalburqu svn gnome org
- To: svn-commits-list gnome org
- Subject: glibmm r576 - in trunk: . gio/src tools/m4
- Date: Mon, 4 Feb 2008 02:42:28 +0000 (GMT)
Author: jaalburqu
Date: Mon Feb 4 02:42:28 2008
New Revision: 576
URL: http://svn.gnome.org/viewvc/glibmm?rev=576&view=rev
Log:
2008-02-03 Josà Alburquerque <jaalburqu svn gnome org>
* gio/src/Makefile_list_of_hg.am_fragment:
* gio/src/vfs.ccg:
* gio/src/vfs.hg:
* tools/m4/convert_gio.m4: Added Vfs
Added:
trunk/gio/src/vfs.ccg
trunk/gio/src/vfs.hg
Modified:
trunk/ChangeLog
trunk/gio/src/Makefile_list_of_hg.am_fragment
trunk/tools/m4/convert_gio.m4
Modified: trunk/gio/src/Makefile_list_of_hg.am_fragment
==============================================================================
--- trunk/gio/src/Makefile_list_of_hg.am_fragment (original)
+++ trunk/gio/src/Makefile_list_of_hg.am_fragment Mon Feb 4 02:42:28 2008
@@ -11,7 +11,7 @@
icon.hg inputstream.hg loadableicon.hg mount.hg mountoperation.hg outputstream.hg \
seekable.hg simpleasyncresult.hg volume.hg volumemonitor.hg bufferedinputstream.hg \
bufferedoutputstream.hg datainputstream.hg dataoutputstream.hg enums.hg \
- memoryinputstream.hg themedicon.hg
+ memoryinputstream.hg themedicon.hg vfs.hg
include $(top_srcdir)/build_shared/Makefile_build_gensrc.am_fragment
Added: trunk/gio/src/vfs.ccg
==============================================================================
--- (empty file)
+++ trunk/gio/src/vfs.ccg Mon Feb 4 02:42:28 2008
@@ -0,0 +1,20 @@
+// -*- 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/file.h>
Added: trunk/gio/src/vfs.hg
==============================================================================
--- (empty file)
+++ trunk/gio/src/vfs.hg Mon Feb 4 02:42:28 2008
@@ -0,0 +1,49 @@
+// -*- 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 <glibmm/object.h>
+
+_DEFS(giomm,gio)
+_PINCLUDE(glibmm/private/object_p.h)
+
+namespace Gio
+{
+
+/**
+ * Entry point for using GIO functionality.
+ *
+ * @newin2p16
+ */
+class File;
+
+class Vfs : public Glib::Object
+{
+ _CLASS_GOBJECT(Vfs, GVfs, G_VFS, Glib::Object, GObject)
+
+public:
+ _WRAP_METHOD(static Glib::RefPtr<Vfs> get_default(), g_vfs_get_default)
+ _WRAP_METHOD(static Glib::RefPtr<Vfs> get_local(), g_vfs_get_local)
+ _WRAP_METHOD(Glib::RefPtr<File> file_for_path(const std::string& path), g_vfs_get_file_for_path)
+ _WRAP_METHOD(Glib::RefPtr<File> file_for_uri(const std::string& uri), g_vfs_get_file_for_uri)
+ _WRAP_METHOD(Glib::RefPtr<File> parse_name(const std::string& parse_name), g_vfs_parse_name)
+ _WRAP_METHOD(bool is_active(), g_vfs_is_active)
+};
+
+} // namespace Gio
+
Modified: trunk/tools/m4/convert_gio.m4
==============================================================================
--- trunk/tools/m4/convert_gio.m4 (original)
+++ trunk/tools/m4/convert_gio.m4 Mon Feb 4 02:42:28 2008
@@ -107,3 +107,6 @@
_CONVERSION(`const Glib::RefPtr<Mount>&',`GMount*',__CONVERT_CONST_REFPTR_TO_P)
_CONVERSION(`const Glib::RefPtr<Volume>&',`GVolume*',__CONVERT_CONST_REFPTR_TO_P)
+#Vfs
+_CONVERSION(`GVfs*', `Glib::RefPtr<Vfs>', `Glib::wrap($3)')
+
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]