Dokan changes
This commit is contained in:
@@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user