Classified ads
ungzip.h
Go to the documentation of this file.
1 /* -*-C++-*- -*-coding: utf-8-unix;-*-
2  Classified Ads is Copyright (c) Antti Järvinen 2013-2017.
3 
4  This file is part of Classified Ads.
5 
6  Classified Ads is free software; you can redistribute it and/or
7  modify it under the terms of the GNU Lesser General Public
8  License as published by the Free Software Foundation; either
9  version 2.1 of the License, or (at your option) any later version.
10 
11  Classified Ads is distributed in the hope that it will be useful,
12  but WITHOUT ANY WARRANTY; without even the implied warranty of
13  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14  Lesser General Public License for more details.
15 
16  You should have received a copy of the GNU Lesser General Public
17  License along with Classified Ads; if not, write to the Free Software
18  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
19 */
20 
21 #ifndef CLASSIFIED_UNGZIP_H
22 #define CLASSIFIED_UNGZIP_H
23 
24 #include <QObject>
25 
32 class UnGZip : public QObject {
33  Q_OBJECT
34 
35 public:
36  UnGZip() ;
37  ~UnGZip() ;
38 
47  static QByteArray unGZip(const QByteArray& aCompressedContent,
48  bool* aResult ) ;
49 #ifndef WIN32
50 
58  static QByteArray unBZip2(const QByteArray& aCompressedContent,
59  bool* aResult ) ;
60 #endif
61 } ;
62 
63 #endif
static QByteArray unGZip(const QByteArray &aCompressedContent, bool *aResult)
Class for un-zipping gzip&#39;ed content. Supports also bzip2.
Definition: ungzip.h:32
static QByteArray unBZip2(const QByteArray &aCompressedContent, bool *aResult)