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
qohoswindowmanager.h
Go to the documentation of this file.
1
// Copyright (C) 2025 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
#
ifndef
QOHOSWINDOWMANAGER_H
5
#
define
QOHOSWINDOWMANAGER_H
6
7
#
include
<
QtCore
/
private
/
qcore_ohos_p
.
h
>
8
#
include
<
QtCore
/
private
/
qohoscommon_p
.
h
>
9
#
include
<
QtCore
/
qpoint
.
h
>
10
#
include
<
QtCore
/
qrect
.
h
>
11
#
include
<
QtCore
/
qstringlist
.
h
>
12
#
include
<
QtCore
/
qstring
.
h
>
13
#
include
<
qohosqpaenums
.
h
>
14
#
include
<
functional
>
15
#
include
<
optional
>
16
17
QT_BEGIN_NAMESPACE
18
19
namespace
QOhosWindowManager
20
{
21
22
using
DocumentSelectMode
=
QtOhosQpa
::
enums
::
ohos
::
file
::
picker
::
DocumentSelectMode
;
23
24
enum
class
ResultMultiplicity
{
25
SINGLE
,
26
MULTIPLE
,
27
};
28
29
struct
OpenResult
30
{
31
QStringList
selectedUrls
;
32
};
33
34
struct
SaveResult
35
{
36
QStringList
savedUrls
;
37
int
selectedFileSuffixChoiceIndex
;
38
};
39
40
void
showFileDialogOpen
(
41
QtOhos::QObjectThreadSafeRef contextWindowRef, QStringList filters, QString defaultPath,
42
DocumentSelectMode
documentSelectMode,
ResultMultiplicity
resultMultiplicity,
43
QOhosConsumer<std::optional<OpenResult>> resultCallback);
44
45
void
showFileDialogSave
(
46
QtOhos::QObjectThreadSafeRef contextWindowRef, QStringList newFileNames,
47
QString defaultFilePath, QStringList fileSuffixChoices,
48
QOhosConsumer<std::optional<SaveResult>> resultCallback);
49
50
}
51
52
QT_END_NAMESPACE
53
54
#
endif
// QOHOSWINDOWMANAGER_H
QT_BEGIN_NAMESPACE::QOhosPlatformFileDialogHelperImpl
Definition
qohosplatformfiledialoghelper.cpp:46
QT_BEGIN_NAMESPACE::QOhosPlatformFileDialogHelperImpl::selectedFiles
QList< QUrl > selectedFiles() const override
Definition
qohosplatformfiledialoghelper.cpp:124
QT_BEGIN_NAMESPACE::QOhosPlatformFileDialogHelperImpl::exec
void exec() override
Definition
qohosplatformfiledialoghelper.cpp:162
QT_BEGIN_NAMESPACE::QOhosPlatformFileDialogHelperImpl::selectedNameFilter
QString selectedNameFilter() const override
Definition
qohosplatformfiledialoghelper.cpp:118
QT_BEGIN_NAMESPACE::QOhosPlatformFileDialogHelperImpl::setFilter
void setFilter() override
Definition
qohosplatformfiledialoghelper.cpp:107
QT_BEGIN_NAMESPACE::QOhosPlatformFileDialogHelperImpl::defaultNameFilterDisables
bool defaultNameFilterDisables() const override
Definition
qohosplatformfiledialoghelper.cpp:83
QT_BEGIN_NAMESPACE::QOhosPlatformFileDialogHelperImpl::QOhosPlatformFileDialogHelperImpl
QOhosPlatformFileDialogHelperImpl()
Definition
qohosplatformfiledialoghelper.cpp:77
QT_BEGIN_NAMESPACE::QOhosPlatformFileDialogHelperImpl::directory
QUrl directory() const override
Definition
qohosplatformfiledialoghelper.cpp:95
QT_BEGIN_NAMESPACE::QOhosPlatformFileDialogHelperImpl::show
bool show(Qt::WindowFlags windowFlags, Qt::WindowModality windowModality, QWindow *parent) override
Definition
qohosplatformfiledialoghelper.cpp:195
QT_BEGIN_NAMESPACE::QOhosPlatformFileDialogHelperImpl::selectFile
void selectFile(const QUrl &filename) override
Definition
qohosplatformfiledialoghelper.cpp:101
QT_BEGIN_NAMESPACE::QOhosPlatformFileDialogHelperImpl::~QOhosPlatformFileDialogHelperImpl
~QOhosPlatformFileDialogHelperImpl()=default
QT_BEGIN_NAMESPACE::QOhosPlatformFileDialogHelperImpl::setDirectory
void setDirectory(const QUrl &directory) override
Definition
qohosplatformfiledialoghelper.cpp:89
QT_BEGIN_NAMESPACE::QOhosPlatformFileDialogHelperImpl::selectNameFilter
void selectNameFilter(const QString &filter) override
Definition
qohosplatformfiledialoghelper.cpp:112
QT_BEGIN_NAMESPACE::QOhosPlatformFileDialogHelperImpl::hide
void hide() override
Definition
qohosplatformfiledialoghelper.cpp:130
QOhosWindowManager
Definition
qohoswindowmanager.h:20
QOhosWindowManager::showFileDialogOpen
void showFileDialogOpen(QtOhos::QObjectThreadSafeRef contextWindowRef, QStringList filters, QString defaultPath, DocumentSelectMode documentSelectMode, ResultMultiplicity resultMultiplicity, QOhosConsumer< std::optional< OpenResult > > resultCallback)
Definition
qohoswindowmanager.cpp:113
QOhosWindowManager::ResultMultiplicity
ResultMultiplicity
Definition
qohoswindowmanager.h:24
QOhosWindowManager::ResultMultiplicity::SINGLE
@ SINGLE
Definition
qohoswindowmanager.h:25
QOhosWindowManager::ResultMultiplicity::MULTIPLE
@ MULTIPLE
Definition
qohoswindowmanager.h:26
QOhosWindowManager::DocumentSelectMode
QtOhosQpa::enums::ohos::file::picker::DocumentSelectMode DocumentSelectMode
Definition
qohoswindowmanager.h:22
QOhosWindowManager::showFileDialogSave
void showFileDialogSave(QtOhos::QObjectThreadSafeRef contextWindowRef, QStringList newFileNames, QString defaultFilePath, QStringList fileSuffixChoices, QOhosConsumer< std::optional< SaveResult > > resultCallback)
Definition
qohoswindowmanager.cpp:153
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qsequentialanimationgroup.cpp:47
QT_BEGIN_NAMESPACE::mapQFileDialogOptionsToOhosResultMultiplicity
QOhosWindowManager::ResultMultiplicity mapQFileDialogOptionsToOhosResultMultiplicity(const QFileDialogOptions &options)
Definition
qohosplatformfiledialoghelper.cpp:38
QT_BEGIN_NAMESPACE::mapQFileDialogOptionsToOhosDocumentSelectMode
QOhosWindowManager::DocumentSelectMode mapQFileDialogOptionsToOhosDocumentSelectMode(const QFileDialogOptions &options)
Definition
qohosplatformfiledialoghelper.cpp:19
QtOhosQpa::enums::ohos::file::picker
Definition
qohosqpaenums.h:177
QtOhosQpa::enums::ohos::file::picker::DocumentSelectMode
DocumentSelectMode
Definition
qohosqpaenums.h:179
QtOhosQpa::enums::ohos::file::picker::DocumentSelectMode::MIXED
@ MIXED
Definition
qohosqpaenums.h:182
QtOhosQpa::enums::ohos::file::picker::DocumentSelectMode::FOLDER
@ FOLDER
Definition
qohosqpaenums.h:181
QtOhosQpa::enums::ohos::file::picker::DocumentSelectMode::FILE
@ FILE
Definition
qohosqpaenums.h:180
QtOhosQpa::enums::ohos::file
Definition
qohosqpaenums.h:175
QtOhosQpa::enums::ohos
Definition
qohosqpaenums.h:48
QtOhosQpa::enums
Definition
qohosqpaenums.h:16
QtOhosQpa
Definition
qohosqpaenums.h:14
std
[33]
Definition
src_corelib_tools_qhash.cpp:421
makeQOhosPlatformFileDialogHelper
QPlatformFileDialogHelper * makeQOhosPlatformFileDialogHelper()
Definition
qohosplatformfiledialoghelper.cpp:254
QOhosWindowManager::OpenResult
Definition
qohoswindowmanager.h:30
QOhosWindowManager::OpenResult::selectedUrls
QStringList selectedUrls
Definition
qohoswindowmanager.h:31
QOhosWindowManager::SaveResult
Definition
qohoswindowmanager.h:35
QOhosWindowManager::SaveResult::selectedFileSuffixChoiceIndex
int selectedFileSuffixChoiceIndex
Definition
qohoswindowmanager.h:37
QOhosWindowManager::SaveResult::savedUrls
QStringList savedUrls
Definition
qohoswindowmanager.h:36
qtbase
src
plugins
platforms
ohos
qohoswindowmanager.h
Generated on
for Qt by
1.18.0