platform_file_bookmark.h 814 B

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