X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/f48b5b729bb0a1bdf88c1eebdb7e754c4d6bac92..6fd1ed115d0f47b3e88f54c89fa3295446f34851:/projects/sgauth/settings_impl.h diff --git a/projects/sgauth/settings_impl.h b/projects/sgauth/settings_impl.h index b334dac9..c5305b89 100644 --- a/projects/sgauth/settings_impl.h +++ b/projects/sgauth/settings_impl.h @@ -22,21 +22,21 @@ #define SETTINGS_IMPL_H #include - -#include "stg/os_int.h" +#include class SETTINGS_IMPL { public: SETTINGS_IMPL(); ~SETTINGS_IMPL() {} int Reload() { return 0; } - void SetConfFile(const std::string cf) { confFile = cf; } + void SetConfFile(const std::string & cf) { confFile = cf; } int ReadSettings(); const std::string & GetStrError() const { return strError; } const std::string & GetServerName() const { return serverName; } uint16_t GetServerPort() const { return port; } + const std::string & GetLocalName() const { return localName; } uint16_t GetLocalPort() const { return localPort; } const std::string & GetLogin() const { return login; } @@ -56,6 +56,7 @@ private: std::string password; std::string serverName; int port; + std::string localName; int localPort; uint32_t listenWebIP; int refreshPeriod; @@ -67,12 +68,6 @@ private: std::string confFile; std::string strError; - - int ParseInt(const std::string & value, int * val); - int ParseUnsigned(const std::string & value, unsigned * val); - int ParseIntInRange(const std::string & value, int min, int max, int * val); - int ParseUnsignedInRange(const std::string & value, unsigned min, unsigned max, unsigned * val); - int ParseYesNo(const std::string & value, bool * val); }; #endif