From 389799c3433a17a7babaeb3365f1fb8c12ea12fe Mon Sep 17 00:00:00 2001 From: trialuser02 Date: Thu, 6 Mar 2014 10:53:52 +0000 Subject: added gnome hotkey plugin git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@4123 90c681e8-e032-0410-971d-27865f9a5e38 --- src/plugins/General/gnomehotkey/mediakeys.h | 32 +++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 src/plugins/General/gnomehotkey/mediakeys.h (limited to 'src/plugins/General/gnomehotkey/mediakeys.h') diff --git a/src/plugins/General/gnomehotkey/mediakeys.h b/src/plugins/General/gnomehotkey/mediakeys.h new file mode 100644 index 000000000..6fcada02e --- /dev/null +++ b/src/plugins/General/gnomehotkey/mediakeys.h @@ -0,0 +1,32 @@ +#ifndef MEDIAKEYS_H +#define MEDIAKEYS_H + +#include +#include + +class QDBusInterface; + +/** + @author Ilya Kotov +*/ +class MediaKeys : public QObject +{ + Q_OBJECT +public: + explicit MediaKeys(QObject *parent = 0); + virtual ~MediaKeys(); + +private slots: + QDBusPendingReply<> grabMediaPlayerKeys(const QString &application, uint time); + QDBusPendingReply<> releaseMediaPlayerKeys(const QString &application); + void onRegisterFinished(QDBusPendingCallWatcher *watcher); + void onKeyPressed(const QString &in0, const QString &in1); + +private: + QDBusInterface *m_interface; + bool m_isRegistered; + + +}; + +#endif // MEDIAKEYS_H -- cgit v1.2.3-13-gbd6f