forked from uroni/urbackup_backend
-
Notifications
You must be signed in to change notification settings - Fork 0
/
IFileServFactory.h
23 lines (17 loc) · 909 Bytes
/
IFileServFactory.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#ifndef IFILESERVFACTORY_H
#define IFILESERVFACTORY_H
#include "IFileServ.h"
#include "../Interface/Plugin.h"
#include <string>
#include "IPermissionCallback.h"
class IFileServFactory : public IPlugin
{
public:
virtual bool optainBackupPrivileges() = 0;
virtual IFileServ * createFileServ(unsigned short tcpport, unsigned short udpport, const std::string &name="", bool use_fqdn_default=false, bool enable_background_priority=true, bool enable_backup_semantics = true)=0;
virtual IFileServ * createFileServNoBind(const std::string &name="", bool use_fqdn_default=false, bool enable_background_priority = true, bool enable_backup_semantics = true)=0;
virtual void destroyFileServ(IFileServ *filesrv)=0;
virtual void setPermissionCallback(IPermissionCallback* new_permission_callback)=0;
virtual std::string getDefaultServerName(bool use_fqdn)=0;
};
#endif //IFILESERVFACTORY_H