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
qohosapppermissions_p.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 QOHOSAPPPERMISSIONS_P_H
5#define QOHOSAPPPERMISSIONS_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 <QtCore/private/qcore_ohos_p.h>
19#include <QtCore/private/qohoscommon_p.h>
20#include <QtCore/private/qohospermissionshelper_p.h>
21#include <QtCore/qglobal.h>
22#include <string>
23
24QT_BEGIN_NAMESPACE
25
26namespace QOhosAppPermissions {
27
29
31 QOhosJsState &jsState, const std::string &permissionName,
32 QOhosConsumer<QOhosJsState &, bool> resultConsumer);
33
35 QOhosJsState &jsState, const std::string &permissionName,
36 QOhosConsumer<QOhosJsState &, bool> resultConsumer);
37
39 QOhosJsState &jsState, QNapi::Object qAbility, const std::string &permissionName,
40 QOhosConsumer<QOhosJsState &, bool> resultConsumer);
41
43 QOhosJsState &jsState, const std::vector<std::string> &permissionNames,
45
47 QOhosJsState &jsState, QNapi::Object qAbility,
48 const std::vector<std::string> &permissionNames,
50
52 QOhosJsState &jsState, const std::vector<std::string> &permissionNames,
54
56 QOhosJsState &jsState, QNapi::Object qAbility,
57 const std::vector<std::string> &permissionNames,
59
60}
61
62QT_END_NAMESPACE
63
64#endif
void requestAppPermissionsOnSetting(QOhosJsState &jsState, QNapi::Object qAbility, const std::vector< std::string > &permissionNames, QOhosConsumer< QOhosJsState &, std::vector< bool > > resultConsumer)
void requestAppPermissionsFromUserWithResult(QOhosJsState &jsState, const std::vector< std::string > &permissionNames, QOhosConsumer< QOhosJsState &, std::vector< AppPermissionResult > > resultConsumer)
void requestAppPermissionsOnSetting(QOhosJsState &jsState, const std::vector< std::string > &permissionNames, QOhosConsumer< QOhosJsState &, std::vector< bool > > resultConsumer)
void requestAppPermissionFromUser(QOhosJsState &jsState, QNapi::Object qAbility, const std::string &permissionName, QOhosConsumer< QOhosJsState &, bool > resultConsumer)
void requestAppPermissionsFromUserWithResult(QOhosJsState &jsState, QNapi::Object qAbility, const std::vector< std::string > &permissionNames, QOhosConsumer< QOhosJsState &, std::vector< AppPermissionResult > > resultConsumer)
void checkAppPermissionGrantedWithConsumer(QOhosJsState &jsState, const std::string &permissionName, QOhosConsumer< QOhosJsState &, bool > resultConsumer)
void requestAppPermissionFromUser(QOhosJsState &jsState, const std::string &permissionName, QOhosConsumer< QOhosJsState &, bool > resultConsumer)