# GpgFrontend Project: src/core/function/ArchiveFileOperator.h Source File

ArchiveFileOperator.h
#ifndef GPGFRONTEND_ARCHIVEFILEOPERATOR_H
#define GPGFRONTEND_ARCHIVEFILEOPERATOR_H
#include "core/GpgFrontendCore.h"
#include "core/function/FileOperator.h"
namespace GpgFrontend {
struct ArchiveStruct {
struct archive *archive;
struct archive_entry *entry;
int fd;
bool is_open;
std::string name;
};
class GPGFRONTEND_CORE_EXPORT ArchiveFileOperator {
public:
static void ListArchive(const std::filesystem::path &archive_path);
static void CreateArchive(const std::filesystem::path &base_path,
const std::filesystem::path &archive_path,
int compress,
const std::vector<std::filesystem::path> &files);
static void ExtractArchive(const std::filesystem::path &archive_path,
const std::filesystem::path &base_path);
};
} // namespace GpgFrontend
#endif // GPGFRONTEND_ARCHIVEFILEOPERATOR_H
GpgFrontend::ArchiveFileOperator
Definition: ArchiveFileOperator.h:45
GpgFrontend
Definition: CoreCommonUtil.cpp:31
GpgFrontend::ArchiveStruct
Definition: ArchiveFileOperator.h:37