diff options
| author | Tobias Markmann <tm@ayena.de> | 2015-10-01 10:01:41 (GMT) |
|---|---|---|
| committer | Swift Review <review@swift.im> | 2015-10-14 16:36:29 (GMT) |
| commit | 192e8631d4c9a196e13a20d22f57c392bac9dd73 (patch) | |
| tree | 408ea2d461eaff1ca3d97ee0e00edb2e1d01754f /Swift/Controllers/Roster/Roster.h | |
| parent | b00c84574fc730eeeabb57df1f17b54855218193 (diff) | |
| download | swift-192e8631d4c9a196e13a20d22f57c392bac9dd73.zip swift-192e8631d4c9a196e13a20d22f57c392bac9dd73.tar.bz2 | |
Annotate getter method as const as it does not write anything
Test-Information:
Still builds and unit tests pass.
Change-Id: I472491184ba10ec3bdbd4cb94613768639ac6f57
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