File indexing completed on 2025-01-18 10:07:42
0001
0002
0003
0004 #ifndef QWINEVENTNOTIFIER_H
0005 #define QWINEVENTNOTIFIER_H
0006
0007 #include "QtCore/qobject.h"
0008
0009 #if defined(Q_OS_WIN) || defined(Q_QDOC)
0010
0011 QT_BEGIN_NAMESPACE
0012
0013 class QWinEventNotifierPrivate;
0014 class Q_CORE_EXPORT QWinEventNotifier : public QObject
0015 {
0016 Q_OBJECT
0017 Q_DECLARE_PRIVATE(QWinEventNotifier)
0018 typedef Qt::HANDLE HANDLE;
0019
0020 public:
0021 explicit QWinEventNotifier(QObject *parent = nullptr);
0022 explicit QWinEventNotifier(HANDLE hEvent, QObject *parent = nullptr);
0023 ~QWinEventNotifier();
0024
0025 void setHandle(HANDLE hEvent);
0026 HANDLE handle() const;
0027
0028 bool isEnabled() const;
0029
0030 public Q_SLOTS:
0031 void setEnabled(bool enable);
0032
0033 Q_SIGNALS:
0034 void activated(HANDLE hEvent, QPrivateSignal);
0035
0036 protected:
0037 bool event(QEvent *e) override;
0038 };
0039
0040 QT_END_NAMESPACE
0041
0042 #endif
0043
0044 #endif