2020-06-28 18:09:09 +00:00
|
|
|
#ifndef WF_TEST_UTIL_ADAPTER_CLIENT_HPP
|
|
|
|
#define WF_TEST_UTIL_APAPTER_CLIENT_HPP
|
2020-06-13 16:24:45 +00:00
|
|
|
|
2020-06-28 13:51:34 +00:00
|
|
|
#include "webfuse/client.h"
|
2020-06-13 16:24:45 +00:00
|
|
|
#include <string>
|
|
|
|
|
|
|
|
namespace webfuse_test
|
|
|
|
{
|
|
|
|
|
|
|
|
class AdapterClient
|
|
|
|
{
|
|
|
|
AdapterClient(AdapterClient const &) = delete;
|
|
|
|
AdapterClient& operator=(AdapterClient const &) = delete;
|
|
|
|
public:
|
|
|
|
AdapterClient(
|
|
|
|
wf_client_callback_fn * callback,
|
|
|
|
void * user_data,
|
|
|
|
std::string const & url);
|
|
|
|
~AdapterClient();
|
|
|
|
void Connect();
|
|
|
|
void Disconnect();
|
|
|
|
void Authenticate();
|
|
|
|
void AddFileSystem();
|
2020-06-14 08:39:33 +00:00
|
|
|
std::string GetDir() const;
|
2020-06-13 16:24:45 +00:00
|
|
|
private:
|
|
|
|
class Private;
|
|
|
|
Private * d;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|