4#ifndef QOHOSWINDOWMANAGER_H
5#define QOHOSWINDOWMANAGER_H
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>
13#include <qohosinternalwindowid_p.h>
14#include <qohosplugincore.h>
47 DocumentSelectMode documentSelectMode, ResultMultiplicity resultMultiplicity,
48 QOhosConsumer<QOhosOptional<OpenResult>> resultCallback);
52 QString defaultFilePath, QStringList fileSuffixChoices,
53 QOhosConsumer<QOhosOptional<SaveResult>> resultCallback);
57 QOhosConsumer<
bool> resultCallback);
67 static constexpr const char *
fullTypeName =
"@ohos.file.picker.DocumentSelectMode";
std::enable_if_t< qohosplugincore_h_detail::isQOhosOptional< QOhosInvokeResult< Func, T > >, QOhosInvokeResult< Func, T > > andThen(Func &&func) const
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)
int selectedFileSuffixChoiceIndex