Revision control

Copy as Markdown

// Copyright (C) 2016 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
// Qt-Security score:significant reason:default
#ifndef QCOCOANATIVEINTERFACE_H
#define QCOCOANATIVEINTERFACE_H
#include <ApplicationServices/ApplicationServices.h>
#include <qpa/qplatformnativeinterface.h>
#include <QtGui/qpixmap.h>
Q_MOC_INCLUDE(<QWindow>)
QT_BEGIN_NAMESPACE
class QWidget;
class QPrintEngine;
class QPlatformMenu;
class QPlatformMenuBar;
class QCocoaNativeInterface : public QPlatformNativeInterface
{
Q_OBJECT
public:
QCocoaNativeInterface();
void *nativeResourceForWindow(const QByteArray &resourceString, QWindow *window) override;
NativeResourceForIntegrationFunction nativeResourceFunctionForIntegration(const QByteArray &resource) override;
private:
Q_INVOKABLE void clearCurrentThreadCocoaEventDispatcherInterruptFlag();
static void registerDraggedTypes(const QStringList &types);
};
QT_END_NAMESPACE
#endif // QCOCOANATIVEINTERFACE_H