Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Toggle main menu visibility
Loading...
Searching...
No Matches
qiosfiledialog.h
Go to the documentation of this file.
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
// Qt-Security score:significant reason:default
4
5
#
ifndef
QIOSFILEDIALOG_H
6
#
define
QIOSFILEDIALOG_H
7
8
#
include
<
QtCore
/
qeventloop
.
h
>
9
#
include
<
qpa
/
qplatformdialoghelper
.
h
>
10
11
Q_FORWARD_DECLARE_OBJC_CLASS
(
UIViewController
);
12
13
QT_BEGIN_NAMESPACE
14
15
class
QIOSFileDialog :
public
QPlatformFileDialogHelper
16
{
17
public
:
18
QIOSFileDialog();
19
~QIOSFileDialog();
20
21
void
exec() override;
22
bool
defaultNameFilterDisables()
const
override {
return
false
; }
23
bool
show(Qt::WindowFlags windowFlags, Qt::WindowModality windowModality, QWindow *parent) override;
24
void
hide() override;
25
void
setDirectory(
const
QUrl &) override {}
26
QUrl directory()
const
override {
return
QUrl(); }
27
void
selectFile(
const
QUrl &) override {}
28
QList<QUrl> selectedFiles()
const
override;
29
void
setFilter() override {}
30
void
selectNameFilter(
const
QString &) override {}
31
QString selectedNameFilter()
const
override {
return
QString(); }
32
33
private
slots:
34
void
selectedFilesChanged(
const
QList<QUrl> &selection);
35
36
private
:
37
QUrl m_directory;
38
QList<QUrl> m_selection;
39
QEventLoop m_eventLoop;
40
UIViewController *m_viewController;
41
42
bool
showImagePickerDialog(QWindow *parent);
43
bool
showNativeDocumentPickerDialog(QWindow *parent);
44
void
showImagePickerDialog_helper(QWindow *parent);
45
};
46
47
QT_END_NAMESPACE
48
49
#
endif
// QIOSFILEDIALOG_H
QIOSFileEngineFactory
Definition
qiosfileenginefactory.h:15
QIosOptionalPlugin_NSPhotoLibrary
Definition
plugin.mm:14
QIosOptionalPlugin_NSPhotoLibrary::~QIosOptionalPlugin_NSPhotoLibrary
~QIosOptionalPlugin_NSPhotoLibrary()
Definition
plugin.mm:21
QIosOptionalPlugin_NSPhotoLibrary::createImagePickerController
UIViewController * createImagePickerController(QIOSFileDialog *fileDialog) const override
Definition
plugin.mm:23
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qsequentialanimationgroup.cpp:47
Q_FORWARD_DECLARE_OBJC_CLASS
Q_FORWARD_DECLARE_OBJC_CLASS(QT_MANGLE_NAMESPACE(RunLoopModeTracker))
Q_FORWARD_DECLARE_OBJC_CLASS
Q_FORWARD_DECLARE_OBJC_CLASS(UIViewController)
QIosOptionalPluginInterface_iid
#define QIosOptionalPluginInterface_iid
Definition
qiosoptionalplugininterface.h:16
qtbase
src
plugins
platforms
ios
qiosfiledialog.h
Generated on
for Qt by
1.18.0