mirror of
https://github.com/uroni/urbackup_backend.git
synced 2025-10-26 11:36:50 +00:00
23 lines
936 B
C++
23 lines
936 B
C++
#include "IFileServFactory.h"
|
|
|
|
class FileServFactory : public IFileServFactory
|
|
{
|
|
public:
|
|
static bool backgroundBackupsEnabled();
|
|
static bool backupSemanticsEnabled();
|
|
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);
|
|
void destroyFileServ(IFileServ *filesrv);
|
|
|
|
IFileServ* createFileServNoBind(const std::string &name="", bool use_fqdn_default=false, bool enable_background_priority = true, bool enable_backup_semantics = true);
|
|
|
|
void setPermissionCallback(IPermissionCallback* new_permission_callback);
|
|
|
|
static IPermissionCallback* getPermissionCallback();
|
|
|
|
std::string getDefaultServerName(bool use_fqdn);
|
|
|
|
private:
|
|
static IPermissionCallback* permission_callback;
|
|
static bool backupground_backups_enabled;
|
|
static bool backup_semantics_enabled;
|
|
}; |