diff options
author | Kevin Smith <git@kismith.co.uk> | 2010-10-04 16:08:10 (GMT) |
---|---|---|
committer | Kevin Smith <git@kismith.co.uk> | 2010-10-04 16:08:10 (GMT) |
commit | 8ca471e7304e813fa55ebf512a8f30f146fe6b41 (patch) | |
tree | e962968f1f7afc0bc6c73a776e3ee75e8c7deaba /Swiften/Roster/ContactRosterItem.h | |
parent | 026e8a67d871d99f4f0c0bddb6d16d12521f1e1c (diff) | |
download | swift-contrib-8ca471e7304e813fa55ebf512a8f30f146fe6b41.zip swift-contrib-8ca471e7304e813fa55ebf512a8f30f146fe6b41.tar.bz2 |
Assign contacts to groups.
Another patch will follow shortly to stop them appearing offline
after a roster change like this.
Resolves: #272
Release-Notes: It's now possible to assign your contacts to groups.
Diffstat (limited to 'Swiften/Roster/ContactRosterItem.h')
-rw-r--r-- | Swiften/Roster/ContactRosterItem.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Swiften/Roster/ContactRosterItem.h b/Swiften/Roster/ContactRosterItem.h index 21f6024..707dd42 100644 --- a/Swiften/Roster/ContactRosterItem.h +++ b/Swiften/Roster/ContactRosterItem.h @@ -36,6 +36,10 @@ class ContactRosterItem : public RosterItem { void applyPresence(const String& resource, boost::shared_ptr<Presence> presence); void clearPresence(); void calculateShownPresence(); + const std::vector<String> getGroups() const; + /** Only used so a contact can know about the groups it's in*/ + void addGroup(const String& group); + void removeGroup(const String& group); private: JID jid_; JID displayJID_; @@ -44,6 +48,7 @@ class ContactRosterItem : public RosterItem { std::map<String, boost::shared_ptr<Presence> > presences_; boost::shared_ptr<Presence> offlinePresence_; boost::shared_ptr<Presence> shownPresence_; + std::vector<String> groups_; }; } |