summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'Swiften/Elements/Form.cpp')
-rw-r--r--Swiften/Elements/Form.cpp15
1 files changed, 15 insertions, 0 deletions
diff --git a/Swiften/Elements/Form.cpp b/Swiften/Elements/Form.cpp
index c34b868..cf9ecf6 100644
--- a/Swiften/Elements/Form.cpp
+++ b/Swiften/Elements/Form.cpp
@@ -24,5 +24,20 @@ FormField::ref Form::getField(const std::string& name) const {
return FormField::ref();
}
+void Form::addReportedField(FormField::ref field) {
+ reportedFields_.push_back(field);
+}
+
+const std::vector<FormField::ref>& Form::getReportedFields() const {
+ return reportedFields_;
+}
+
+void Form::addItem(const Form::FormItem& item) {
+ items_.push_back(item);
+}
+
+const std::vector<Form::FormItem>& Form::getItems() const {
+ return items_;
+}
}