* Basic mtgjsonv4 support * Fix set type * [WIP] Oracle: use zx instead of zip * clanfigy fixes * Fix reading last block of xz * Added back zip support * [WIP] adding xz on ci + fixes * typo * resolve conflict * Make gcc an happy puppy * test appveyor build * appveyor maybe * Appveyor: add xz bindir * Update ssl version (the old one is not available anymore) * Windows is a really shitty platform to code on. * test vcpkg * again * gosh * nowarn * warning 2 * static * Maybe * cmake fix * fsck this pain * FindWin32SslRuntime: add vcpkg path * Appveyor: cache support, force usable of openssl from vcpkg * updated as suggested * ouch * Import card uuids and expose this property as !uuid! for card image download * Minor style fixes * address changed URL
19 lines
402 B
C++
19 lines
402 B
C++
#ifndef XZ_DECOMPRESS_H
|
|
#define XZ_DECOMPRESS_H
|
|
|
|
#include <lzma.h>
|
|
#include <QBuffer>
|
|
|
|
class XzDecompressor : public QObject
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
XzDecompressor(QObject *parent = 0);
|
|
~XzDecompressor() { };
|
|
bool decompress(QBuffer *in, QBuffer *out);
|
|
private:
|
|
bool init_decoder(lzma_stream *strm);
|
|
bool internal_decompress(lzma_stream *strm, QBuffer *in, QBuffer *out);
|
|
};
|
|
|
|
#endif
|