aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/General/gnomehotkey/mediakeys.h
diff options
context:
space:
mode:
authortrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2014-03-06 10:53:52 +0000
committertrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2014-03-06 10:53:52 +0000
commit389799c3433a17a7babaeb3365f1fb8c12ea12fe (patch)
tree4b0092c3936016af0f01062a0a5d8475e793a4ea /src/plugins/General/gnomehotkey/mediakeys.h
parentbc4c331d2c1fe0060de15c999110803f41f62b29 (diff)
downloadqmmp-389799c3433a17a7babaeb3365f1fb8c12ea12fe.tar.gz
qmmp-389799c3433a17a7babaeb3365f1fb8c12ea12fe.tar.bz2
qmmp-389799c3433a17a7babaeb3365f1fb8c12ea12fe.zip
added gnome hotkey plugin
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@4123 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'src/plugins/General/gnomehotkey/mediakeys.h')
-rw-r--r--src/plugins/General/gnomehotkey/mediakeys.h32
1 files changed, 32 insertions, 0 deletions
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 <QObject>
+#include <QDBusPendingReply>
+
+class QDBusInterface;
+
+/**
+ @author Ilya Kotov <forkotov02@hotmail.ru>
+*/
+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