20 QString latestEventId;
22 bool localUserParticipated = {};
32class QUOTIENT_API ThreadInfos :
private QHash<QString, ThreadInfo> {
34 using base_type = QHash<QString, ThreadInfo>;
35 using const_iterator = base_type::const_iterator;
36 using key_type = base_type::key_type;
37 using mapped_type = base_type::mapped_type;
39 using UpdateResult = std::pair<ThreadInfo,
bool>;
50 UpdateResult updateFrom(
const TimelineItem &eventItem);
54 base_type::const_iterator begin()
const {
return base_type::begin(); }
55 base_type::const_iterator end()
const {
return base_type::end(); }
56 base_type::const_iterator find(
const key_type &k)
const {
return base_type::find(k); }
57 mapped_type operator[](
const key_type &k)
const {
return base_type::operator[](k); }
59 using base_type::cbegin, base_type::cend, base_type::constFind, base_type::value;
60 using base_type::contains, base_type::size, base_type::isEmpty;
66 void setRoom(Room* r) { room = r; }