#ifndef NATIVEEVENTFILTER_H #define NATIVEEVENTFILTER_H #include #include #include #include #include #include #include #include #include #include "hotkeyhud.h" #include "endsessionwait.h" #include "dbusevents.h" #include "rundialog.h" #include #include #include #include #include #include #include #include "mainwindow.h" #include "screenshotwindow.h" #include #include #include class NativeEventFilter : public QObject, public QAbstractNativeEventFilter { Q_OBJECT public: explicit NativeEventFilter(QObject* parent = 0); ~NativeEventFilter(); signals: void SysTrayEvent(long opcode, long data2, long data3, long data4); public slots: private: bool nativeEventFilter(const QByteArray &eventType, void *message, long *result); QTime lastPress; HotkeyHud* Hotkeys; bool isEndSessionBoxShowing = false; bool ignoreSuper = false; QSettings settings; }; #endif // NATIVEEVENTFILTER_H