/* This file is part of Telegram Desktop, the official desktop application for the Telegram messaging service. For license and copyright information please follow this link: https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL */ #pragma once #include "dialogs/dialogs_key.h" namespace Data { class Folder; } // namespace Data namespace Dialogs { class Row; class FakeRow; enum class SubItem : int { Type, Name, Warning, Premium, Verified, Activity, Muted, Pinned, Draft, Unread, Mention, Sender, Message, Delivery, Reactions, Time, Sponsored, Stories, Autodelete, Subscription, Closed, Forward, Folders, Count, }; [[nodiscard]] QString RowAccessibilityName( not_null row, FilterId filterId); [[nodiscard]] QString CollapsedRowAccessibilityName( not_null folder); [[nodiscard]] QString SubItemLabel(SubItem item); [[nodiscard]] QString SubItemValue( not_null row, FilterId filterId, SubItem item); [[nodiscard]] std::vector ActiveSubItems( not_null row, FilterId filterId); [[nodiscard]] QString HashtagAccessibilityName(QStringView tag); [[nodiscard]] QString PeerSearchResultAccessibilityName( not_null peer, bool sponsored); [[nodiscard]] QString SearchedMessageAccessibilityName( not_null row); } // namespace Dialogs