Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
qwineventnotifier.h
Go to the documentation of this file.
1// Copyright (C) 2016 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
4#ifndef QWINEVENTNOTIFIER_H
5#define QWINEVENTNOTIFIER_H
6
7#include "QtCore/qobject.h"
8
9#if defined(Q_OS_WIN) || defined(Q_QDOC)
10
12
14class Q_CORE_EXPORT QWinEventNotifier : public QObject
15{
17 Q_DECLARE_PRIVATE(QWinEventNotifier)
18 typedef Qt::HANDLE HANDLE;
19
20public:
21 explicit QWinEventNotifier(QObject *parent = nullptr);
22 explicit QWinEventNotifier(HANDLE hEvent, QObject *parent = nullptr);
24
25 void setHandle(HANDLE hEvent);
26 HANDLE handle() const;
27
28 bool isEnabled() const;
29
30public Q_SLOTS:
31 void setEnabled(bool enable);
32
34 void activated(HANDLE hEvent, QPrivateSignal);
35
36protected:
37 bool event(QEvent *e) override;
38};
39
41
42#endif // Q_OS_WIN
43
44#endif // QWINEVENTNOTIFIER_H
\inmodule QtCore
Definition qcoreevent.h:45
\inmodule QtCore
Definition qobject.h:103
\inmodule QtCore
Combined button and popup list for selecting options.
bool isEnabled()
void * HANDLE
GLuint64 GLenum void * handle
GLboolean enable
struct _cl_event * event
#define Q_OBJECT
#define Q_SLOTS
#define Q_SIGNALS