Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qiosoptionalplugininterface.h
Go to the documentation of this file.
1// Copyright (C) 2017 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// Qt-Security score:significant reason:default
4
5#ifndef QIOPLUGININTERFACE_H
6#define QIOPLUGININTERFACE_H
7
8#include <QtCore/QtPlugin>
9
10#include "qiosfiledialog.h"
11
13
14QT_BEGIN_NAMESPACE
15
16#define QIosOptionalPluginInterface_iid "org.qt-project.Qt.QPA.ios.optional"
17
18class QIosOptionalPluginInterface
19{
20public:
21 virtual ~QIosOptionalPluginInterface() {}
22 virtual void initPlugin() const {}
23 virtual UIViewController* createImagePickerController(QIOSFileDialog *) const { return nullptr; }
24};
25
26Q_DECLARE_INTERFACE(QIosOptionalPluginInterface, QIosOptionalPluginInterface_iid)
27
28QT_END_NAMESPACE
29
30#endif // QIOPLUGININTERFACE_H
UIViewController * createImagePickerController(QIOSFileDialog *fileDialog) const override
Definition plugin.mm:23
Q_FORWARD_DECLARE_OBJC_CLASS(QT_MANGLE_NAMESPACE(RunLoopModeTracker))
Q_FORWARD_DECLARE_OBJC_CLASS(UIViewController)
#define QIosOptionalPluginInterface_iid