diff options
author | Remko Tronçon <git@el-tramo.be> | 2012-07-15 07:42:42 (GMT) |
---|---|---|
committer | Remko Tronçon <git@el-tramo.be> | 2012-07-15 07:42:42 (GMT) |
commit | 562e37bca8ec283a382964e29ccb0ec0e4ba9d0f (patch) | |
tree | 1bbeaf3c935be8baa86fac3ef8f54e4dadc948f7 /Swiften/Network/NATPMPInterface.h | |
parent | 7a591138e89ad71ee1dd9825d7705c94f9bb50d2 (diff) | |
download | swift-contrib-562e37bca8ec283a382964e29ccb0ec0e4ba9d0f.zip swift-contrib-562e37bca8ec283a382964e29ccb0ec0e4ba9d0f.tar.bz2 |
Hide libminiupnp and libnatpmp.
Diffstat (limited to 'Swiften/Network/NATPMPInterface.h')
-rw-r--r-- | Swiften/Network/NATPMPInterface.h | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/Swiften/Network/NATPMPInterface.h b/Swiften/Network/NATPMPInterface.h index 6e7fb73..7073bd2 100644 --- a/Swiften/Network/NATPMPInterface.h +++ b/Swiften/Network/NATPMPInterface.h @@ -7,15 +7,13 @@ #pragma once #include <boost/optional.hpp> +#include <boost/shared_ptr.hpp> +#include <boost/noncopyable.hpp> #include <Swiften/Network/NATPortMapping.h> #include <Swiften/Network/NATTraversalInterface.h> -// This has to be included after the previous headers, because of WIN32 macro -// being defined somewhere. -#include <natpmp.h> - namespace Swift { - class NATPMPInterface : public NATTraversalInterface { + class NATPMPInterface : public NATTraversalInterface, boost::noncopyable { public: NATPMPInterface(); ~NATPMPInterface(); @@ -27,6 +25,7 @@ namespace Swift { virtual bool removePortForward(const NATPortMapping&); private: - natpmp_t natpmp; + class Private; + boost::shared_ptr<Private> p; }; } |