glibmm r577 - in trunk: . gio/src



Author: jaalburqu
Date: Mon Feb  4 04:56:01 2008
New Revision: 577
URL: http://svn.gnome.org/viewvc/glibmm?rev=577&view=rev

Log:
2008-02-03  Josà Alburquerque  <jaalburqu svn gnome org>

	* gio/src/unixinputstream.ccg:
	* gio/src/unixinputstream.hg:
	* gio/src/unixmount.ccg:
	* gio/src/unixmount.hg:
	* gio/src/unixoutputstream.ccg:
	* gio/src/unixoutputstream.hg: Added these, but not to
	Makefile_list_of_hg.am_fragment to avoid compile errors (need
	gio-unix-2.0.pc to compile correctly)
	* gio/src/vfs.hg: Moved forward decs to top (was between class doc and
	declaration)


Added:
   trunk/gio/src/unixinputstream.ccg
   trunk/gio/src/unixinputstream.hg
   trunk/gio/src/unixmount.ccg
   trunk/gio/src/unixmount.hg
   trunk/gio/src/unixoutputstream.ccg
   trunk/gio/src/unixoutputstream.hg
Modified:
   trunk/ChangeLog
   trunk/gio/src/vfs.hg

Added: trunk/gio/src/unixinputstream.ccg
==============================================================================
--- (empty file)
+++ trunk/gio/src/unixinputstream.ccg	Mon Feb  4 04:56:01 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 <gio/gio.h>

Added: trunk/gio/src/unixinputstream.hg
==============================================================================
--- (empty file)
+++ trunk/gio/src/unixinputstream.hg	Mon Feb  4 04:56:01 2008
@@ -0,0 +1,46 @@
+// -*- 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/inputstream.h>
+
+_DEFS(giomm,gio)
+_PINCLUDE(giomm/private/inputstream_p.h)
+
+namespace Gio
+{
+
+/**
+ * UnixInputStream implements InputStream for reading from a unix file
+ * descriptor, including asynchronous operations. The file descriptor much be
+ * selectable, so it doesn't work with opened files.
+ *
+ * @newin2p16
+ */
+class UnixInputStream : public Gio::InputStream
+{
+  _CLASS_GOBJECT(UnixInputStream, GUnixInputStream, G_UNIX_INPUT_STREAM, Gio::InputStream, GInputStream)
+
+  _WRAP_CTOR(UnixInputStream(int fd, bool close_fd_at_close), g_unix_input_stream_new)
+
+public:
+  _WRAP_CREATE(int fd, bool close_fd_at_close)
+};
+
+} // namespace Gio
+

Added: trunk/gio/src/unixmount.ccg
==============================================================================
--- (empty file)
+++ trunk/gio/src/unixmount.ccg	Mon Feb  4 04:56:01 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 <gio/gio.h>

Added: trunk/gio/src/unixmount.hg
==============================================================================
--- (empty file)
+++ trunk/gio/src/unixmount.hg	Mon Feb  4 04:56:01 2008
@@ -0,0 +1,43 @@
+// -*- 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>
+#include <giomm/mount.h>
+
+_DEFS(giomm,gio)
+_PINCLUDE(glibmm/private/object_p.h)
+
+namespace Gio
+{
+
+/**
+ * Routines for managing mounted UNIX mount points and paths.
+ *
+ * @newin2p16
+ */
+class UnixMount
+: public Glib::Object,
+  public Mount
+{
+  _CLASS_GOBJECT(UnixMount, GUnixMount, G_UNIX_MOUNT, Glib::Object, GObject)
+  _IMPLEMENTS_INTERFACE(Mount)
+};
+
+} // namespace Gio
+

Added: trunk/gio/src/unixoutputstream.ccg
==============================================================================
--- (empty file)
+++ trunk/gio/src/unixoutputstream.ccg	Mon Feb  4 04:56:01 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 <gio/gio.h>

Added: trunk/gio/src/unixoutputstream.hg
==============================================================================
--- (empty file)
+++ trunk/gio/src/unixoutputstream.hg	Mon Feb  4 04:56:01 2008
@@ -0,0 +1,46 @@
+// -*- 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/outputstream.h>
+
+_DEFS(giomm,gio)
+_PINCLUDE(giomm/private/outputstream_p.h)
+
+namespace Gio
+{
+
+/**
+ * UnixOutputStream implements OutputStream for writing to a a unix file
+ * descriptor, including asynchronous operations. The file descriptor much be
+ * selectable, so it doesn't work with opened files.
+ *
+ * @newin2p16
+ */
+class UnixOutputStream : public Gio::OutputStream
+{
+  _CLASS_GOBJECT(UnixOutputStream, GUnixOutputStream, G_UNIX_OUTPUT_STREAM, Gio::OutputStream, GOutputStream)
+
+  _WRAP_CTOR(UnixOutputStream(int fd, bool close_fd_at_close), g_unix_output_stream_new)
+
+public:
+  _WRAP_CREATE(int fd, bool close_fd_at_close)
+};
+
+} // namespace Gio
+

Modified: trunk/gio/src/vfs.hg
==============================================================================
--- trunk/gio/src/vfs.hg	(original)
+++ trunk/gio/src/vfs.hg	Mon Feb  4 04:56:01 2008
@@ -25,13 +25,14 @@
 namespace Gio
 {
 
+// Forward declarations
+class File;
+
 /**
  * Entry point for using GIO functionality.
  *
  * @newin2p16
  */
-class File;
-
 class Vfs : public Glib::Object
 {
   _CLASS_GOBJECT(Vfs, GVfs, G_VFS, Glib::Object, GObject)



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]