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