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 #ifdef Q_OS_MAC 11 #include "platform/mac/file_bookmark_mac.h" 12 #else // Q_OS_MAC 13 14 namespace Platform { 15 16 class FileBookmark { 17 public: FileBookmark(const QByteArray & bookmark)18 FileBookmark(const QByteArray &bookmark) { 19 } check()20 bool check() const { 21 return true; 22 } enable()23 bool enable() const { 24 return true; 25 } disable()26 void disable() const { 27 } name(const QString & original)28 const QString &name(const QString &original) const { 29 return original; 30 } bookmark()31 QByteArray bookmark() const { 32 return QByteArray(); 33 } 34 35 }; 36 PathBookmark(const QString & path)37[[nodiscard]] inline QByteArray PathBookmark(const QString &path) { 38 return QByteArray(); 39 } 40 41 } // namespace Platform 42 43 #endif // Q_OS_MAC 44