mirror of
https://github.com/uroni/urbackup_backend.git
synced 2025-10-26 11:36:50 +00:00
27 lines
776 B
C++
27 lines
776 B
C++
#pragma once
|
|
#include "../urbackupcommon/fileclient/FileClient.h"
|
|
#include "../Interface/Thread.h"
|
|
#include "server_prepare_hash.h"
|
|
#include "../urbackupcommon/chunk_hasher.h"
|
|
#include "server_log.h"
|
|
|
|
class FileMetadataDownloadThread : public IThread
|
|
{
|
|
public:
|
|
FileMetadataDownloadThread(FileClient* fc, const std::string& server_token, logid_t logid);
|
|
|
|
virtual void operator()();
|
|
|
|
bool applyMetadata(const std::wstring& backupdir, INotEnoughSpaceCallback *cb);
|
|
bool applyWindowsMetadata(IFile* metadata_f, IFile* output_f, int64& metadata_size, INotEnoughSpaceCallback *cb);
|
|
|
|
private:
|
|
std::auto_ptr<FileClient> fc;
|
|
const std::string& server_token;
|
|
|
|
std::vector<char> buffer;
|
|
|
|
bool has_error;
|
|
std::wstring metadata_tmp_fn;
|
|
logid_t logid;
|
|
}; |