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
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/qohoscommon_p.h>
8#include <QtCore/qpoint.h>
9#include <QtCore/qrect.h>
10#include <QtCore/qstringlist.h>
11#include <QtCore/qstring.h>
12#include <array>
13#include <qohosinternalwindowid_p.h>
14#include <qohosplugincore.h>
15#include <utility>
16#include <functional>
17
19
21{
22
28
33
38
44
46 QtOhos::InternalWindowId contextWinId, QStringList filters, QString defaultPath,
47 DocumentSelectMode documentSelectMode, ResultMultiplicity resultMultiplicity,
48 QOhosConsumer<QOhosOptional<OpenResult>> resultCallback);
49
51 QtOhos::InternalWindowId contextWinId, QStringList newFileNames,
52 QString defaultFilePath, QStringList fileSuffixChoices,
53 QOhosConsumer<QOhosOptional<SaveResult>> resultCallback);
54
56 QtOhos::InternalWindowId contextWinId, QString filePath,
57 QOhosConsumer<bool> resultCallback);
58
59}
60
61namespace QtOhos
62{
63
64template<>
66{
67 static constexpr const char *fullTypeName = "@ohos.file.picker.DocumentSelectMode";
73};
74
75}
76
77QT_END_NAMESPACE
78
79#endif // QOHOSWINDOWMANAGER_H
std::enable_if_t< qohosplugincore_h_detail::isQOhosOptional< QOhosInvokeResult< Func, T > >, QOhosInvokeResult< Func, T > > andThen(Func &&func) const
bool show(Qt::WindowFlags windowFlags, Qt::WindowModality windowModality, QWindow *parent) override
void showFileDialogAuthorization(QtOhos::InternalWindowId contextWinId, QString filePath, QOhosConsumer< bool > resultCallback)
void showFileDialogOpen(QtOhos::InternalWindowId contextWinId, QStringList filters, QString defaultPath, DocumentSelectMode documentSelectMode, ResultMultiplicity resultMultiplicity, QOhosConsumer< QOhosOptional< OpenResult > > resultCallback)
void showFileDialogSave(QtOhos::InternalWindowId contextWinId, QStringList newFileNames, QString defaultFilePath, QStringList fileSuffixChoices, QOhosConsumer< QOhosOptional< SaveResult > > resultCallback)
Combined button and popup list for selecting options.
QOhosWindowManager::ResultMultiplicity mapQFileDialogOptionsToOhosResultMultiplicity(const QFileDialogOptions &options)
QtOhos::InternalWindowId tryGetFocusedWindowInternalWindowId()
QOhosWindowManager::DocumentSelectMode mapQFileDialogOptionsToOhosDocumentSelectMode(const QFileDialogOptions &options)
QtOhos::InternalWindowId getQWindowInternalWindowIdOrFail(QWindow *qWindow)
QPlatformFileDialogHelper * makeQOhosPlatformFileDialogHelper()