summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemko Tronçon <git@el-tramo.be>2009-07-11 14:16:48 (GMT)
committerRemko Tronçon <git@el-tramo.be>2009-07-11 14:16:48 (GMT)
commit2298c1327c745d89f9128a68af9eb506b09f10e4 (patch)
treef09389722afb0a21b8069c812e29b018ae53c645 /Swiften/Elements/Presence.h
parentffe87b9ebf565364634b58b8a6ab81bf32a8c090 (diff)
downloadswift-contrib-2298c1327c745d89f9128a68af9eb506b09f10e4.zip
swift-contrib-2298c1327c745d89f9128a68af9eb506b09f10e4.tar.bz2
Added EchoBot example.
Diffstat (limited to 'Swiften/Elements/Presence.h')
-rw-r--r--Swiften/Elements/Presence.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/Swiften/Elements/Presence.h b/Swiften/Elements/Presence.h
index 1243bca..002ed0e 100644
--- a/Swiften/Elements/Presence.h
+++ b/Swiften/Elements/Presence.h
@@ -13,6 +13,9 @@ namespace Swift {
enum Type { Available, Error, Probe, Subscribe, Subscribed, Unavailable, Unsubscribe, Unsubscribed };
Presence() : type_(Available) /*, showType_(Online)*/ {}
+ Presence(const String& status) : type_(Available) {
+ setStatus(status);
+ }
Type getType() const { return type_; }
void setType(Type type) { type_ = type; }