1
/* Copyright (C) 2012 The giomm Development Team
3
* This library is free software; you can redistribute it and/or
4
* modify it under the terms of the GNU Lesser General Public
5
* License as published by the Free Software Foundation; either
6
* version 2.1 of the License, or (at your option) any later version.
8
* This library is distributed in the hope that it will be useful,
9
* but WITHOUT ANY WARRANTY; without even the implied warranty of
10
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11
* Lesser General Public License for more details.
13
* You should have received a copy of the GNU Lesser General Public
14
* License along with this library; if not, write to the Free
15
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
18
#include <glibmm/object.h>
19
#include <giomm/converter.h>
20
#include <giomm/zlibcompressor.h>
23
_PINCLUDE(glibmm/private/object_p.h)
30
/** ZlibDecompressor - Zlib decompressor.
31
* ZlibDecompressor is an implementation of Converter that decompresses data
32
* compressed with zlib.
35
class ZlibDecompressor : public Glib::Object, public Converter
37
_CLASS_GOBJECT(ZlibDecompressor, GZlibDecompressor, G_ZLIB_DECOMPRESSOR, Glib::Object, GObject)
38
_IMPLEMENTS_INTERFACE(Converter)
41
_WRAP_CTOR(ZlibDecompressor(ZlibCompressorFormat format), g_zlib_decompressor_new)
44
_WRAP_METHOD_DOCS_ONLY(g_zlib_decompressor_new)
45
_WRAP_CREATE(ZlibCompressorFormat format)
47
_WRAP_METHOD(Glib::RefPtr<FileInfo> get_file_info(), g_zlib_decompressor_get_file_info)
48
_WRAP_METHOD(Glib::RefPtr<const FileInfo> get_file_info() const, g_zlib_decompressor_get_file_info, constversion)
50
_WRAP_PROPERTY("file-info", Glib::RefPtr<FileInfo>)
51
_WRAP_PROPERTY("format", ZlibCompressorFormat)