summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'Swiften')
-rw-r--r--Swiften/Elements/Message.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/Swiften/Elements/Message.h b/Swiften/Elements/Message.h
index 19e3fbb..3b9145c 100644
--- a/Swiften/Elements/Message.h
+++ b/Swiften/Elements/Message.h
@@ -32,18 +32,22 @@ namespace Swift {
return subject->getText();
}
return "";
}
void setSubject(const std::string& subject) {
updatePayload(boost::make_shared<Subject>(subject));
}
+ bool hasSubject() {
+ return getPayload<Subject>();
+ }
+
std::string getBody() const {
boost::shared_ptr<Body> body(getPayload<Body>());
if (body) {
return body->getText();
}
return "";
}
void setBody(const std::string& body) {