1
0

Lock wallet on exit and event level

This commit is contained in:
Scott E. Graves
2017-04-24 14:10:11 -05:00
parent fce3e669e0
commit 52141a3227
13 changed files with 66 additions and 84 deletions

View File

@@ -63,7 +63,7 @@ public:
private:
static void ExecuteSetter(CefRefPtr<CefV8Context> context, CefRefPtr<CefV8Value> obj, const SString& method, const SString& value);
static void ExecuteSetter(CefRefPtr<CefV8Context> context, CefRefPtr<CefV8Value> obj, const SString& method, CefRefPtr<CefV8Value> value);
void ShutdownServices();
void ShutdownServices(const bool& closing = false);
void SiaApiRefreshCallback(CefRefPtr<CefV8Context> context, const Api::CSiaCurl& siaCurl, Api::CSiaDriveConfig* siaDriveConfig);
private:

View File

@@ -12,6 +12,8 @@ enum class EventLevel
Debug
};
EventLevel SIADRIVE_EXPORTABLE EventLevelFromString(const SString& eventLevel);
class SIADRIVE_EXPORTABLE CEvent
{
public:

View File

@@ -2,7 +2,7 @@
#define _SIACOMMON_H
#include <cstdint>
#define SIDRIVE_VERSION_STRING "0.0.1"
#define SIADRIVE_VERSION_STRING "@SIADRIVE_VERSION@"
#define COMPAT_SIAD_VERSION "1.2.0"
#ifdef _WIN32

View File

@@ -26,6 +26,7 @@ public:
JProperty(bool, LockWalletOnExit, public, public, _configDocument)
JProperty(bool, AutoStartOnLogon, public, public, _configDocument)
JProperty(bool, LaunchBundledSiad, public, public, _configDocument)
JProperty(std::string, EventLevel, public, public, _configDocument)
private:
json _configDocument;