summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemko Tronçon <git@el-tramo.be>2010-10-10 16:07:31 (GMT)
committerRemko Tronçon <git@el-tramo.be>2010-10-10 16:12:37 (GMT)
commit3760140b77f1cf568a7cdf824502ff6568e62fc1 (patch)
treeac1f463a3283310923233582177b15f479a430bf /Swiften/Queries
parentd1e7e135f41a9c7ad2188c93de911555ad4a3513 (diff)
downloadswift-3760140b77f1cf568a7cdf824502ff6568e62fc1.zip
swift-3760140b77f1cf568a7cdf824502ff6568e62fc1.tar.bz2
Client refactoring.
Removing inheritance from StanzaChannel to trim down the public API.
Diffstat (limited to 'Swiften/Queries')
-rw-r--r--Swiften/Queries/DummyIQChannel.h7
-rw-r--r--Swiften/Queries/IQChannel.h2
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;
};