2014-05-30 12:53:19 +04:00
|
|
|
/*
|
|
|
|
This file is part of Telegram Desktop,
|
2018-01-03 13:23:14 +03:00
|
|
|
the official desktop application for the Telegram messaging service.
|
2014-05-30 12:53:19 +04:00
|
|
|
|
2018-01-03 13:23:14 +03:00
|
|
|
For license and copyright information please follow this link:
|
|
|
|
https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
2014-05-30 12:53:19 +04:00
|
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
|
2019-07-04 15:33:11 +02:00
|
|
|
#include "platform/platform_specific.h"
|
2023-11-13 22:27:31 +04:00
|
|
|
|
|
|
|
#include <windows.h>
|
2016-03-24 15:57:10 +03:00
|
|
|
|
2019-06-21 14:27:46 +02:00
|
|
|
namespace Data {
|
|
|
|
class LocationPoint;
|
|
|
|
} // namespace Data
|
2018-10-11 18:54:57 +03:00
|
|
|
|
2017-05-02 12:08:08 +03:00
|
|
|
namespace Platform {
|
|
|
|
|
2019-09-16 14:14:06 +03:00
|
|
|
inline void IgnoreApplicationActivationRightNow() {
|
2017-05-02 12:08:08 +03:00
|
|
|
}
|
|
|
|
|
2020-07-22 16:10:17 +04:00
|
|
|
inline bool TrayIconSupported() {
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
2020-10-16 07:02:05 +04:00
|
|
|
inline bool SkipTaskbarSupported() {
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
2023-02-14 20:47:11 +04:00
|
|
|
inline bool PreventsQuit(Core::QuitReason reason) {
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2023-01-09 16:08:34 +04:00
|
|
|
inline void ActivateThisProcess() {
|
|
|
|
}
|
|
|
|
|
|
|
|
// 1 - secondary, 2 - primary.
|
|
|
|
void SetWindowPriority(not_null<QWidget*> window, uint32 priority);
|
|
|
|
|
|
|
|
[[nodiscard]] uint64 ActivationWindowId(not_null<QWidget*> window);
|
|
|
|
|
|
|
|
// Activate window with windowId (if found) or the largest priority.
|
|
|
|
void ActivateOtherProcess(uint64 processId, uint64 windowId);
|
|
|
|
|
2025-03-11 05:24:55 +00:00
|
|
|
inline QString ApplicationIconName() {
|
|
|
|
return {};
|
|
|
|
}
|
|
|
|
|
2023-06-16 00:15:23 +04:00
|
|
|
inline QString ExecutablePathForShortcuts() {
|
|
|
|
return cExeDir() + cExeName();
|
|
|
|
}
|
|
|
|
|
2017-04-13 20:59:05 +03:00
|
|
|
namespace ThirdParty {
|
|
|
|
|
2019-06-24 12:49:37 +02:00
|
|
|
void start();
|
2017-04-13 20:59:05 +03:00
|
|
|
|
|
|
|
} // namespace ThirdParty
|
2017-05-02 12:08:08 +03:00
|
|
|
} // namespace Platform
|
|
|
|
|
2014-05-30 12:53:19 +04:00
|
|
|
inline void psCheckLocalSocket(const QString &) {
|
|
|
|
}
|
|
|
|
|
|
|
|
QString psAppDataPath();
|
2014-09-30 07:11:09 -07:00
|
|
|
QString psAppDataPathOld();
|
2014-07-18 14:37:34 +04:00
|
|
|
void psSendToMenu(bool send, bool silent = false);
|
2014-05-30 12:53:19 +04:00
|
|
|
|
|
|
|
int psCleanup();
|
|
|
|
int psFixPrevious();
|
|
|
|
|
2015-11-26 20:34:52 +03:00
|
|
|
inline QByteArray psDownloadPathBookmark(const QString &path) {
|
|
|
|
return QByteArray();
|
|
|
|
}
|
|
|
|
inline void psDownloadPathEnableAccess() {
|
|
|
|
}
|
|
|
|
|
2019-06-21 14:27:46 +02:00
|
|
|
bool psLaunchMaps(const Data::LocationPoint &point);
|