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
qohosfileshare_p.h
Go to the documentation of this file.
1// Copyright (C) 2026 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 QOHOSFILESHARE_P_H
5#define QOHOSFILESHARE_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/qlist.h>
19#include <QtCore/qstring.h>
20#include <QtOhosAppKit/private/qohosoperationstatus_p.h>
21#include <QtOhosAppKit/private/qtohosappkitglobal_p.h>
22#include <memory>
23
24QT_BEGIN_NAMESPACE
25
26namespace QtOhosAppKit {
27
28namespace FileShare {
29
31
32enum class OperationMode {
33 Read = 1 << 0,
34 Write = 1 << 1,
35};
38
40
48Q_ENUM_NS(PathPolicyError)
49
55
62
64{
66 bool result = false;
67};
68
69class Q_OHOSAPPKIT_EXPORT ActionResult
70{
71public:
74
75 virtual ~ActionResult();
76
77protected:
79
80private:
82};
83
84class Q_OHOSAPPKIT_EXPORT CheckResult
85{
86public:
89
90 virtual ~CheckResult();
91
92protected:
94
95private:
97};
98
103
105
106}
107
108}
109
110QT_END_NAMESPACE
111
112#endif
std::shared_ptr< ActionResult > activatePermission(const QList< PathPolicy > &policies)
Activates file or folder permissions from policies.
std::shared_ptr< ActionResult > deactivatePermission(const QList< PathPolicy > &policies)
Deactivates file or folder permissions from policies.
std::shared_ptr< ActionResult > persistPermission(const QList< PathPolicy > &policies)
Persists file or folder permissions from policies.
std::shared_ptr< CheckResult > checkPersistent(const QList< PathPolicy > &policies)
Checks if file or folder permissions from policies have persistent permissions.
std::shared_ptr< ActionResult > revokePermission(const QList< PathPolicy > &policies)
Revokes file or folder permissions from policies.
\variable QtOhosAppKit::FileShare::PathPolicyErrorInfo::path
\variable QtOhosAppKit::FileShare::PathPolicy::path