Jump to content

ActionResult Class: Difference between revisions

From Qt Wiki
Created page with "< Qt for HarmonyOS / qtohosextras doc = ActionResult Class = The ActionResult class encapsulates the result of all file requested access permission actions. More... {| class="wikitable" !Header: |#include <ActionResult> |- !qmake: |QT += ohosextras |- !Since: |Qt 5.12.12 |} * List of all members, including inherited members == Public Functions == {| class="wik..."
 
No edit summary
Line 54: Line 54:
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:''' [[PathPolicyErrorInfo Class|PathPolicyErrorInfo]].
'''See also:''' [[Qt for HarmonyOS/qtohosextras doc/PathPolicyErrorInfo Class]].


=== int ActionResult::operationStatus() const ===
=== int ActionResult::operationStatus() const ===

Revision as of 07:00, 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.

[pure virtual] QList<QtOhosExtras::FileShare::PathPolicyErrorInfo> ActionResult::errorInfoList() const

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: Qt for HarmonyOS/qtohosextras doc/PathPolicyErrorInfo Class.

int ActionResult::operationStatus() const

Returns the overall result of all requested file access permission actions.

See also: QOhosOperationStatus.