1
0

Dokan changes

This commit is contained in:
Scott E. Graves
2017-02-11 01:46:15 -06:00
parent 6cbfd920c7
commit 6f21dd7880
7 changed files with 231 additions and 16 deletions

View File

@@ -52,6 +52,23 @@ public:
_SiaApiError GetUnonfirmedBalance(SiaCurrency& balance) const;
};
class AFX_EXT_CLASS _CSiaRenter
{
friend CSiaApi;
private:
_CSiaRenter(CSiaCurl& siaCurl);
public:
~_CSiaRenter();
private:
CSiaCurl& _siaCurl;
public:
_SiaApiError FileExists(const String& siaPath, bool& exists) const;
_SiaApiError DeleteFile(const String& siaPath);
};
public:
CSiaApi(const SiaHostConfig& hostConfig);
@@ -61,16 +78,19 @@ public:
private:
CSiaCurl _siaCurl;
std::shared_ptr<_CSiaWallet> _wallet;
std::shared_ptr<_CSiaRenter> _renter;
public:
std::shared_ptr<_CSiaWallet> GetWallet() const;
std::shared_ptr<_CSiaRenter> GetRenter() const;
String GetServerVersion() const;
};
typedef CSiaApi::_SiaApiError SiaApiError;
typedef CSiaApi::_SiaSeedLanguage SiaSeedLanguage;
typedef CSiaApi::_CSiaWallet CSiaWallet;
typedef std::shared_ptr<CSiaApi::_CSiaWallet> CSiaWalletPtr;
typedef CSiaApi::_CSiaRenter CSiaRenter;
typedef std::shared_ptr<CSiaWallet> CSiaWalletPtr;
typedef std::shared_ptr<CSiaRenter> CSiaRenterPtr;
NS_END(2)