summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'Swiften/Roster/RosterItemOperation.h')
-rw-r--r--Swiften/Roster/RosterItemOperation.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/Swiften/Roster/RosterItemOperation.h b/Swiften/Roster/RosterItemOperation.h
index a901fb4..e27e68b 100644
--- a/Swiften/Roster/RosterItemOperation.h
+++ b/Swiften/Roster/RosterItemOperation.h
@@ -17,6 +17,11 @@ class RosterItemOperation {
virtual ~RosterItemOperation() {};
bool requiresLookup() const {return requiresLookup_;};
const JID& lookupJID() const {return lookupJID_;};
+ /**
+ * This is called when iterating over possible subjects, so must check it's
+ * applying to the right items - even if requiresLookup() is true an item
+ * with the same bare JID but different full JID may be passed.
+ */
virtual void operator() (RosterItem*) const = 0;
private:
bool requiresLookup_;