specific_win.h 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  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. #include <windows.h>
  10. namespace Data {
  11. class LocationPoint;
  12. } // namespace Data
  13. namespace Platform {
  14. inline void IgnoreApplicationActivationRightNow() {
  15. }
  16. inline bool TrayIconSupported() {
  17. return true;
  18. }
  19. inline bool SkipTaskbarSupported() {
  20. return true;
  21. }
  22. inline bool PreventsQuit(Core::QuitReason reason) {
  23. return false;
  24. }
  25. inline void ActivateThisProcess() {
  26. }
  27. // 1 - secondary, 2 - primary.
  28. void SetWindowPriority(not_null<QWidget*> window, uint32 priority);
  29. [[nodiscard]] uint64 ActivationWindowId(not_null<QWidget*> window);
  30. // Activate window with windowId (if found) or the largest priority.
  31. void ActivateOtherProcess(uint64 processId, uint64 windowId);
  32. inline QString ApplicationIconName() {
  33. return {};
  34. }
  35. inline QString ExecutablePathForShortcuts() {
  36. return cExeDir() + cExeName();
  37. }
  38. namespace ThirdParty {
  39. void start();
  40. } // namespace ThirdParty
  41. } // namespace Platform
  42. inline void psCheckLocalSocket(const QString &) {
  43. }
  44. QString psAppDataPath();
  45. QString psAppDataPathOld();
  46. void psSendToMenu(bool send, bool silent = false);
  47. int psCleanup();
  48. int psFixPrevious();
  49. inline QByteArray psDownloadPathBookmark(const QString &path) {
  50. return QByteArray();
  51. }
  52. inline void psDownloadPathEnableAccess() {
  53. }
  54. bool psLaunchMaps(const Data::LocationPoint &point);