2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-23 10:47:11 +00:00

52 lines
1.1 KiB
C
Raw Normal View History

2014-07-08 14:24:21 +04:00
/*
This file is part of Telegram Desktop,
the official desktop application for the Telegram messaging service.
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
#include "platform/platform_specific.h"
2019-06-21 14:27:46 +02:00
namespace Data {
class LocationPoint;
} // namespace Data
namespace Platform {
2019-09-16 14:14:06 +03:00
inline void IgnoreApplicationActivationRightNow() {
}
2021-05-03 17:34:33 +04:00
inline void WriteCrashDumpDetails() {
}
inline void AutostartRequestStateFromSystem(Fn<void(bool)> callback) {
}
} // namespace Platform
2014-07-08 14:24:21 +04:00
inline void psCheckLocalSocket(const QString &serverName) {
QFile address(serverName);
2014-07-08 14:24:21 +04:00
if (address.exists()) {
address.remove();
}
}
void psActivateProcess(uint64 pid = 0);
2014-07-08 14:24:21 +04:00
QString psAppDataPath();
void psSendToMenu(bool send, bool silent = false);
2014-07-08 14:24:21 +04:00
int psCleanup();
int psFixPrevious();
inline QByteArray psDownloadPathBookmark(const QString &path) {
return QByteArray();
}
inline void psDownloadPathEnableAccess() {
}
bool linuxMoveFile(const char *from, const char *to);
2019-06-21 14:27:46 +02:00
bool psLaunchMaps(const Data::LocationPoint &point);