diff options
Diffstat (limited to 'Swift/Controllers/Roster/Roster.h')
| -rw-r--r-- | Swift/Controllers/Roster/Roster.h | 9 | 
1 files changed, 5 insertions, 4 deletions
| diff --git a/Swift/Controllers/Roster/Roster.h b/Swift/Controllers/Roster/Roster.h index e035169..c25feaa 100644 --- a/Swift/Controllers/Roster/Roster.h +++ b/Swift/Controllers/Roster/Roster.h | |||
| @@ -1,25 +1,26 @@ | |||
| 1 | /* | 1 | /* | 
| 2 | * Copyright (c) 2010-2013 Isode Limited. | 2 | * Copyright (c) 2010-2015 Isode Limited. | 
| 3 | * All rights reserved. | 3 | * All rights reserved. | 
| 4 | * See the COPYING file for more information. | 4 | * See the COPYING file for more information. | 
| 5 | */ | 5 | */ | 
| 6 | 6 | ||
| 7 | #pragma once | 7 | #pragma once | 
| 8 | 8 | ||
| 9 | #include <map> | ||
| 10 | #include <set> | ||
| 9 | #include <string> | 11 | #include <string> | 
| 10 | #include <vector> | 12 | #include <vector> | 
| 11 | #include <map> | ||
| 12 | 13 | ||
| 13 | #include <boost/shared_ptr.hpp> | 14 | #include <boost/shared_ptr.hpp> | 
| 14 | 15 | ||
| 15 | #include <Swiften/Base/boost_bsignals.h> | 16 | #include <Swiften/Base/boost_bsignals.h> | 
| 16 | #include <Swiften/JID/JID.h> | 17 | #include <Swiften/JID/JID.h> | 
| 17 | 18 | ||
| 19 | #include <Swift/Controllers/Roster/ContactRosterItem.h> | ||
| 18 | #include <Swift/Controllers/Roster/ItemOperations/RosterItemOperation.h> | 20 | #include <Swift/Controllers/Roster/ItemOperations/RosterItemOperation.h> | 
| 19 | #include <Swift/Controllers/Roster/RosterFilter.h> | 21 | #include <Swift/Controllers/Roster/RosterFilter.h> | 
| 20 | #include <Swift/Controllers/Roster/ContactRosterItem.h> | ||
| 21 | 22 | ||
| 22 | namespace Swift { | 23 | namespace Swift { | 
| 23 | 24 | ||
| 24 | class RosterItem; | 25 | class RosterItem; | 
| 25 | class GroupRosterItem; | 26 | class GroupRosterItem; | 
| @@ -38,11 +39,11 @@ class Roster { | |||
| 38 | void applyOnItems(const RosterItemOperation& operation); | 39 | void applyOnItems(const RosterItemOperation& operation); | 
| 39 | void applyOnAllItems(const RosterItemOperation& operation); | 40 | void applyOnAllItems(const RosterItemOperation& operation); | 
| 40 | void applyOnItem(const RosterItemOperation& operation, const JID& jid); | 41 | void applyOnItem(const RosterItemOperation& operation, const JID& jid); | 
| 41 | void addFilter(RosterFilter* filter); | 42 | void addFilter(RosterFilter* filter); | 
| 42 | void removeFilter(RosterFilter* filter); | 43 | void removeFilter(RosterFilter* filter); | 
| 43 | GroupRosterItem* getRoot(); | 44 | GroupRosterItem* getRoot() const; | 
| 44 | std::vector<RosterFilter*> getFilters() {return filters_;} | 45 | std::vector<RosterFilter*> getFilters() {return filters_;} | 
| 45 | boost::signal<void (GroupRosterItem*)> onChildrenChanged; | 46 | boost::signal<void (GroupRosterItem*)> onChildrenChanged; | 
| 46 | boost::signal<void (GroupRosterItem*)> onGroupAdded; | 47 | boost::signal<void (GroupRosterItem*)> onGroupAdded; | 
| 47 | boost::signal<void (RosterItem*)> onDataChanged; | 48 | boost::signal<void (RosterItem*)> onDataChanged; | 
| 48 | boost::signal<void (JID&)> onVCardUpdateRequested; | 49 | boost::signal<void (JID&)> onVCardUpdateRequested; | 
 Swift
 Swift