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 <QtHarmonyExtras/private/qohosoperationstatus_p.h>
19#include <QtHarmonyExtras/private/qtharmonyextrasglobal_p.h>
20
21#include <QtCore/qlist.h>
22#include <QtCore/qstring.h>
23
24#include <memory>
25
26QT_BEGIN_NAMESPACE
27
28namespace QtHarmonyExtras {
29
30namespace FileShare {
31
33
34enum class OperationMode {
35 Read = 1 << 0,
36 Write = 1 << 1,
37};
40
42
50Q_ENUM_NS(PathPolicyError)
51
57
64
66{
68 bool result = false;
69};
70
71class Q_HARMONYEXTRAS_EXPORT ActionResult
72{
73public:
76
77 virtual ~ActionResult();
78
79protected:
81
82private:
84};
85
86class Q_HARMONYEXTRAS_EXPORT CheckResult
87{
88public:
91
92 virtual ~CheckResult();
93
94protected:
96
97private:
99};
100
105
107
108}
109
110}
111
112QT_END_NAMESPACE
113
114#endif
std::shared_ptr< ActionResult > deactivatePermission(const QList< PathPolicy > &policies)
Deactivates 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.
std::shared_ptr< ActionResult > persistPermission(const QList< PathPolicy > &policies)
Persists file or folder permissions from policies.
std::shared_ptr< ActionResult > activatePermission(const QList< PathPolicy > &policies)
Activates file or folder permissions from policies.
\variable QtHarmonyExtras::FileShare::PathPolicyErrorInfo::path
\variable QtHarmonyExtras::FileShare::PathPolicy::path