1 | // Copyright (C) 2015 Paul Lemire (paul.lemire350@gmail.com) |
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 QT3DCORE_QEVENTFILTERSERVICE_H |
5 | #define QT3DCORE_QEVENTFILTERSERVICE_H |
6 | |
7 | // |
8 | // W A R N I N G |
9 | // ------------- |
10 | // |
11 | // This file is not part of the Qt API. It exists for the convenience |
12 | // of other Qt classes. This header file may change from version to |
13 | // version without notice, or even be removed. |
14 | // |
15 | // We mean it. |
16 | // |
17 | |
18 | #include <Qt3DCore/qt3dcore_global.h> |
19 | #include <Qt3DCore/private/qservicelocator_p.h> |
20 | |
21 | #include <vector> |
22 | |
23 | QT_BEGIN_NAMESPACE |
24 | |
25 | namespace Qt3DCore { |
26 | |
27 | class QEventFilterServicePrivate; |
28 | |
29 | class Q_3DCORESHARED_EXPORT QEventFilterService : public QAbstractServiceProvider |
30 | { |
31 | Q_OBJECT |
32 | public: |
33 | QEventFilterService(); |
34 | ~QEventFilterService(); |
35 | |
36 | void initialize(QObject *eventSource); |
37 | void shutdown(QObject *eventSource); |
38 | void registerEventFilter(QObject *eventFilter, int priority); |
39 | void unregisterEventFilter(QObject *eventFilter); |
40 | |
41 | private: |
42 | Q_DECLARE_PRIVATE(QEventFilterService) |
43 | }; |
44 | |
45 | } // Qt3DCore |
46 | |
47 | QT_END_NAMESPACE |
48 | |
49 | #endif // QT3DCORE_QEVENTFILTERSERVICE_H |
50 | |