20#ifndef LIBREPCB_CORE_ZIPWRITER_H
21#define LIBREPCB_CORE_ZIPWRITER_H
26#include "../utils/rusthandle.h"
83 void writeFile(const QString& path, const QByteArray& data, uint32_t mode);
104 const QByteArray&
getData() const;
This class represents absolute, well-formatted paths to files or directories.
Definition filepath.h:127
Zip file writer.
Definition zipwriter.h:50
ZipWriter()
Create in-memory writer.
Definition zipwriter.cpp:61
ZipWriter(const ZipWriter &other)=delete
ZipWriter & operator=(const ZipWriter &rhs)=delete
void finish()
Finish writing the file.
Definition zipwriter.cpp:83
const QByteArray & getData() const
Get the in-memory ZIP data.
Definition zipwriter.cpp:92
QByteArray mBuffer
Definition zipwriter.h:107
RustHandle< rs::ZipWriter > mHandle
Definition zipwriter.h:108
void writeFile(const QString &path, const QByteArray &data, uint32_t mode)
Write a file.
Definition zipwriter.cpp:74
bool mFinished
Definition zipwriter.h:109
~ZipWriter() noexcept
Destructor.
Definition zipwriter.cpp:68
Definition occmodel.cpp:76
Scoped pointer for Rust objects.
Definition rusthandle.h:41