~ubuntu-branches/ubuntu/trusty/glibmm2.4/trusty

« back to all changes in this revision

Viewing changes to gio/src/zlibdecompressor.hg

  • Committer: Package Import Robot
  • Author(s): Robert Ancell
  • Date: 2012-09-12 09:46:50 UTC
  • mfrom: (1.2.76)
  • Revision ID: package-import@ubuntu.com-20120912094650-36b1cyv60x66yv8m
Tags: 2.33.12-0ubuntu1
* New upstream bugfix release
* debian/control:
  - Bump build-depends on libglib2.0-dev

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* Copyright (C) 2012 The giomm Development Team
 
2
 *
 
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.
 
7
 *
 
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.
 
12
 *
 
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.
 
16
 */
 
17
 
 
18
#include <glibmm/object.h>
 
19
#include <giomm/converter.h>
 
20
#include <giomm/zlibcompressor.h>
 
21
 
 
22
_DEFS(giomm,gio)
 
23
_PINCLUDE(glibmm/private/object_p.h)
 
24
 
 
25
namespace Gio
 
26
{
 
27
 
 
28
class FileInfo;
 
29
 
 
30
/** ZlibDecompressor - Zlib decompressor.
 
31
 * ZlibDecompressor is an implementation of Converter that decompresses data
 
32
 * compressed with zlib.
 
33
 * @newin{2,34}
 
34
 */
 
35
class ZlibDecompressor : public Glib::Object, public Converter
 
36
{
 
37
  _CLASS_GOBJECT(ZlibDecompressor, GZlibDecompressor, G_ZLIB_DECOMPRESSOR, Glib::Object, GObject)
 
38
  _IMPLEMENTS_INTERFACE(Converter)
 
39
 
 
40
protected:
 
41
  _WRAP_CTOR(ZlibDecompressor(ZlibCompressorFormat format), g_zlib_decompressor_new)
 
42
 
 
43
public:
 
44
  _WRAP_METHOD_DOCS_ONLY(g_zlib_decompressor_new)
 
45
  _WRAP_CREATE(ZlibCompressorFormat format)
 
46
 
 
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)
 
49
 
 
50
  _WRAP_PROPERTY("file-info", Glib::RefPtr<FileInfo>)
 
51
  _WRAP_PROPERTY("format", ZlibCompressorFormat)
 
52
};
 
53
 
 
54
} // namespace Gio