diff options
Diffstat (limited to 'Swiften/Roster/GroupRosterItem.h')
-rw-r--r-- | Swiften/Roster/GroupRosterItem.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Swiften/Roster/GroupRosterItem.h b/Swiften/Roster/GroupRosterItem.h index 096d053..67ced97 100644 --- a/Swiften/Roster/GroupRosterItem.h +++ b/Swiften/Roster/GroupRosterItem.h @@ -16,7 +16,7 @@ namespace Swift { class GroupRosterItem : public RosterItem { public: - GroupRosterItem(const String& name, GroupRosterItem* parent); + GroupRosterItem(const String& name, GroupRosterItem* parent, bool sortByStatus); virtual ~GroupRosterItem(); const std::vector<RosterItem*>& getChildren() const; const std::vector<RosterItem*>& getDisplayedChildren() const; @@ -25,7 +25,8 @@ class GroupRosterItem : public RosterItem { void removeAll(); void setDisplayed(RosterItem* item, bool displayed); boost::signal<void ()> onChildrenChanged; - static bool itemLessThan(const RosterItem* left, const RosterItem* right); + static bool itemLessThanWithStatus(const RosterItem* left, const RosterItem* right); + static bool itemLessThanWithoutStatus(const RosterItem* left, const RosterItem* right); void setExpanded(bool expanded); bool isExpanded() const; private: @@ -36,6 +37,7 @@ class GroupRosterItem : public RosterItem { bool expanded_; std::vector<RosterItem*> children_; std::vector<RosterItem*> displayedChildren_; + bool sortByStatus_; }; } |