Jump to content

Qt for HarmonyOS/qtohosextras doc/ActionResult Class

From Qt Wiki
Revision as of 06:56, 28 January 2026 by Shawn Luo (talk | contribs) (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...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

ActionResult Class

(QtOhosExtras::FileShare::ActionResult)

The ActionResult class encapsulates the result of all file requested access permission actions. More...

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


Public Functions

virtual ~ActionResult()
virtual QList 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

[protected]
ActionResult::ActionResult()

Default constructs an instance of ActionResult.

[virtual]
ActionResult::~ActionResult()

Destroys the instance of ActionResult. The destructor is virtual.

errorInfoList

[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 PathPolicyErrorInfo.

int ActionResult::operationStatus() const

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

See also QOhosOperationStatus.