diff options
Diffstat (limited to 'Swiften/Queries')
-rw-r--r-- | Swiften/Queries/IQHandler.h | 4 | ||||
-rw-r--r-- | Swiften/Queries/Request.h | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/Swiften/Queries/IQHandler.h b/Swiften/Queries/IQHandler.h index 1bfdf0f..b5c1fc3 100644 --- a/Swiften/Queries/IQHandler.h +++ b/Swiften/Queries/IQHandler.h @@ -1,23 +1,21 @@ /* - * 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 <Swiften/Base/API.h> #include <Swiften/Elements/IQ.h> namespace Swift { - class IQRouter; - class SWIFTEN_API IQHandler { public: virtual ~IQHandler(); virtual bool handleIQ(std::shared_ptr<IQ>) = 0; }; } diff --git a/Swiften/Queries/Request.h b/Swiften/Queries/Request.h index a62c103..2cf5017 100644 --- a/Swiften/Queries/Request.h +++ b/Swiften/Queries/Request.h @@ -1,51 +1,53 @@ /* - * 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 <string> #include <boost/optional.hpp> #include <Swiften/Base/API.h> #include <Swiften/Elements/ErrorPayload.h> #include <Swiften/Elements/IQ.h> #include <Swiften/Elements/Payload.h> #include <Swiften/JID/JID.h> #include <Swiften/Queries/IQHandler.h> namespace Swift { + class IQRouter; + /** * An IQ get/set request query. */ class SWIFTEN_API Request : public IQHandler, public std::enable_shared_from_this<Request> { public: std::string send(); const JID& getReceiver() const { return receiver_; } /** * Returns the ID of this request. * This will only be set after send() is called. */ const std::string& getID() const { return id_; } protected: /** * Constructs a request of a certain type to a specific receiver, and attaches the given * payload. */ Request( IQ::Type type, const JID& receiver, std::shared_ptr<Payload> payload, IQRouter* router); |