33 class MediaKeysInterface :
37 PIMPL(MediaKeysInterface)
40 explicit MediaKeysInterface(
PlayManager* playManager, QObject* parent =
nullptr);
41 ~MediaKeysInterface()
override;
46 [[nodiscard]]
virtual QString serviceName()
const = 0;
47 virtual QDBusPendingReply<> grabMediaKeyReply() = 0;
48 virtual void connectMediaKeys() = 0;
51 virtual void mediaKeyPressed(
const QString& appName,
const QString& key);
52 virtual void registerFinished(QDBusPendingCallWatcher* watcher);