Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mumble-voip/mumble.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/mumble/GlobalShortcut_unix.h')
-rw-r--r--src/mumble/GlobalShortcut_unix.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/mumble/GlobalShortcut_unix.h b/src/mumble/GlobalShortcut_unix.h
index d94185280..4e13eab8b 100644
--- a/src/mumble/GlobalShortcut_unix.h
+++ b/src/mumble/GlobalShortcut_unix.h
@@ -10,6 +10,7 @@
#include "Global.h"
#include "GlobalShortcut.h"
+
#include <X11/X.h>
#define NUM_BUTTONS 0x2ff
@@ -17,6 +18,9 @@
struct _XDisplay;
typedef _XDisplay Display;
+class QFileSystemWatcher;
+class QSocketNotifier;
+
class GlobalShortcutX : public GlobalShortcutEngine {
private:
Q_OBJECT
@@ -37,10 +41,22 @@ public:
ButtonInfo buttonInfo(const QVariant &) Q_DECL_OVERRIDE;
void queryXIMasterList();
+
+ bool canDisable() override;
+ bool enabled() override;
+ void setEnabled(bool enabled) override;
public slots:
void displayReadyRead(int);
void inputReadyRead(int);
void directoryChanged(const QString &);
+
+protected:
+ bool m_enabled = true;
+ QFileSystemWatcher *m_watcher = nullptr;
+ QSocketNotifier *m_notifier = nullptr;
+
+ bool init();
+ void stop();
};
// These are macros that X11/X.h defines and that are causing problems in unity builds