GpgFrontend Project
A Free, Powerful, Easy-to-Use, Compact, Cross-Platform, and Installation-Free OpenPGP(pgp) Crypto Tool.
|
29 #ifndef GPGFRONTEND_FILEOPERATOR_H
30 #define GPGFRONTEND_FILEOPERATOR_H
32 #include "core/GpgFrontendCore.h"
50 static bool ReadFileStd(
const std::filesystem::path &file_name,
60 static bool WriteFileStd(
const std::filesystem::path &file_name,
61 const std::string &data);
71 static bool ReadFile(
const QString &file_name, QByteArray &data);
81 static bool WriteFile(
const QString &file_name,
const QByteArray &data);
88 static std::string CalculateHash(
const std::filesystem::path &file_path);
92 #endif // GPGFRONTEND_FILEOPERATOR_H
static bool ReadFile(const QString &file_name, QByteArray &data)
read file content
Definition: FileOperator.cpp:31
static bool WriteFileStd(const std::filesystem::path &file_name, const std::string &data)
write file content using std struct
Definition: FileOperator.cpp:67
Definition: CoreCommonUtil.cpp:29
static std::string CalculateHash(const std::filesystem::path &file_path)
Definition: FileOperator.cpp:72
static bool ReadFileStd(const std::filesystem::path &file_name, std::string &data)
read file content using std struct
Definition: FileOperator.cpp:55
provides file operations
Definition: FileOperator.h:40
static bool WriteFile(const QString &file_name, const QByteArray &data)
write file content
Definition: FileOperator.cpp:43