diff options
Diffstat (limited to 'Swiften/Queries')
-rw-r--r-- | Swiften/Queries/DummyIQChannel.h | 7 | ||||
-rw-r--r-- | Swiften/Queries/IQChannel.h | 2 |
2 files changed, 3 insertions, 6 deletions
diff --git a/Swiften/Queries/DummyIQChannel.h b/Swiften/Queries/DummyIQChannel.h index e327beb..92b7f2b 100644 --- a/Swiften/Queries/DummyIQChannel.h +++ b/Swiften/Queries/DummyIQChannel.h @@ -4,8 +4,7 @@ * See Documentation/Licenses/GPLv3.txt for more information. */ -#ifndef SWIFTEN_DummyIQChannel_H -#define SWIFTEN_DummyIQChannel_H +#pragma once #include <vector> @@ -24,12 +23,10 @@ namespace Swift { return "test-id"; } - virtual bool isAvailable() { + virtual bool isAvailable() const { return true; } std::vector<boost::shared_ptr<IQ> > iqs_; }; } - -#endif diff --git a/Swiften/Queries/IQChannel.h b/Swiften/Queries/IQChannel.h index 2f18111..e700b51 100644 --- a/Swiften/Queries/IQChannel.h +++ b/Swiften/Queries/IQChannel.h @@ -21,7 +21,7 @@ namespace Swift { virtual void sendIQ(boost::shared_ptr<IQ>) = 0; virtual String getNewIQID() = 0; - virtual bool isAvailable() = 0; + virtual bool isAvailable() const = 0; boost::signal<void (boost::shared_ptr<IQ>)> onIQReceived; }; |