~ubuntu-branches/ubuntu/jaunty/psi/jaunty

« back to all changes in this revision

Viewing changes to iris/xmpp-core/compressionhandler.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Jan Niehusmann
  • Date: 2008-08-28 18:46:52 UTC
  • mfrom: (1.2.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20080828184652-iiik12dl91nq7cdi
Tags: 0.12-2
Uploading to unstable (Closes: Bug#494352)

Show diffs side-by-side

added added

removed removed

Lines of Context:
4
4
#include "compressionhandler.h"
5
5
#include "compress.h"
6
6
 
7
 
CompressionHandler::CompressionHandler() : errorCode_(0)
 
7
CompressionHandler::CompressionHandler()
 
8
        : errorCode_(0)
8
9
{
9
10
        outgoing_buffer_.open(QIODevice::ReadWrite);
10
11
        compressor_ = new Compressor(&outgoing_buffer_);
13
14
        decompressor_ = new Decompressor(&incoming_buffer_);
14
15
}
15
16
 
 
17
CompressionHandler::~CompressionHandler()
 
18
{
 
19
        delete compressor_;
 
20
        delete decompressor_;
 
21
}
 
22
 
16
23
void CompressionHandler::writeIncoming(const QByteArray& a)
17
24
{
18
25
        //qDebug("CompressionHandler::writeIncoming");