tagparser/backuphelper.h

25 lines
805 B
C
Raw Normal View History

2015-04-22 19:22:01 +02:00
#ifndef BACKUPHELPER_H
#define BACKUPHELPER_H
#include <c++utilities/application/global.h>
#include <string>
#include <fstream>
namespace Media {
class MediaFileInfo;
2015-04-22 19:22:01 +02:00
namespace BackupHelper {
LIB_EXPORT std::string &backupDirectory();
LIB_EXPORT void restoreOriginalFileFromBackupFile(const std::string &originalPath, const std::string &backupPath, std::fstream &originalStream, std::fstream &backupStream);
LIB_EXPORT void createBackupFile(const std::string &originalPath, std::string &backupPath, std::fstream &originalStream, std::fstream &backupStream);
LIB_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