2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-27 12:47:16 +00:00
tdesktop/Telegram/SourceFiles/platform/linux/linux_gtk_integration.h

42 lines
922 B
C
Raw Normal View History

2021-01-10 07:51:38 +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
*/
#pragma once
#include "core/file_utilities.h"
namespace Platform {
namespace internal {
class GtkIntegration {
public:
static GtkIntegration *Instance();
void load();
2021-01-23 04:22:40 +04:00
[[nodiscard]] std::optional<int> scaleFactor() const;
2021-06-23 03:20:40 +04:00
[[nodiscard]] std::optional<bool> getFileDialog(
2021-01-10 07:51:38 +04:00
QPointer<QWidget> parent,
QStringList &files,
QByteArray &remoteContent,
const QString &caption,
const QString &filter,
2021-06-23 03:20:40 +04:00
::FileDialog::internal::Type type,
2021-01-10 07:51:38 +04:00
QString startFile) const;
2021-03-04 19:29:01 +04:00
2021-01-10 07:51:38 +04:00
[[nodiscard]] bool showOpenWithDialog(const QString &filepath) const;
[[nodiscard]] QImage getImageFromClipboard() const;
private:
GtkIntegration();
};
} // namespace internal
} // namespace Platform