]> git.stg.codes - stg.git/blobdiff - stargazer/plugins/other/radius/conn.h
Public interfaces: part 1
[stg.git] / stargazer / plugins / other / radius / conn.h
index 96e74300f2f7f8b413570f0b362f3a970415792e..0f902e9a74c754e68d7b721d2d957e2e41cb5505 100644 (file)
  *    Author : Maxim Mamontov <faust@stargazer.dp.ua>
  */
 
-#ifndef __STG_SGCONFIG_CONN_H__
-#define __STG_SGCONFIG_CONN_H__
-
-#include <boost/scoped_ptr.hpp>
+#pragma once
 
 #include <string>
+#include <memory>
 
-class USER;
-class USERS;
-class PLUGIN_LOGGER;
 class RADIUS;
 
 namespace STG
 {
 
+struct Users;
+class PluginLogger;
+
 struct Config;
 
 class Conn
 {
     public:
-        Conn(USERS& users, PLUGIN_LOGGER& logger, RADIUS& plugin, const Config& config, int fd, const std::string& remote);
+        Conn(Users& users, PluginLogger& logger, RADIUS& plugin, const Config& config, int fd, const std::string& remote);
         ~Conn();
 
         int sock() const;
@@ -50,9 +48,7 @@ class Conn
 
     private:
         class Impl;
-        boost::scoped_ptr<Impl> m_impl;
+        std::unique_ptr<Impl> m_impl;
 };
 
 }
-
-#endif