diff options
Diffstat (limited to 'Swiften/Roster/GroupRosterItem.cpp')
-rw-r--r-- | Swiften/Roster/GroupRosterItem.cpp | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/Swiften/Roster/GroupRosterItem.cpp b/Swiften/Roster/GroupRosterItem.cpp index 2632444..7ce57d2 100644 --- a/Swiften/Roster/GroupRosterItem.cpp +++ b/Swiften/Roster/GroupRosterItem.cpp @@ -13,13 +13,21 @@ namespace Swift { GroupRosterItem::GroupRosterItem(const String& name, GroupRosterItem* parent) : RosterItem(name, parent) { - + expanded_ = true; } GroupRosterItem::~GroupRosterItem() { } +bool GroupRosterItem::isExpanded() const { + return expanded_; +} + +void GroupRosterItem::setExpanded(bool expanded) { + expanded_ = expanded; +} + const std::vector<RosterItem*>& GroupRosterItem::getChildren() const { return children_; } |