summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'Swiften/Network/NATPMPInterface.h')
-rw-r--r--Swiften/Network/NATPMPInterface.h11
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;
};
}