diff options
author | Remko Tronçon <git@el-tramo.be> | 2009-07-11 14:16:48 (GMT) |
---|---|---|
committer | Remko Tronçon <git@el-tramo.be> | 2009-07-11 14:16:48 (GMT) |
commit | 2298c1327c745d89f9128a68af9eb506b09f10e4 (patch) | |
tree | f09389722afb0a21b8069c812e29b018ae53c645 /Swiften/Elements | |
parent | ffe87b9ebf565364634b58b8a6ab81bf32a8c090 (diff) | |
download | swift-contrib-2298c1327c745d89f9128a68af9eb506b09f10e4.zip swift-contrib-2298c1327c745d89f9128a68af9eb506b09f10e4.tar.bz2 |
Added EchoBot example.
Diffstat (limited to 'Swiften/Elements')
-rw-r--r-- | Swiften/Elements/Presence.h | 3 |
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; } |