|
|
|
|
@ -15,6 +15,12 @@
|
|
|
|
|
#include <QByteArray>
|
|
|
|
|
#include "SuspendResume.h"
|
|
|
|
|
|
|
|
|
|
#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
|
|
|
|
|
#define NEFResultType long
|
|
|
|
|
#else
|
|
|
|
|
#define NEFResultType qintptr
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
class SuspendResumeListener : public SuspendResumeListenerBase, private QAbstractNativeEventFilter
|
|
|
|
|
{
|
|
|
|
|
protected:
|
|
|
|
|
@ -22,5 +28,5 @@ protected:
|
|
|
|
|
virtual ~SuspendResumeListener();
|
|
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
bool nativeEventFilter(const QByteArray &event_type, void *message, long *result);
|
|
|
|
|
bool nativeEventFilter(const QByteArray &event_type, void *message, NEFResultType *result);
|
|
|
|
|
};
|
|
|
|
|
|