| 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 | #include "qxcbnativeinterfacehandler.h" |
| 5 | |
| 6 | #include "qxcbnativeinterface.h" |
| 7 | |
| 8 | QT_BEGIN_NAMESPACE |
| 9 | |
| 10 | QXcbNativeInterfaceHandler::QXcbNativeInterfaceHandler(QXcbNativeInterface *nativeInterface) |
| 11 | : m_native_interface(nativeInterface) |
| 12 | { |
| 13 | m_native_interface->addHandler(handler: this); |
| 14 | } |
| 15 | QXcbNativeInterfaceHandler::~QXcbNativeInterfaceHandler() |
| 16 | { |
| 17 | m_native_interface->removeHandler(handler: this); |
| 18 | } |
| 19 | |
| 20 | QPlatformNativeInterface::NativeResourceForIntegrationFunction QXcbNativeInterfaceHandler::nativeResourceFunctionForIntegration(const QByteArray &resource) const |
| 21 | { |
| 22 | Q_UNUSED(resource); |
| 23 | return nullptr; |
| 24 | } |
| 25 | |
| 26 | QPlatformNativeInterface::NativeResourceForContextFunction QXcbNativeInterfaceHandler::nativeResourceFunctionForContext(const QByteArray &resource) const |
| 27 | { |
| 28 | Q_UNUSED(resource); |
| 29 | return nullptr; |
| 30 | } |
| 31 | |
| 32 | QPlatformNativeInterface::NativeResourceForScreenFunction QXcbNativeInterfaceHandler::nativeResourceFunctionForScreen(const QByteArray &resource) const |
| 33 | { |
| 34 | Q_UNUSED(resource); |
| 35 | return nullptr; |
| 36 | } |
| 37 | |
| 38 | QPlatformNativeInterface::NativeResourceForWindowFunction QXcbNativeInterfaceHandler::nativeResourceFunctionForWindow(const QByteArray &resource) const |
| 39 | { |
| 40 | Q_UNUSED(resource); |
| 41 | return nullptr; |
| 42 | } |
| 43 | |
| 44 | QPlatformNativeInterface::NativeResourceForBackingStoreFunction QXcbNativeInterfaceHandler::nativeResourceFunctionForBackingStore(const QByteArray &resource) const |
| 45 | { |
| 46 | Q_UNUSED(resource); |
| 47 | return nullptr; |
| 48 | } |
| 49 | |
| 50 | QFunctionPointer QXcbNativeInterfaceHandler::platformFunction(const QByteArray &function) const |
| 51 | { |
| 52 | Q_UNUSED(function); |
| 53 | return nullptr; |
| 54 | } |
| 55 | |
| 56 | QT_END_NAMESPACE |
| 57 |
