mirror of
https://github.com/uroni/urbackup_backend.git
synced 2025-10-26 11:36:50 +00:00
37 lines
935 B
C++
37 lines
935 B
C++
#include <string>
|
|
#include "../Interface/Pipe.h"
|
|
#include "../Interface/File.h"
|
|
#include "../Interface/Thread.h"
|
|
#include "../Interface/Server.h"
|
|
|
|
class ClientConnector;
|
|
struct ImageInformation;
|
|
|
|
class ImageThread : public IThread
|
|
{
|
|
public:
|
|
ImageThread(ClientConnector *client, IPipe *pipe, IPipe *mempipe, ImageInformation *image_inf, std::string server_token, IFile *hashdatafile);
|
|
|
|
void operator()(void);
|
|
|
|
private:
|
|
|
|
void ImageErr(const std::string &msg, int loglevel=LL_ERROR);
|
|
void ImageErrRunning(std::string msg);
|
|
|
|
bool sendFullImageThread(void);
|
|
bool sendIncrImageThread(void);
|
|
|
|
void removeShadowCopyThread(int save_id);
|
|
void updateShadowCopyStarttime(int save_id);
|
|
|
|
bool sendBitmap(IFilesystem* fs, int64 drivesize, unsigned int blocksize);
|
|
|
|
IPipe *pipe;
|
|
IPipe *mempipe;
|
|
ClientConnector *client;
|
|
std::string server_token;
|
|
IFile *hashdatafile;
|
|
|
|
ImageInformation *image_inf;
|
|
}; |