diff options
author | Edwin Mons <edwin.mons@isode.com> | 2014-12-10 16:50:27 (GMT) |
---|---|---|
committer | Swift Review <review@swift.im> | 2014-12-14 14:47:01 (GMT) |
commit | 6948ef81d66680858b88b1bc7dc67687310f57cf (patch) | |
tree | 3aeb638051bfac666924b7479ff201e095ae048c /Swiften/Elements | |
parent | b4a54583c4d575fe152122c21da616c3c942bbfd (diff) | |
download | swift-6948ef81d66680858b88b1bc7dc67687310f57cf.zip swift-6948ef81d66680858b88b1bc7dc67687310f57cf.tar.bz2 |
Add index element to ResultSet
The index element was missing, added it in Swiften and Sluift.
Change-Id: I709037fafcc5242c7c2e2fddb8469316c106d51a
Diffstat (limited to 'Swiften/Elements')
-rw-r--r-- | Swiften/Elements/ResultSet.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Swiften/Elements/ResultSet.h b/Swiften/Elements/ResultSet.h index e84be35..b7c5574 100644 --- a/Swiften/Elements/ResultSet.h +++ b/Swiften/Elements/ResultSet.h @@ -21,6 +21,9 @@ namespace Swift { void setCount(const boost::optional<int>& count) { count_ = count; } const boost::optional<int>& getCount() const { return count_; } + void setIndex(const boost::optional<int>& index) { index_ = index; } + const boost::optional<int>& getIndex() const { return index_; } + void setFirstIDIndex(const boost::optional<int>& firstIndex) { firstIndex_ = firstIndex; } const boost::optional<int>& getFirstIDIndex() const { return firstIndex_; } @@ -36,9 +39,11 @@ namespace Swift { void setAfter(const boost::optional<std::string>& after) { after_ = after; } const boost::optional<std::string>& getAfter() const { return after_; } + private: boost::optional<int> maxItems_; boost::optional<int> count_; + boost::optional<int> index_; boost::optional<int> firstIndex_; boost::optional<std::string> firstID_; boost::optional<std::string> lastID_; |