Jump to content

Qt for HarmonyOS/qtohosextras doc/PathPolicyErrorInfo Class: Difference between revisions

From Qt Wiki
Created page with "<!-- Source: qtohosextras-fileshare-pathpolicyerrorinfo.html --> <span id="pathpolicyerrorinfo-class"></span> = PathPolicyErrorInfo Class = <span class="small-subtitle">(QtOhosExtras::FileShare::PathPolicyErrorInfo)<br /> </span> The PathPolicyErrorInfo struct contains the result of a file access permission request for a specified path. #det..."
 
Drop manual breadcrumb, MediaWiki renders it automatically (QTFOROH-2307)
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<!-- Source: qtohosextras-fileshare-pathpolicyerrorinfo.html -->
= PathPolicyErrorInfo Struct =
<span id="pathpolicyerrorinfo-class"></span>
= PathPolicyErrorInfo Class =


<span class="small-subtitle">([[Qt_for_HarmonyOS/qtohosextras_doc/PathPolicyErrorInfo_Class|QtOhosExtras::FileShare::PathPolicyErrorInfo]])<br />
struct [[Qt_for_HarmonyOS/qtohosextras_doc/Qt_Ohos_Extras_C++_Classes|QtOhosExtras]]::[[Qt_for_HarmonyOS/qtohosextras_doc/FileShare_Namespace|FileShare]]::PathPolicyErrorInfo
</span>


The [[Qt_for_HarmonyOS/qtohosextras_doc/PathPolicyErrorInfo_Class|PathPolicyErrorInfo]] struct contains the result of a file access permission request for a specified path. [[#details|More...]]
The PathPolicyErrorInfo struct contains the result of a file access permission request for a specified path. [[#details|More...]]


<div class="table">
{| class="wikitable"
 
{| class="wikitable alignedsummary"
|-
|-
| class="memItemLeft rightAlign topAlign"| Header:
| Header:
| class="memItemRight bottomAlign"| <span class="preprocessor">#include </span>
| #include <PathPolicyErrorInfo>
|-
|-
| class="memItemLeft rightAlign topAlign"| qmake:
| qmake:
| class="memItemRight bottomAlign"| QT += ohosextras
| QT += ohosextras
|-
|-
| class="memItemLeft rightAlign topAlign"| Since:
| Since:
| class="memItemRight bottomAlign"| Qt 5.12.12
| Qt 5.12.12
|}
|}


This struct was introduced in Qt 5.12.12.


</div>
* [[Qt_for_HarmonyOS/qtohosextras_doc/List_of_All_Members_for_PathPolicyErrorInfo|List of all members, including inherited members]]
* [[Qt_for_HarmonyOS/qtohosextras_doc/List_of_All_Members_for_PathPolicyErrorInfo|List of all members, including inherited members]]


<span id="public-variables"></span>
<span id="public-variables"></span>
== Public Variables ==
== Public Variables ==


<div class="table">
{| class="wikitable"
 
{| class="wikitable alignedsummary"
|-
|-
| class="memItemLeft rightAlign topAlign"| QtOhosExtras::FileShare::PathPolicyError
| PathPolicyError
| class="memItemRight bottomAlign"| '''[[Qt_for_HarmonyOS/qtohosextras_doc/PathPolicyErrorInfo_Class#error-var|error]]'''
| '''[[Qt_for_HarmonyOS/qtohosextras_doc/PathPolicyErrorInfo_Class#error-var|error]]'''
|-
|-
| class="memItemLeft rightAlign topAlign"| QString
| QString
| class="memItemRight bottomAlign"| '''[[Qt_for_HarmonyOS/qtohosextras_doc/PathPolicyErrorInfo_Class#errorMessage-var|errorMessage]]'''
| '''[[Qt_for_HarmonyOS/qtohosextras_doc/PathPolicyErrorInfo_Class#errorMessage-var|errorMessage]]'''
|-
|-
| class="memItemLeft rightAlign topAlign"| QString
| QString
| class="memItemRight bottomAlign"| '''[[Qt_for_HarmonyOS/qtohosextras_doc/PathPolicyErrorInfo_Class#path-var|path]]'''
| '''[[Qt_for_HarmonyOS/qtohosextras_doc/PathPolicyErrorInfo_Class#path-var|path]]'''
|}
|}


</div>
<span id="details"></span>
<div class="descr">
<span id="details"></span>
== Detailed Description ==
== Detailed Description ==


The [[Qt_for_HarmonyOS/qtohosextras_doc/PathPolicyErrorInfo_Class|PathPolicyErrorInfo]] struct contains the result of a file access permission request for a specified path.
'''See also '''[[Qt_for_HarmonyOS/qtohosextras_doc/ActionResult_Class|ActionResult]].


</div>
'''See also''' [[Qt_for_HarmonyOS/qtohosextras_doc/ActionResult_Class|ActionResult]].
<div class="vars">
<span id="member-variable-documentation"></span>
== Member Variable Documentation ==
== Member Variable Documentation ==


<span id="error-var"></span>
=== <span id="error-var"></span>[[Qt_for_HarmonyOS/qtohosextras_doc/FileShare_Namespace#PathPolicyError-enum|PathPolicyError]] PathPolicyErrorInfo::error ===
=== <span id="error-var"></span><span class="type">[[Qt_for_HarmonyOS/qtohosextras_doc/FileShare_Namespace#PathPolicyError-enum|QtOhosExtras::FileShare::PathPolicyError]]</span> PathPolicyErrorInfo::<span class="name">error</span> ===


This variable holds the error code indicating the result of the file access permission request.
This variable holds the error code indicating the result of the file access permission request.


'''See also''' [[Qt_for_HarmonyOS/qtohosextras_doc/FileShare_Namespace#PathPolicyError-enum|PathPolicyError]].
'''See also '''[[Qt_for_HarmonyOS/qtohosextras_doc/FileShare_Namespace#PathPolicyError-enum|PathPolicyError]].


<span id="errorMessage-var"></span>
=== <span id="errorMessage-var"></span>[https://doc.qt.io/qt-5/qstring.html QString] PathPolicyErrorInfo::errorMessage ===
=== <span id="errorMessage-var"></span><span class="type">[[../qtcore/qstring.html|QString]]</span> PathPolicyErrorInfo::<span class="name">errorMessage</span> ===


Detailed error message.
Detailed error message.


<span id="path-var"></span>
=== <span id="path-var"></span>[https://doc.qt.io/qt-5/qstring.html QString] PathPolicyErrorInfo::path ===
=== <span id="path-var"></span><span class="type">[[../qtcore/qstring.html|QString]]</span> PathPolicyErrorInfo::<span class="name">path</span> ===


This variable holds the path for which access permission was requested.
This variable holds the path for which access permission was requested.


 
[[Category:Qt for HarmonyOS]]
</div>

Latest revision as of 06:06, 17 September 2026

PathPolicyErrorInfo Struct

struct QtOhosExtras::FileShare::PathPolicyErrorInfo

The PathPolicyErrorInfo struct contains the result of a file access permission request for a specified path. More...

Header: #include <PathPolicyErrorInfo>
qmake: QT += ohosextras
Since: Qt 5.12.12

This struct was introduced in Qt 5.12.12.

Public Variables

PathPolicyError error
QString errorMessage
QString path

Detailed Description

See also ActionResult.

Member Variable Documentation

PathPolicyError PathPolicyErrorInfo::error

This variable holds the error code indicating the result of the file access permission request.

See also PathPolicyError.

QString PathPolicyErrorInfo::errorMessage

Detailed error message.

QString PathPolicyErrorInfo::path

This variable holds the path for which access permission was requested.