summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEdwin Mons <edwin.mons@isode.com>2014-10-30 09:22:16 (GMT)
committerSwift Review <review@swift.im>2014-10-30 22:40:07 (GMT)
commit9b762e1cf26cfe12cf601d9ea95cf91b3f95c799 (patch)
tree854e8e602a1e98b38d66cc716f4ef878620d531b /Swiften/Elements
parent8096f80861667381b777af774cfd446d6fc8cda8 (diff)
downloadswift-9b762e1cf26cfe12cf601d9ea95cf91b3f95c799.zip
swift-9b762e1cf26cfe12cf601d9ea95cf91b3f95c799.tar.bz2
Add node attribute to MAMQuery
Added node to MAMQuery, the serializers, unit tests and the Sluift ElementConvertor. Test-Information: Unit tests pass on OS X 10.9 Sluift script querying a pubsub archive sent the right query. Change-Id: If8620104a11b402d7b51a6e9b34ccbe1b7e6d15a
Diffstat (limited to 'Swiften/Elements')
-rw-r--r--Swiften/Elements/MAMQuery.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/Swiften/Elements/MAMQuery.h b/Swiften/Elements/MAMQuery.h
index 09b5af0..12148c8 100644
--- a/Swiften/Elements/MAMQuery.h
+++ b/Swiften/Elements/MAMQuery.h
@@ -24,6 +24,9 @@ namespace Swift {
void setQueryID(const boost::optional<std::string>& queryID) { queryID_ = queryID; }
const boost::optional<std::string>& getQueryID() const { return queryID_; }
+ void setNode(const boost::optional<std::string>& node) { node_ = node; }
+ const boost::optional<std::string>& getNode() const { return node_; }
+
void setForm(boost::shared_ptr<Form> form) { form_ = form; }
const boost::shared_ptr<Form>& getForm() const { return form_; }
@@ -32,6 +35,7 @@ namespace Swift {
private:
boost::optional<std::string> queryID_;
+ boost::optional<std::string> node_;
boost::shared_ptr<Form> form_;
boost::shared_ptr<ResultSet> resultSet_;
};