20#ifndef LIBREPCB_CORE_ZIPARCHIVE_H
21#define LIBREPCB_CORE_ZIPARCHIVE_H
26#include "../utils/rusthandle.h"
This class represents absolute, well-formatted paths to files or directories.
Definition filepath.h:127
Zip file reader.
Definition ziparchive.h:50
QByteArray readFile(std::size_t index)
Read the content of a file.
Definition ziparchive.cpp:82
RustHandle< rs::ZipArchive > mHandle
Definition ziparchive.h:115
QString getFileName(std::size_t index)
Get the file name of an entry.
Definition ziparchive.cpp:72
ZipArchive & operator=(const ZipArchive &rhs)=delete
std::size_t getEntriesCount() const noexcept
Get number of ZIp entries (files & directories)
Definition ziparchive.cpp:68
void extractTo(const FilePath &dir)
Extract whole Zip to a directory (overwriting)
Definition ziparchive.cpp:91
ZipArchive(const ZipArchive &other)=delete
Definition occmodel.cpp:76
Scoped pointer for Rust objects.
Definition rusthandle.h:41