8#include "../csapi/definitions/tag.h"
11constexpr inline auto FavouriteTag =
"m.favourite"_L1;
12constexpr inline auto LowPriorityTag =
"m.lowpriority"_L1;
13constexpr inline auto ServerNoticeTag =
"m.server_notice"_L1;
15using TagRecord [[deprecated(
"Use Tag from csapi/definitions/tag.h instead")]] = Tag;
17inline 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;
27inline bool operator==(
const Tag& lhs,
const Tag& rhs)
29 return std::is_eq(lhs <=> rhs);
32using TagsMap = QHash<QString, Tag>;
38 QSet<QString>, ignoredUsers,
"ignored_users")
#define DEFINE_SIMPLE_EVENT(Name_, Base_, TypeId_, ValueType_, GetterName_, JsonKey_)
Define a new event class with a single key-value pair in the content.