Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 10:07:42

0001 // Copyright (C) 2016 The Qt Company Ltd.
0002 // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
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 // Q_OS_WIN
0043 
0044 #endif // QWINEVENTNOTIFIER_H