2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 14:38:15 +00:00

Moved static functions from DocumentData to separated file.

This commit is contained in:
23rd
2021-06-14 07:35:51 +03:00
committed by John Preston
parent 6d0d399250
commit 583c3d3429
10 changed files with 324 additions and 195 deletions

View File

@@ -438,16 +438,3 @@ QString DocumentFileNameForSave(
bool forceSavingAs = false,
const QString &already = QString(),
const QDir &dir = QDir());
namespace Data {
[[nodiscard]] QString FileExtension(const QString &filepath);
[[nodiscard]] bool IsValidMediaFile(const QString &filepath);
[[nodiscard]] bool IsExecutableName(const QString &filepath);
[[nodiscard]] bool IsIpRevealingName(const QString &filepath);
base::binary_guard ReadImageAsync(
not_null<Data::DocumentMedia*> media,
FnMut<QImage(QImage)> postprocess,
FnMut<void(QImage&&)> done);
} // namespace Data