mirror of
https://github.com/uroni/urbackup_backend.git
synced 2025-10-26 11:36:50 +00:00
21 lines
655 B
C++
21 lines
655 B
C++
#ifndef IFILESERVFACTORY_H
|
|
#define IFILESERVFACTORY_H
|
|
|
|
#include "IFileServ.h"
|
|
|
|
#include "../Interface/Plugin.h"
|
|
|
|
#include <string>
|
|
|
|
#include "IPermissionCallback.h"
|
|
|
|
class IFileServFactory : public IPlugin
|
|
{
|
|
public:
|
|
virtual IFileServ * createFileServ(unsigned short tcpport, unsigned short udpport, const std::wstring &name=L"", bool use_fqdn_default=false)=0;
|
|
virtual IFileServ * createFileServNoBind(const std::wstring &name=L"", bool use_fqdn_default=false)=0;
|
|
virtual void destroyFileServ(IFileServ *filesrv)=0;
|
|
virtual void setPermissionCallback(IPermissionCallback* new_permission_callback)=0;
|
|
};
|
|
|
|
#endif //IFILESERVFACTORY_H
|