urbackup_backend/urbackupclient/FileMetadataDownloadThread.h
2015-09-27 20:58:21 +02:00

32 lines
653 B
C++

#pragma once
#include "../urbackupcommon/fileclient/FileClient.h"
#include "../Interface/Thread.h"
#include "RestoreFiles.h"
namespace client {
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;
};
} //namespace client