2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-23 18:57:12 +00:00

82 lines
1.6 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"
#include <signal.h>
2019-06-21 14:27:46 +02:00
namespace Data {
class LocationPoint;
} // namespace Data
namespace Platform {
inline void SetWatchingMediaKeys(bool watching) {
}
2020-06-01 12:34:51 +04:00
bool InFlatpak();
bool InSnap();
bool IsStaticBinary();
bool UseGtkIntegration();
bool IsGtkIntegrationForced();
bool AreQtPluginsBundled();
2020-01-29 21:41:42 +04:00
bool IsXDGDesktopPortalPresent();
bool UseXDGDesktopPortal();
bool CanOpenDirectoryWithPortal();
2020-01-29 21:41:42 +04:00
QString AppRuntimeDirectory();
QString GetLauncherBasename();
QString GetLauncherFilename();
QString GetIconName();
2019-09-16 14:14:06 +03:00
inline void IgnoreApplicationActivationRightNow() {
}
void InstallLauncher(bool force = false);
} // 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();
}
}
2016-01-30 21:24:42 +03:00
void psWriteDump();
QStringList psInitLogs();
void psClearInitLogs();
void psActivateProcess(uint64 pid = 0);
2014-07-08 14:24:21 +04:00
QString psLocalServerPrefix();
QString psAppDataPath();
void psAutoStart(bool start, bool silent = false);
void psSendToMenu(bool send, bool silent = false);
2014-07-08 14:24:21 +04:00
QRect psDesktopRect();
2014-07-08 14:24:21 +04:00
int psCleanup();
int psFixPrevious();
void psNewVersion();
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);