完成框架目录和模块重构;新增核心、单例、工具、加密及框架 SDK;统一任务、相机和 RPC 接口,并增加离线检测、相机标定、备份恢复、版本管理、崩溃守护和心跳监控功能。
40 lines
930 B
C++
40 lines
930 B
C++
#pragma once
|
|
#include <eui_tools/export.h>
|
|
|
|
#include <eui_tools/json/euiJson.h>
|
|
|
|
#include <QCryptographicHash>
|
|
#include <QDateTime>
|
|
#include <QDir>
|
|
#include <QFile>
|
|
#include <QFileInfo>
|
|
#include <QVector>
|
|
|
|
namespace backupManifest {
|
|
|
|
struct FileEntry {
|
|
QString fileName;
|
|
QString targetPath;
|
|
QString md5;
|
|
};
|
|
|
|
struct Manifest {
|
|
QString createdAt;
|
|
QString log;
|
|
QVector<FileEntry> files;
|
|
};
|
|
|
|
EUI_TOOLS_API QString fileMD5(const QString& filePath);
|
|
|
|
EUI_TOOLS_API bool write(const QString& backupDir, const QString& log, const QVector<FileEntry>& files);
|
|
|
|
EUI_TOOLS_API bool read(const QString& backupDir, Manifest* manifest);
|
|
|
|
EUI_TOOLS_API bool verify(const QString& backupDir, const Manifest& manifest);
|
|
|
|
EUI_TOOLS_API bool replaceFile(const QString& sourcePath, const QString& targetPath);
|
|
|
|
EUI_TOOLS_API bool restoreFiles(const QString& backupDir, const Manifest& manifest);
|
|
|
|
} // namespace backupManifest
|