1 /*
2 This file is part of Telegram Desktop,
3 the official desktop application for the Telegram messaging service.
4 
5 For license and copyright information please follow this link:
6 https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
7 */
8 #pragma once
9 
10 namespace Platform {
11 
12 class FileBookmark final {
13 public:
14 	FileBookmark(const QByteArray &bookmark);
15 	~FileBookmark();
16 
17 	[[nodiscard]] bool check() const;
18 	bool enable() const;
19 	void disable() const;
20 	[[nodiscard]] const QString &name(const QString &original) const;
21 	[[nodiscard]] QByteArray bookmark() const;
22 
23 private:
24 #ifdef OS_MAC_STORE
25 	struct Data;
26 	Data *data = nullptr;
27 #endif // OS_MAC_STORE
28 
29 };
30 
31 [[nodiscard]] QByteArray PathBookmark(const QString &path);
32 
33 } // namespace Platform
34