GpgFrontend Project
A Free, Powerful, Easy-to-Use, Compact, Cross-Platform, and Installation-Free OpenPGP(pgp) Crypto Tool.
ArchiveFileOperator.h
1
29#ifndef GPGFRONTEND_ARCHIVEFILEOPERATOR_H
30#define GPGFRONTEND_ARCHIVEFILEOPERATOR_H
31
32#include "core/GpgFrontendCore.h"
33#include "core/function/FileOperator.h"
34
35namespace GpgFrontend {
36
38 struct archive *archive;
39 struct archive_entry *entry;
40 int fd;
41 bool is_open;
42 std::string name;
43};
44
45class GPGFRONTEND_CORE_EXPORT ArchiveFileOperator {
46 public:
47 static void ListArchive(const std::filesystem::path &archive_path);
48
49 static void CreateArchive(
50 const std::filesystem::path &base_path,
51 const std::filesystem::path &archive_path,
52 int compress,
53 const std::vector<std::filesystem::path> &files);
54
55 static void ExtractArchive(
56 const std::filesystem::path &archive_path,
57 const std::filesystem::path &base_path);
58};
59} // namespace GpgFrontend
60
61#endif // GPGFRONTEND_ARCHIVEFILEOPERATOR_H
Definition: ArchiveFileOperator.h:45
Definition: CoreCommonUtil.cpp:29
Definition: ArchiveFileOperator.h:37