~jackweirdy/vidalia/680192

« back to all changes in this revision

Viewing changes to src/common/ZlibByteArray.h

  • Committer: Package Import Robot
  • Author(s): Ulises Vitulli, intrigeri, Ulises Vitulli
  • Date: 2012-06-22 07:18:44 UTC
  • mfrom: (1.4.8) (8.2.13 sid)
  • Revision ID: package-import@ubuntu.com-20120622071844-s278v0p646pqt949
Tags: 0.2.19-1
[ intrigeri ]
* Imported Upstream version 0.2.19
* Install AppArmor profile.
* Enable hardening flags.

[ Ulises Vitulli ]
* Added runtime dependency on apparmor.
* Updated d/NEWS and d/README.Debian to reflect new features.
* Move dirs from d/rules to d/vidalia.dir.
* Updated Standard-version to 3.9.3 (no changes needed).

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
**  LICENSE file, found in the top level directory of this distribution. If you
4
4
**  did not receive the LICENSE file with this file, you may obtain it from the
5
5
**  Vidalia source package distributed by the Vidalia Project at
6
 
**  http://www.torproject.org/projects/vidalia.html. No part of Vidalia, 
7
 
**  including this file, may be copied, modified, propagated, or distributed 
 
6
**  http://www.torproject.org/projects/vidalia.html. No part of Vidalia,
 
7
**  including this file, may be copied, modified, propagated, or distributed
8
8
**  except according to the terms described in the LICENSE file.
9
9
**
10
10
**                     *       *       *
11
 
** 
 
11
**
12
12
**  Zlib support in this class is derived from Tor's torgzip.[ch].
13
13
**  Tor is distributed under this license:
14
 
** 
 
14
**
15
15
**    Copyright (c) 2001-2004, Roger Dingledine
16
16
**    Copyright (c) 2004-2006, Roger Dingledine, Nick Mathewson
17
17
**
26
26
**       copyright notice, this list of conditions and the following disclaimer
27
27
**       in the documentation and/or other materials provided with the
28
28
**       distribution.
29
 
** 
 
29
**
30
30
**     * Neither the names of the copyright owners nor the names of its
31
31
**       contributors may be used to endorse or promote products derived from
32
32
**       this software without specific prior written permission.
65
65
    Gzip,   /**< Gzip compression method. */
66
66
    Zlib    /**< Zlib compression method. */
67
67
  };
68
 
  
 
68
 
69
69
  /** Constructor. */
70
 
  ZlibByteArray(QByteArray data); 
71
 
  
 
70
  ZlibByteArray(QByteArray data);
 
71
 
72
72
  /** Compresses the current contents of this object using <b>method</b>. */
73
73
  QByteArray compress(const CompressionMethod method = Zlib,
74
74
                      QString *errmsg = 0) const;
75
75
  /** Compreses the contents of <b>in</b> using <b>method</b>. */
76
 
  static QByteArray compress(const QByteArray in, 
 
76
  static QByteArray compress(const QByteArray in,
77
77
                             const CompressionMethod method = Zlib,
78
78
                             QString *errmsg = 0);
79
79
  /** Uncompresses the current contents of this object using <b>method</b>. */