Qt for HarmonyOS/qtohosextras doc/ActionResult Class: Difference between revisions
Created page with "<!-- Source: qtohosextras-fileshare-actionresult.html --> <span id="actionresult-class"></span> = ActionResult Class = <span class="small-subtitle">(QtOhosExtras::FileShare::ActionResult)<br /> </span> The ActionResult class encapsulates the result of all file requested access permission actions. More... <div class="table"> {| class="wikitabl..." |
|||
| (2 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
< | < [[Qt_for_HarmonyOS/qtohosextras_doc|Qt for HarmonyOS / qtohosextras doc]] | ||
= ActionResult Class = | = ActionResult Class = | ||
The ActionResult class encapsulates the result of all file requested access permission actions. More... | |||
{| class="wikitable" | |||
{| class="wikitable | |||
|- | |- | ||
! Header: | |||
| | | #include <ActionResult> | ||
|- | |- | ||
! qmake: | |||
| QT += ohosextras | |||
|- | |- | ||
! Since: | |||
| Qt 5.12.12 | |||
|} | |} | ||
* [[List_of_All_Members_for_ActionResult|List of all members, including inherited members]] | |||
== Public Functions == | == Public Functions == | ||
{| class="wikitable" style="width:100%" | |||
|- | |- | ||
| virtual || '''[[#dtor.ActionResult|~ActionResult]]'''() | |||
| | |||
|- | |- | ||
| virtual QList<QtOhosExtras::FileShare::PathPolicyErrorInfo> || '''[[#errorInfoList|errorInfoList]]'''() const = 0 | |||
| | |||
|- | |- | ||
| int || '''[[#operationStatus|operationStatus]]'''() const | |||
| | |||
|} | |} | ||
== Protected Functions == | == Protected Functions == | ||
{| class="wikitable" style="width:100%" | |||
|- | |- | ||
| | | || '''[[#ActionResult|ActionResult]]'''() | ||
|} | |} | ||
== Detailed Description == | == Detailed Description == | ||
The | The ActionResult class encapsulates the result of all file requested access permission actions. | ||
It contains any errors that occurred during the execution of these actions. | It contains any errors that occurred during the execution of these actions. | ||
'''See also '''[[FileShare_Namespace#persistPermission|persistPermission()]], [[FileShare_Namespace#revokePermission|revokePermission()]], [[FileShare_Namespace#activatePermission|activatePermission()]], and [[FileShare_Namespace#deactivatePermission|deactivatePermission()]]. | |||
== Member Function Documentation == | == Member Function Documentation == | ||
=== <span id="ActionResult"></span>[protected] ActionResult::ActionResult() === | |||
=== <span id="ActionResult"></span | |||
Default constructs an instance of ActionResult. | Default constructs an instance of ActionResult. | ||
=== <span id="dtor.ActionResult"></span>[virtual] ActionResult::~ActionResult() === | |||
=== <span id="dtor.ActionResult"></span | |||
Destroys the instance of ActionResult. The destructor is virtual. | Destroys the instance of ActionResult. The destructor is virtual. | ||
<span id="errorInfoList"></span> | === <span id="errorInfoList"></span>[pure virtual] QList<[[Qt for HarmonyOS/qtohosextras doc/PathPolicyErrorInfo Class|QtOhosExtras::FileShare::PathPolicyErrorInfo]]> ActionResult::errorInfoList() const === | ||
[pure virtual] QList<QtOhosExtras::FileShare::PathPolicyErrorInfo> ActionResult::errorInfoList() const | |||
Returns a list of errors for each file access action. | Returns a list of errors for each file access action. | ||
| Line 103: | Line 61: | ||
Each entry in the list corresponds to a specific file operation that encountered an error. | Each entry in the list corresponds to a specific file operation that encountered an error. | ||
'''See also''' [[ | '''See also '''[[PathPolicyErrorInfo_Class|PathPolicyErrorInfo]]. | ||
=== <span id="operationStatus"></span>int ActionResult::operationStatus() const === | |||
=== <span id="operationStatus"></span | |||
Returns the overall result of all requested file access permission actions. | Returns the overall result of all requested file access permission actions. | ||
'''See also''' [[ | '''See also '''[[QOhosOperationStatus_Class|QOhosOperationStatus]]. | ||
[[Category:Qt for HarmonyOS]] | |||
Latest revision as of 07:08, 29 January 2026
< Qt for HarmonyOS / qtohosextras doc
ActionResult Class
The ActionResult class encapsulates the result of all file requested access permission actions. More...
| Header: | #include <ActionResult> |
|---|---|
| qmake: | QT += ohosextras |
| Since: | Qt 5.12.12 |
Public Functions
| virtual | ~ActionResult() |
| virtual QList<QtOhosExtras::FileShare::PathPolicyErrorInfo> | errorInfoList() const = 0 |
| int | operationStatus() const |
Protected Functions
| ActionResult() |
Detailed Description
The ActionResult class encapsulates the result of all file requested access permission actions.
It contains any errors that occurred during the execution of these actions.
See also persistPermission(), revokePermission(), activatePermission(), and deactivatePermission().
Member Function Documentation
[protected] ActionResult::ActionResult()
Default constructs an instance of ActionResult.
[virtual] ActionResult::~ActionResult()
Destroys the instance of ActionResult. The destructor is virtual.
Returns a list of errors for each file access action.
Each entry in the list corresponds to a specific file operation that encountered an error.
See also PathPolicyErrorInfo.
int ActionResult::operationStatus() const
Returns the overall result of all requested file access permission actions.
See also QOhosOperationStatus.