]> git.stg.codes - stg.git/blobdiff - projects/sgauth/settings_impl.h
Use `time` for message creation time.
[stg.git] / projects / sgauth / settings_impl.h
index 2de52577709728c08e15d5106e59871a6ddc988f..c5305b89f0fbf691af4a01f39af8d1d595fda0d0 100644 (file)
 #define SETTINGS_IMPL_H
 
 #include <string>
-
-#include "stg/os_int.h"
+#include <cstdint>
 
 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;