Mo stuffs
This commit is contained in:
@@ -11,6 +11,14 @@ namespace Api
|
||||
class CSiaApi;
|
||||
class CSiaCurl;
|
||||
class CSiaDriveConfig;
|
||||
#ifdef _WIN32
|
||||
namespace Dokan
|
||||
{
|
||||
class CSiaDokanDrive;
|
||||
}
|
||||
#else
|
||||
a
|
||||
#endif
|
||||
}
|
||||
|
||||
class CSiaDriveApp :
|
||||
@@ -26,6 +34,11 @@ private:
|
||||
std::unique_ptr<Api::CSiaApi> _siaApi;
|
||||
std::unique_ptr<Api::CSiaCurl> _siaCurl;
|
||||
std::unique_ptr<Api::CSiaDriveConfig> _siaDriveConfig;
|
||||
#ifdef _WIN32
|
||||
std::unique_ptr<Api::Dokan::CSiaDokanDrive> _siaDrive;
|
||||
#else
|
||||
a
|
||||
#endif
|
||||
bool _appStarted = false;
|
||||
SString _walletReceiveAddress;
|
||||
|
||||
|
@@ -22,6 +22,8 @@ public:
|
||||
|
||||
public:
|
||||
static SString FinalizePath(const SString& path);
|
||||
static SString GetTempDirectory();
|
||||
static SString GetAppDataDirectory();
|
||||
|
||||
private:
|
||||
SString _path;
|
||||
@@ -37,6 +39,7 @@ public:
|
||||
bool DeleteFile() const;
|
||||
bool MoveFile(const FilePath& filePath);
|
||||
FilePath& RemoveFileName();
|
||||
FilePath& MakeAbsolute();
|
||||
|
||||
public:
|
||||
FilePath& operator=(const FilePath& filePath);
|
||||
|
@@ -351,6 +351,12 @@ public:
|
||||
return std::equal(str.str().rbegin(), str.str().rend(), _str.rbegin());
|
||||
}
|
||||
|
||||
SString& Fit()
|
||||
{
|
||||
_str = _str.c_str();
|
||||
return *this;
|
||||
}
|
||||
|
||||
SString &ToLower()
|
||||
{
|
||||
std::transform(_str.begin(), _str.end(), _str.begin(), ::tolower);
|
||||
|
Reference in New Issue
Block a user