Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
qwasmlocalfileaccess_p.h
Go to the documentation of this file.
1// Copyright (C) 2019 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 QWASMLOCALFILEACCESS_P_H
5#define QWASMLOCALFILEACCESS_P_H
6
7//
8// W A R N I N G
9// -------------
10//
11// This file is not part of the Qt API. It exists purely as an
12// implementation detail. This header file may change from version to
13// version without notice, or even be removed.
14//
15// We mean it.
16//
17
18#include <private/qglobal_p.h>
19#include <cstdint>
20#include <functional>
21
23
24namespace QWasmLocalFileAccess {
25
27
28Q_CORE_EXPORT void openFiles(const std::string &accept, FileSelectMode fileSelectMode,
29 const std::function<void (int fileCount)> &fileDialogClosed,
30 const std::function<char *(uint64_t size, const std::string& name)> &acceptFile,
31 const std::function<void()> &fileDataReady);
32
33Q_CORE_EXPORT void openFile(const std::string &accept,
34 const std::function<void (bool fileSelected)> &fileDialogClosed,
35 const std::function<char *(uint64_t size, const std::string& name)> &acceptFile,
36 const std::function<void()> &fileDataReady);
37
38Q_CORE_EXPORT void saveFile(const QByteArray &data, const std::string &fileNameHint);
39Q_CORE_EXPORT void saveFile(const char *content, size_t size, const std::string &fileNameHint);
40
41} // namespace QWasmLocalFileAccess
42
44
45#endif // QWASMLOCALFILEACCESS_P_H
\inmodule QtCore
Definition qbytearray.h:57
Combined button and popup list for selecting options.
void saveFile(const QByteArray &data, const std::string &fileNameHint)
void openFile(const std::string &accept, const std::function< void(bool fileSelected)> &fileDialogClosed, const std::function< char *(uint64_t size, const std::string &name)> &acceptFile, const std::function< void()> &fileDataReady)
void openFiles(const std::string &accept, FileSelectMode fileSelectMode, const std::function< void(int fileCount)> &fileDialogClosed, const std::function< char *(uint64_t size, const std::string &name)> &acceptFile, const std::function< void()> &fileDataReady)
GLenum GLuint GLintptr GLsizeiptr size
[1]
GLint GLsizei GLsizei GLenum GLenum GLsizei void * data
GLuint name