| 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 | #pragma once |
| 5 | |
| 6 | #include <QtCore/QByteArray> |
| 7 | #include <QtGui/qpa/qplatformnativeinterface.h> |
| 8 | |
| 9 | #include "qxcbexport.h" |
| 10 | |
| 11 | QT_BEGIN_NAMESPACE |
| 12 | |
| 13 | class QXcbNativeInterface; |
| 14 | class Q_XCB_EXPORT QXcbNativeInterfaceHandler |
| 15 | { |
| 16 | public: |
| 17 | QXcbNativeInterfaceHandler(QXcbNativeInterface *nativeInterface); |
| 18 | virtual ~QXcbNativeInterfaceHandler(); |
| 19 | |
| 20 | virtual QPlatformNativeInterface::NativeResourceForIntegrationFunction nativeResourceFunctionForIntegration(const QByteArray &resource) const; |
| 21 | virtual QPlatformNativeInterface::NativeResourceForContextFunction nativeResourceFunctionForContext(const QByteArray &resource) const; |
| 22 | virtual QPlatformNativeInterface::NativeResourceForScreenFunction nativeResourceFunctionForScreen(const QByteArray &resource) const; |
| 23 | virtual QPlatformNativeInterface::NativeResourceForWindowFunction nativeResourceFunctionForWindow(const QByteArray &resource) const; |
| 24 | virtual QPlatformNativeInterface::NativeResourceForBackingStoreFunction nativeResourceFunctionForBackingStore(const QByteArray &resource) const; |
| 25 | |
| 26 | virtual QFunctionPointer platformFunction(const QByteArray &function) const; |
| 27 | protected: |
| 28 | QXcbNativeInterface *m_native_interface; |
| 29 | }; |
| 30 | |
| 31 | QT_END_NAMESPACE |
| 32 |
