1
0

All kinds of stuff

This commit is contained in:
Scott E. Graves
2017-04-12 16:48:53 -05:00
parent 342989e4d1
commit 74437dde15
7 changed files with 138 additions and 58 deletions

View File

@@ -36,6 +36,7 @@ typedef std::shared_ptr<CEvent> CEventPtr;
#define CreateSystemEvent(E) CEventPtr(new E)
#define CreateSystemEventConsumer(E) [=](const CEvent&) -> void { E(e); }
CEventPtr SIADRIVE_EXPORTABLE CreateSystemCriticalEvent(const SString& reason);
// Singleton
class SIADRIVE_EXPORTABLE CEventSystem

View File

@@ -55,7 +55,7 @@ private:
private:
CSiaDriveConfig* GetSiaDriveConfig() const { return _siaDriveConfig; }
bool HandleFileRemove(const CSiaCurl& siaCurl, const SString& siaPath);
void HandleFileRemove(const CSiaCurl& siaCurl, const SString& siaPath);
void DeleteFilesRemovedFromSia(const CSiaCurl& siaCurl, CSiaDriveConfig* siaDriveConfig, const bool& isStartup = false);
protected: