2014-07-08 14:24:21 +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.
|
2016-01-11 23:43:29 +08: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-07-08 14:24:21 +04:00
|
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
|
2019-07-04 15:33:11 +02:00
|
|
|
#include "platform/platform_specific.h"
|
|
|
|
|
2019-06-21 14:27:46 +02:00
|
|
|
namespace Data {
|
|
|
|
class LocationPoint;
|
|
|
|
} // namespace Data
|
2018-10-25 17:04:21 +04:00
|
|
|
|
2017-05-02 12:08:08 +03:00
|
|
|
namespace Platform {
|
|
|
|
|
2019-09-16 14:14:06 +03:00
|
|
|
inline void IgnoreApplicationActivationRightNow() {
|
|
|
|
}
|
|
|
|
|
2021-05-03 17:34:33 +04:00
|
|
|
inline void WriteCrashDumpDetails() {
|
|
|
|
}
|
|
|
|
|
2021-11-04 12:35:34 +04:00
|
|
|
inline void AutostartRequestStateFromSystem(Fn<void(bool)> callback) {
|
|
|
|
}
|
|
|
|
|
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() {
|
|
|
|
}
|
|
|
|
|
|
|
|
inline uint64 ActivationWindowId(not_null<QWidget*> window) {
|
|
|
|
return 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
inline void ActivateOtherProcess(uint64 processId, uint64 windowId) {
|
|
|
|
}
|
|
|
|
|
2017-05-02 12:08:08 +03:00
|
|
|
} // namespace Platform
|
|
|
|
|
2014-07-08 14:24:21 +04:00
|
|
|
inline void psCheckLocalSocket(const QString &serverName) {
|
2020-01-02 14:25:52 +03:00
|
|
|
QFile address(serverName);
|
2014-07-08 14:24:21 +04:00
|
|
|
if (address.exists()) {
|
|
|
|
address.remove();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
QString psAppDataPath();
|
2014-07-18 14:37:34 +04:00
|
|
|
void psSendToMenu(bool send, bool silent = false);
|
2014-07-08 14:24:21 +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() {
|
|
|
|
}
|
|
|
|
|
2015-06-03 21:13:01 +03:00
|
|
|
bool linuxMoveFile(const char *from, const char *to);
|
2016-02-17 19:37:21 +03:00
|
|
|
|
2019-06-21 14:27:46 +02:00
|
|
|
bool psLaunchMaps(const Data::LocationPoint &point);
|