1
0

Dokan changes

This commit is contained in:
Scott E. Graves
2017-02-12 22:03:07 -06:00
parent 3c1dd68622
commit 8a1437388a
7 changed files with 112 additions and 6 deletions

View File

@@ -26,6 +26,22 @@ public:
Japanese
};
class AFX_EXT_CLASS _CSiaFile
{
friend CSiaApi;
private:
_CSiaFile(CSiaCurl& siaCurl);
public:
~_CSiaFile();
private:
CSiaCurl& _siaCurl;
// Properties
Property(String, SiaPath, public, private)
};
class AFX_EXT_CLASS _CSiaFileTree
{
friend CSiaApi;
@@ -38,9 +54,16 @@ public:
private:
CSiaCurl& _siaCurl;
private:
std::vector<std::shared_ptr<_CSiaFile>> _fileList;
public:
void BuildTree(const json& result);
std::vector<std::shared_ptr<_CSiaFile>> QueryFiles(String query) const;
std::shared_ptr<_CSiaFile> GetFile(const String& siaPath) const;
bool FileExists(const String& siaPath) const;
};
@@ -117,6 +140,9 @@ typedef CSiaApi::_CSiaWallet CSiaWallet;
typedef CSiaApi::_CSiaRenter CSiaRenter;
typedef std::shared_ptr<CSiaWallet> CSiaWalletPtr;
typedef std::shared_ptr<CSiaRenter> CSiaRenterPtr;
typedef CSiaApi::_CSiaFile CSiaFile;
typedef std::shared_ptr<CSiaFile> CSiaFilePtr;
typedef std::vector<CSiaFilePtr> CSiaFileCollection;
typedef CSiaApi::_CSiaFileTree CSiaFileTree;
typedef std::shared_ptr<CSiaFileTree> CSiaFileTreePtr;