8 #include "../csapi/definitions/tag.h"
11 constexpr inline auto FavouriteTag =
"m.favourite"_L1;
12 constexpr inline auto LowPriorityTag =
"m.lowpriority"_L1;
13 constexpr inline auto ServerNoticeTag =
"m.server_notice"_L1;
15 using TagRecord [[deprecated(
"Use Tag from csapi/definitions/tag.h instead")]] = Tag;
17 inline std::partial_ordering operator<=>(
18 const Tag& lhs,
const Tag& rhs)
22 return (lhs.order && !rhs.order) ? std::partial_ordering::less
23 : (!lhs.order && rhs.order) ? std::partial_ordering::greater
24 : *lhs.order <=> *rhs.order;
27 inline bool operator==(
const Tag& lhs,
const Tag& rhs)
29 return std::is_eq(lhs <=> rhs);
32 using TagsMap = QHash<QString, Tag>;
38 QSet<QString>, ignoredUsers,
"ignored_users")