specific_linux.h 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  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. #include "platform/platform_specific.h"
  9. namespace Data {
  10. class LocationPoint;
  11. } // namespace Data
  12. namespace Platform {
  13. inline void IgnoreApplicationActivationRightNow() {
  14. }
  15. inline void WriteCrashDumpDetails() {
  16. }
  17. inline void AutostartRequestStateFromSystem(Fn<void(bool)> callback) {
  18. }
  19. inline bool PreventsQuit(Core::QuitReason reason) {
  20. return false;
  21. }
  22. inline void ActivateThisProcess() {
  23. }
  24. inline uint64 ActivationWindowId(not_null<QWidget*> window) {
  25. return 1;
  26. }
  27. inline void ActivateOtherProcess(uint64 processId, uint64 windowId) {
  28. }
  29. } // namespace Platform
  30. inline void psCheckLocalSocket(const QString &serverName) {
  31. QFile address(serverName);
  32. if (address.exists()) {
  33. address.remove();
  34. }
  35. }
  36. QString psAppDataPath();
  37. void psSendToMenu(bool send, bool silent = false);
  38. int psCleanup();
  39. int psFixPrevious();
  40. inline QByteArray psDownloadPathBookmark(const QString &path) {
  41. return QByteArray();
  42. }
  43. inline void psDownloadPathEnableAccess() {
  44. }
  45. bool linuxMoveFile(const char *from, const char *to);
  46. bool psLaunchMaps(const Data::LocationPoint &point);