diff options
author | Daniel Gultsch <daniel@gultsch.de> | 2014-05-22 12:57:47 +0200 |
---|---|---|
committer | Daniel Gultsch <daniel@gultsch.de> | 2014-05-22 12:57:47 +0200 |
commit | ad960b393d04b22265b449abac05d5d5bf2eab8a (patch) | |
tree | 0ef90dcdddd5258e9a02b26c8df70c8989b600d9 /src/eu/siacs/conversations/entities/Roster.java | |
parent | f0d2ca260e3f1910f27c57e20e130cd0cb123e94 (diff) |
implementet missing methods on the new roster mgmt
Diffstat (limited to '')
-rw-r--r-- | src/eu/siacs/conversations/entities/Roster.java | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/src/eu/siacs/conversations/entities/Roster.java b/src/eu/siacs/conversations/entities/Roster.java index 7c18d80a..1b4bc954 100644 --- a/src/eu/siacs/conversations/entities/Roster.java +++ b/src/eu/siacs/conversations/entities/Roster.java @@ -31,12 +31,23 @@ public class Roster { } public void clearPresences() { - // TODO Auto-generated method stub - + for(Contact contact : getContacts()) { + contact.clearPresences(); + } } public void markAllAsNotInRoster() { - + for(Contact contact : getContacts()) { + contact.resetOption(Contact.Options.IN_ROSTER); + } + } + + public void clearSystemAccounts() { + for(Contact contact : getContacts()) { + contact.setPhotoUri(null); + contact.setSystemName(null); + contact.setSystemAccount(null); + } } public List<Contact> getContacts() { |