summaryrefslogtreecommitdiff
path: root/gio/src/charsetconverter.ccg
diff options
context:
space:
mode:
authorJosé Alburquerque <jaalburqu@svn.gnome.org>2012-09-04 17:12:41 -0400
committerJosé Alburquerque <jaalburqu@svn.gnome.org>2012-09-04 17:18:56 -0400
commitd62e14c530c0eaeab7436ad947b5bfcc5ed1c885 (patch)
tree44165cbe624aea12f42242f32447b13b2c56123b /gio/src/charsetconverter.ccg
parentd18411d611bf9b1f0b33cbefe361f54e97909949 (diff)
downloadglibmm-d62e14c530c0eaeab7436ad947b5bfcc5ed1c885.tar.gz
giomm: Add the ZlibDecompressor and the CharsetConverter classes.
* gio/src/charsetconverter.{ccg,hg}: * gio/src/zlibdecompressor.{ccg,hg}: * gio/src/filelist.am: Add the new sources wrapping the C functions and properties in the corresponding classes. Include the sources in the build. * gio/src/gio_signals.defs: * tools/extra_defs_gen/generate_defs_gio.cc: Add the GTypes for the C types in the property and signal generation utility and regenerate the defs file so the properties of the new classes can be wrapped. * gio/src/zlibcompressor.hg: Make the constructor protected and not private (typo).
Diffstat (limited to 'gio/src/charsetconverter.ccg')
-rw-r--r--gio/src/charsetconverter.ccg30
1 files changed, 30 insertions, 0 deletions
diff --git a/gio/src/charsetconverter.ccg b/gio/src/charsetconverter.ccg
new file mode 100644
index 00000000..967d9c3e
--- /dev/null
+++ b/gio/src/charsetconverter.ccg
@@ -0,0 +1,30 @@
+/* Copyright (C) 2012 The giomm Development Team
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 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
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser 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>
+
+namespace Gio
+{
+
+CharsetConverter::CharsetConverter(const Glib::ustring& to_charset,
+ const Glib::ustring& from_charset)
+: _CONSTRUCT("to-charset", to_charset.c_str(), "from-charset",
+ from_charset.c_str())
+{
+}
+
+} // namespace Gio