mirror of
https://github.com/uroni/urbackup_backend.git
synced 2025-10-26 11:36:50 +00:00
28 lines
607 B
C++
28 lines
607 B
C++
#pragma once
|
|
#include "../urbackupcommon/fileclient/FileClient.h"
|
|
#include "../Interface/Thread.h"
|
|
#include "RestoreFiles.h"
|
|
|
|
class FileMetadataDownloadThread : public IThread
|
|
{
|
|
public:
|
|
FileMetadataDownloadThread(RestoreFiles& restore, FileClient& fc, const std::string& client_token);
|
|
|
|
virtual void operator()();
|
|
|
|
bool applyMetadata();
|
|
|
|
bool applyOsMetadata(IFile* metadata_f, const std::wstring& output_fn);
|
|
|
|
|
|
private:
|
|
RestoreFiles& restore;
|
|
FileClient& fc;
|
|
const std::string& client_token;
|
|
|
|
std::vector<char> buffer;
|
|
|
|
bool has_error;
|
|
std::wstring metadata_tmp_fn;
|
|
};
|