Files
AyuGramDesktop/Telegram/SourceFiles/ui/text/format_song_name.h
T
2025-12-13 13:35:56 +04:00

38 lines
793 B
C++

/*
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
namespace Ui::Text {
class FormatSongName final {
public:
struct ComposedName {
QString title;
QString performer;
};
FormatSongName(
const QString &filename,
const QString &songTitle,
const QString &songPerformer);
[[nodiscard]] ComposedName composedName() const;
[[nodiscard]] QString string() const;
[[nodiscard]] TextWithEntities textWithEntities(
bool boldOnlyPerformer = false) const;
void setNoDash(bool noDash);
private:
const ComposedName _composedName;
bool _noDash = false;
};
} // namespace Ui::Text