Add precon import dialog.

This commit is contained in:
Lukas Brübach 2025-06-10 19:00:53 +02:00
parent ab5d6db8a2
commit f64d0ec71d
17 changed files with 5795 additions and 1 deletions

View file

@ -0,0 +1,19 @@
#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