2015-04-22 19:22:01 +02:00
|
|
|
#ifndef BACKUPHELPER_H
|
|
|
|
#define BACKUPHELPER_H
|
|
|
|
|
2016-08-29 15:43:05 +02:00
|
|
|
#include "./global.h"
|
2015-04-22 19:22:01 +02:00
|
|
|
|
|
|
|
#include <string>
|
|
|
|
#include <fstream>
|
|
|
|
|
|
|
|
namespace Media {
|
|
|
|
|
2016-05-01 20:02:44 +02:00
|
|
|
class MediaFileInfo;
|
|
|
|
|
2015-04-22 19:22:01 +02:00
|
|
|
namespace BackupHelper {
|
|
|
|
|
2016-08-29 15:43:05 +02:00
|
|
|
TAG_PARSER_EXPORT std::string &backupDirectory();
|
|
|
|
TAG_PARSER_EXPORT void restoreOriginalFileFromBackupFile(const std::string &originalPath, const std::string &backupPath, std::fstream &originalStream, std::fstream &backupStream);
|
|
|
|
TAG_PARSER_EXPORT void createBackupFile(const std::string &originalPath, std::string &backupPath, std::fstream &originalStream, std::fstream &backupStream);
|
|
|
|
TAG_PARSER_EXPORT void handleFailureAfterFileModified(MediaFileInfo &mediaFileInfo, const std::string &backupPath, std::fstream &outputStream, std::fstream &backupStream, const std::string &context = "making file");
|
2015-04-22 19:22:01 +02:00
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif // BACKUPHELPER_H
|