2014-06-14 23:32:11 +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-06-14 23:32:11 +04:00
|
|
|
*/
|
2014-05-30 12:53:19 +04:00
|
|
|
#pragma once
|
|
|
|
|
2019-07-04 15:33:11 +02:00
|
|
|
#include "platform/platform_specific.h"
|
2017-03-04 13:23:56 +03:00
|
|
|
#include "platform/mac/specific_mac_p.h"
|
2014-06-14 23:32:11 +04:00
|
|
|
|
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 {
|
|
|
|
|
2020-07-22 16:10:17 +04:00
|
|
|
inline bool AutostartSupported() {
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2021-11-04 12:35:34 +04:00
|
|
|
inline void AutostartRequestStateFromSystem(Fn<void(bool)> callback) {
|
|
|
|
}
|
|
|
|
|
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 false;
|
|
|
|
}
|
|
|
|
|
2023-01-09 16:08:34 +04:00
|
|
|
void ActivateThisProcess();
|
|
|
|
|
|
|
|
inline uint64 ActivationWindowId(not_null<QWidget*> window) {
|
|
|
|
return 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
inline void ActivateOtherProcess(uint64 processId, uint64 windowId) {
|
|
|
|
}
|
|
|
|
|
2023-06-16 00:15:23 +04:00
|
|
|
inline QString ExecutablePathForShortcuts() {
|
|
|
|
return cExeDir() + cExeName();
|
|
|
|
}
|
|
|
|
|
2017-05-02 12:08:08 +03:00
|
|
|
namespace ThirdParty {
|
|
|
|
|
|
|
|
inline void start() {
|
|
|
|
}
|
|
|
|
|
|
|
|
} // namespace ThirdParty
|
|
|
|
} // namespace Platform
|
|
|
|
|
2014-05-30 12:53:19 +04:00
|
|
|
inline void psCheckLocalSocket(const QString &serverName) {
|
2020-01-02 14:25:52 +03:00
|
|
|
QFile address(serverName);
|
2014-05-30 12:53:19 +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-05-30 12:53:19 +04:00
|
|
|
|
|
|
|
int psCleanup();
|
|
|
|
int psFixPrevious();
|
|
|
|
|
2015-11-26 20:34:52 +03:00
|
|
|
void psDownloadPathEnableAccess();
|
|
|
|
QByteArray psDownloadPathBookmark(const QString &path);
|
|
|
|
QByteArray psPathBookmark(const QString &path);
|
|
|
|
|
2019-06-21 14:27:46 +02:00
|
|
|
bool psLaunchMaps(const Data::LocationPoint &point);
|