summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'Swiften/Elements/PubSubRetract.h')
-rw-r--r--Swiften/Elements/PubSubRetract.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/Swiften/Elements/PubSubRetract.h b/Swiften/Elements/PubSubRetract.h
index 0d30c31..2629c16 100644
--- a/Swiften/Elements/PubSubRetract.h
+++ b/Swiften/Elements/PubSubRetract.h
@@ -10,8 +10,9 @@
#include <string>
#include <vector>
+#include <boost/optional.hpp>
+
#include <Swiften/Base/API.h>
-#include <Swiften/Base/Override.h>
#include <Swiften/Elements/Payload.h>
#include <Swiften/Elements/PubSubItem.h>
#include <Swiften/Elements/PubSubPayload.h>
@@ -44,11 +45,11 @@ namespace Swift {
this->items.push_back(value);
}
- bool isNotify() const {
+ boost::optional<bool> isNotify() const {
return notify;
}
- void setNotify(bool value) {
+ void setNotify(const boost::optional<bool>& value) {
this->notify = value ;
}
@@ -56,6 +57,6 @@ namespace Swift {
private:
std::string node;
std::vector< std::shared_ptr<PubSubItem> > items;
- bool notify;
+ boost::optional<bool> notify;
};
}