mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-29 12:35:13 +02:00
This fixes media keys handling on (but not limited to, probably): * GNOME * Cinnamon * MATE * Budgie * Pantheon (elementaryOS) * Unity
36 lines
843 B
C++
36 lines
843 B
C++
/*
|
|
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
|
|
|
|
typedef struct _GDBusConnection GDBusConnection;
|
|
|
|
namespace Platform {
|
|
namespace internal {
|
|
|
|
class GSDMediaKeys {
|
|
public:
|
|
GSDMediaKeys();
|
|
|
|
GSDMediaKeys(const GSDMediaKeys &other) = delete;
|
|
GSDMediaKeys &operator=(const GSDMediaKeys &other) = delete;
|
|
GSDMediaKeys(GSDMediaKeys &&other) = delete;
|
|
GSDMediaKeys &operator=(GSDMediaKeys &&other) = delete;
|
|
|
|
~GSDMediaKeys();
|
|
|
|
private:
|
|
GDBusConnection *_dbusConnection = nullptr;
|
|
QString _service;
|
|
QString _objectPath;
|
|
QString _interface;
|
|
uint _signalId = 0;
|
|
bool _grabbed = false;
|
|
};
|
|
|
|
} // namespace internal
|
|
} // namespace Platform
|