aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/General/gnomehotkey/mediakeys.h
diff options
context:
space:
mode:
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