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..." |
|||
| Line 13: | Line 13: | ||
|- | |- | ||
| class="memItemLeft rightAlign topAlign"| Header: | | class="memItemLeft rightAlign topAlign"| Header: | ||
| class="memItemRight bottomAlign"| <span class="preprocessor">#include </span> | | class="memItemRight bottomAlign"| <span class="preprocessor">#include <ActionResult></span> | ||
|- | |- | ||
| class="memItemLeft rightAlign topAlign"| qmake: | | class="memItemLeft rightAlign topAlign"| qmake: | ||
| Line 21: | Line 21: | ||
| class="memItemRight bottomAlign"| Qt 5.12.12 | | class="memItemRight bottomAlign"| Qt 5.12.12 | ||
|} | |} | ||
</div> | </div> | ||
* [[Qt_for_HarmonyOS/qtohosextras_doc/List_of_All_Members_for_ActionResult|List of all members, including inherited members]] | * [[Qt_for_HarmonyOS/qtohosextras_doc/List_of_All_Members_for_ActionResult|List of all members, including inherited members]] | ||
| Line 38: | Line 36: | ||
| class="memItemRight bottomAlign"| '''[[Qt_for_HarmonyOS/qtohosextras_doc/ActionResult_Class#dtor.ActionResult|~ActionResult]]'''() | | class="memItemRight bottomAlign"| '''[[Qt_for_HarmonyOS/qtohosextras_doc/ActionResult_Class#dtor.ActionResult|~ActionResult]]'''() | ||
|- | |- | ||
| class="memItemLeft rightAlign topAlign"| virtual QList | | class="memItemLeft rightAlign topAlign"| virtual QList<QtOhosExtras::FileShare::PathPolicyErrorInfo> | ||
| class="memItemRight bottomAlign"| '''[[Qt_for_HarmonyOS/qtohosextras_doc/ActionResult_Class#errorInfoList|errorInfoList]]'''() const = 0 | | class="memItemRight bottomAlign"| '''[[Qt_for_HarmonyOS/qtohosextras_doc/ActionResult_Class#errorInfoList|errorInfoList]]'''() const = 0 | ||
|- | |- | ||
| Line 59: | Line 57: | ||
| class="memItemRight bottomAlign"| '''[[Qt_for_HarmonyOS/qtohosextras_doc/ActionResult_Class#ActionResult|ActionResult]]'''() | | class="memItemRight bottomAlign"| '''[[Qt_for_HarmonyOS/qtohosextras_doc/ActionResult_Class#ActionResult|ActionResult]]'''() | ||
|} | |} | ||
</div><div class="descr"><span id="details"></span> | |||
</div> | |||
<div class="descr"> | |||
<span id="details"></span> | |||
== Detailed Description == | == Detailed Description == | ||
| Line 81: | Line 72: | ||
<span id="member-function-documentation"></span> | <span id="member-function-documentation"></span> | ||
== Member Function Documentation == | == Member Function Documentation == | ||
<syntaxhighlight> | |||
ActionResult::ActionResult() [protected] | |||
</syntaxhighlight><span id="ActionResult"></span>Default constructs an instance of ActionResult.<syntaxhighlight> | |||
ActionResult::~ActionResult() [virtual] | |||
Default constructs an instance of ActionResult. | </syntaxhighlight>Destroys the instance of ActionResult. The destructor is virtual. | ||
< | |||
Destroys the instance of ActionResult. The destructor is virtual. | |||
<syntaxhighlight lang="cpp"> | <syntaxhighlight lang="cpp"> | ||
QList<QtOhosExtras::FileShare::PathPolicyErrorInfo> [pure virtual] | |||
ActionResult::errorInfoList() const | |||
</syntaxhighlight> | </syntaxhighlight> | ||
Revision as of 07:39, 28 January 2026
ActionResult Class
(QtOhosExtras::FileShare::ActionResult)
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
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
ActionResult::ActionResult() [protected]ActionResult::~ActionResult() [virtual]QList<QtOhosExtras::FileShare::PathPolicyErrorInfo> [pure virtual]
ActionResult::errorInfoList() constReturns 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.