#pragma once #include #include "./InstanceHandler.h" namespace ts::server::file { class FileServerHandler { public: explicit FileServerHandler(InstanceHandler*); bool initialize(std::string& /* error */); void finalize(); private: InstanceHandler* instance_; #if 0 std::function&)> callback_transfer_registered{}; /* transfer has been registered */ std::function&)> callback_transfer_started{}; /* transfer has been started */ std::function&)> callback_transfer_finished{}; /* transfer has been finished */ std::function&, const TransferError&)> callback_transfer_aborted{}; /* an error happened while transferring the data */ std::function&, const TransferStatistics&)> callback_transfer_statistics{}; #endif void callback_transfer_registered(const std::shared_ptr&); void callback_transfer_started(const std::shared_ptr&); void callback_transfer_finished(const std::shared_ptr&); void callback_transfer_aborted(const std::shared_ptr&, const transfer::TransferError&); void callback_transfer_statistics(const std::shared_ptr&, const transfer::TransferStatistics&); }; }