1
0

Mo stuffs

This commit is contained in:
Scott E. Graves
2017-03-22 13:24:53 -05:00
parent 9efbae3fb9
commit 2e3730b3d1
9 changed files with 151 additions and 72 deletions

View File

@@ -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;

View File

@@ -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);

View File

@@ -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);