mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2026-07-25 06:54:43 +00:00
a027284826
Fixed #28915.
38 lines
793 B
C++
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
|