diff options
author | Tobias Markmann <tm@ayena.de> | 2017-06-24 19:24:28 (GMT) |
---|---|---|
committer | Tobias Markmann <tm@ayena.de> | 2017-06-26 04:18:34 (GMT) |
commit | bd0e671455f6b042bbbd385f1551e9a5011badf5 (patch) | |
tree | 9a496a300584d2b09220117af6fb52568102e5ee /Swiften/Network/BoostConnection.h | |
parent | 02763529a75970a1d57d9abf3448848f728c4101 (diff) | |
download | swift-bd0e671455f6b042bbbd385f1551e9a5011badf5.zip swift-bd0e671455f6b042bbbd385f1551e9a5011badf5.tar.bz2 |
Remove unneeded forward declarations from Swiften headers
Found by cppclean.
Test-Information:
Still builds on macOS 10.12.5 with clang trunk.
Change-Id: Ie8a154e12b196587c956c8b333abf529a36f6bb3
Diffstat (limited to 'Swiften/Network/BoostConnection.h')
-rw-r--r-- | Swiften/Network/BoostConnection.h | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/Swiften/Network/BoostConnection.h b/Swiften/Network/BoostConnection.h index 03122da..c77b933 100644 --- a/Swiften/Network/BoostConnection.h +++ b/Swiften/Network/BoostConnection.h @@ -1,59 +1,52 @@ /* - * Copyright (c) 2010-2016 Isode Limited. + * Copyright (c) 2010-2017 Isode Limited. * All rights reserved. * See the COPYING file for more information. */ #pragma once #include <memory> #include <mutex> #include <boost/asio/io_service.hpp> #include <boost/asio/ip/tcp.hpp> #include <Swiften/Base/API.h> #include <Swiften/Base/SafeByteArray.h> #include <Swiften/EventLoop/EventOwner.h> #include <Swiften/Network/Connection.h> #include <Swiften/TLS/Certificate.h> #include <Swiften/TLS/CertificateVerificationError.h> #include <Swiften/TLS/CertificateWithKey.h> -namespace boost { - class thread; - namespace system { - class error_code; - } -} - namespace Swift { class EventLoop; class SWIFTEN_API BoostConnection : public Connection, public EventOwner, public std::enable_shared_from_this<BoostConnection> { public: typedef std::shared_ptr<BoostConnection> ref; virtual ~BoostConnection(); static ref create(std::shared_ptr<boost::asio::io_service> ioService, EventLoop* eventLoop) { return ref(new BoostConnection(ioService, eventLoop)); } virtual void listen(); virtual void connect(const HostAddressPort& address); virtual void disconnect(); virtual void write(const SafeByteArray& data); boost::asio::ip::tcp::socket& getSocket() { return socket_; } virtual HostAddressPort getLocalAddress() const; virtual HostAddressPort getRemoteAddress() const; bool setClientCertificate(CertificateWithKey::ref cert); Certificate::ref getPeerCertificate() const; std::vector<Certificate::ref> getPeerCertificateChain() const; std::shared_ptr<CertificateVerificationError> getPeerCertificateVerificationError() const; |