1
0

Dokan changes

This commit is contained in:
Scott E. Graves
2017-02-11 15:07:51 -06:00
parent 0a865eb73e
commit a70d22b568
6 changed files with 194 additions and 11 deletions

View File

@@ -26,6 +26,22 @@ public:
Japanese
};
class AFX_EXT_CLASS _CSiaFileTree
{
friend CSiaApi;
private:
_CSiaFileTree(CSiaCurl& siaCurl);
public:
~_CSiaFileTree();
private:
CSiaCurl& _siaCurl;
public:
void BuildTree(const json& result);
};
class AFX_EXT_CLASS _CSiaWallet
{
friend CSiaApi;
@@ -69,6 +85,8 @@ public:
_SiaApiError FileExists(const String& siaPath, bool& exists) const;
_SiaApiError DeleteFile(const String& siaPath);
_SiaApiError DownloadFile(const String& siaPath, const String& location) const;
_SiaApiError QueueUploadFile(const String& siaPath, const String& filePath);
_SiaApiError GetFileTree(std::shared_ptr<_CSiaFileTree>& siaFileTree) const;
};
public:
@@ -94,5 +112,7 @@ typedef CSiaApi::_CSiaWallet CSiaWallet;
typedef CSiaApi::_CSiaRenter CSiaRenter;
typedef std::shared_ptr<CSiaWallet> CSiaWalletPtr;
typedef std::shared_ptr<CSiaRenter> CSiaRenterPtr;
typedef CSiaApi::_CSiaFileTree CSiaFileTree;
typedef std::shared_ptr<CSiaFileTree> CSiaFileTreePtr;
NS_END(2)