Jump to content

Qt Ohos Extras Cpp Classes: Difference between revisions

From Qt Wiki
No edit summary
Line 16: Line 16:
{| class="wikitable annotated"
{| class="wikitable annotated"
|- class="odd topAlign"
|- class="odd topAlign"
| class="tblName"| [[FileShare Namespace|QtOhosExtras::FileShare]]
| class="tblName"| [[FileShare_Namespace|QtOhosExtras::FileShare]]


| class="tblDescr"| To expose file permission API
| class="tblDescr"| To expose file permission API


|- class="even topAlign"
|- class="even topAlign"
| class="tblName"| [[QOhosPasteboard Namespace|QtOhosExtras::QOhosPasteboard]]
| class="tblName"| [[QOhosPasteboard_Namespace|QtOhosExtras::QOhosPasteboard]]


| class="tblDescr"| To manage native pasteboard
| class="tblDescr"| To manage native pasteboard


|- class="odd topAlign"
|- class="odd topAlign"
| class="tblName"| [[QtOhosExtras Namespace|QtOhosExtras]]
| class="tblName"| [[QtOhosExtras_Namespace|QtOhosExtras]]


| class="tblDescr"| Miscellaneous functions to aid Ohos development
| class="tblDescr"| Miscellaneous functions to aid Ohos development


|- class="even topAlign"
|- class="even topAlign"
| class="tblName"| [[ShareKit Namespace|QtOhosExtras::ShareKit]]
| class="tblName"| [[ShareKit_Namespace|QtOhosExtras::ShareKit]]


| class="tblDescr"| To expose Share Kit API
| class="tblDescr"| To expose Share Kit API
Line 42: Line 42:


<span id="classes"></span>
<span id="classes"></span>
== Classes ==
== Classes ==


Line 49: Line 48:
{| class="wikitable annotated"
{| class="wikitable annotated"
|- class="odd topAlign"
|- class="odd topAlign"
| class="tblName"| [[ActionResult Class|QtOhosExtras::FileShare::ActionResult]]
| class="tblName"| [[ActionResult_Class|QtOhosExtras::FileShare::ActionResult]]


| class="tblDescr"| Encapsulates the result of all file requested access permission actions
| class="tblDescr"| Encapsulates the result of all file requested access permission actions


|- class="even topAlign"
|- class="even topAlign"
| class="tblName"| [[CheckResult Class|QtOhosExtras::FileShare::CheckResult]]
| class="tblName"| [[CheckResult_Class|QtOhosExtras::FileShare::CheckResult]]


| class="tblDescr"| Encapsulates the result of all requested file access permission checks
| class="tblDescr"| Encapsulates the result of all requested file access permission checks


|- class="odd topAlign"
|- class="odd topAlign"
| class="tblName"| [[PathPolicy Class|QtOhosExtras::FileShare::PathPolicy]]
| class="tblName"| [[PathPolicy_Class|QtOhosExtras::FileShare::PathPolicy]]


| class="tblDescr"| Struct encapsulates information required to request file access permissions for a specified path
| class="tblDescr"| Struct encapsulates information required to request file access permissions for a specified path


|- class="even topAlign"
|- class="even topAlign"
| class="tblName"| [[PathPolicyCheckResult Class|QtOhosExtras::FileShare::PathPolicyCheckResult]]
| class="tblName"| [[PathPolicyCheckResult_Class|QtOhosExtras::FileShare::PathPolicyCheckResult]]


| class="tblDescr"| Struct contains the result of a file permission check request for a specified path, indicating whether access is granted or denied
| class="tblDescr"| Struct contains the result of a file permission check request for a specified path, indicating whether access is granted or denied


|- class="odd topAlign"
|- class="odd topAlign"
| class="tblName"| [[PathPolicyErrorInfo Class|QtOhosExtras::FileShare::PathPolicyErrorInfo]]
| class="tblName"| [[PathPolicyErrorInfo_Class|QtOhosExtras::FileShare::PathPolicyErrorInfo]]


| class="tblDescr"| Struct contains the result of a file access permission request for a specified path
| class="tblDescr"| Struct contains the result of a file access permission request for a specified path


|- class="even topAlign"
|- class="even topAlign"
| class="tblName"| [[QOhosAbilityContext Class|QtOhosExtras::QOhosAbilityContext]]
| class="tblName"| [[QOhosAbilityContext_Class|QtOhosExtras::QOhosAbilityContext]]


| class="tblDescr"| To manage native UI Ability context. See UIAbilityContext
| class="tblDescr"| To manage native UI Ability context. See UIAbilityContext


|- class="odd topAlign"
|- class="odd topAlign"
| class="tblName"| [[QOhosAppContext Class|QtOhosExtras::QOhosAppContext]]
| class="tblName"| [[QOhosAppContext_Class|QtOhosExtras::QOhosAppContext]]


| class="tblDescr"| Contains API to manage native application context
| class="tblDescr"| Contains API to manage native application context


|- class="even topAlign"
|- class="even topAlign"
| class="tblName"| [[QOhosBundleInfo Class|QtOhosExtras::QOhosBundleInfo]]
| class="tblName"| [[QOhosBundleInfo_Class|QtOhosExtras::QOhosBundleInfo]]


| class="tblDescr"| Contains API to provide native application bundle info
| class="tblDescr"| Contains API to provide native application bundle info


|- class="odd topAlign"
|- class="odd topAlign"
| class="tblName"| [[QOhosOnContinueContext Class|QtOhosExtras::QOhosOnContinueContext]]
| class="tblName"| [[QOhosOnContinueContext_Class|QtOhosExtras::QOhosOnContinueContext]]


| class="tblDescr"| Manages onContinue context. It provides system data, like source application version code and set the onContinue result that is requested by the system. See UIAbility onContinue
| class="tblDescr"| Manages onContinue context. It provides system data, like source application version code and set the onContinue result that is requested by the system. See UIAbility onContinue


|- class="even topAlign"
|- class="even topAlign"
| class="tblName"| [[QOhosOperationStatus Class|QtOhosExtras::QOhosOperationStatus]]
| class="tblName"| [[QOhosOperationStatus_Class|QtOhosExtras::QOhosOperationStatus]]


| class="tblDescr"| Interface to get an opertaion status
| class="tblDescr"| Interface to get an opertaion status


|- class="odd topAlign"
|- class="odd topAlign"
| class="tblName"| [[QOhosShareControllerOptions Class|QtOhosExtras::ShareKit::QOhosShareControllerOptions]]
| class="tblName"| [[QOhosShareControllerOptions_Class|QtOhosExtras::ShareKit::QOhosShareControllerOptions]]


| class="tblDescr"| To configure items, such as the preview mode of the shared content, selection mode, and other information, and pop-up window anchor. It determines the display style of the sharing panel. See ShareControllerOptions
| class="tblDescr"| To configure items, such as the preview mode of the shared content, selection mode, and other information, and pop-up window anchor. It determines the display style of the sharing panel. See ShareControllerOptions


|- class="even topAlign"
|- class="even topAlign"
| class="tblName"| [[QOhosSharedRecord Class|QtOhosExtras::ShareKit::QOhosSharedRecord]]
| class="tblName"| [[QOhosSharedRecord_Class|QtOhosExtras::ShareKit::QOhosSharedRecord]]


| class="tblDescr"| Represents a record to be shared with other application. A record can be created using
| class="tblDescr"| Represents a record to be shared with other application. A record can be created using


|- class="odd topAlign"
|- class="odd topAlign"
| class="tblName"| [[QOhosStartOptions Class|QtOhosExtras::QOhosStartOptions]]
| class="tblName"| [[QOhosStartOptions_Class|QtOhosExtras::QOhosStartOptions]]


| class="tblDescr"| To provide new options for new started ability or process
| class="tblDescr"| To provide new options for new started ability or process


|- class="even topAlign"
|- class="even topAlign"
| class="tblName"| [[QOhosWant Class|QtOhosExtras::QOhosWant]]
| class="tblName"| [[QOhosWant_Class|QtOhosExtras::QOhosWant]]


| class="tblDescr"| Wraps Ohos Want class
| class="tblDescr"| Wraps Ohos Want class


|- class="odd topAlign"
|- class="odd topAlign"
| class="tblName"| [[QOhosWantInfo Class|QtOhosExtras::QOhosWantInfo]]
| class="tblName"| [[QOhosWantInfo_Class|QtOhosExtras::QOhosWantInfo]]


| class="tblDescr"| To represent Ohos want type
| class="tblDescr"| To represent Ohos want type
Line 132: Line 131:


<span id="details"></span>
<span id="details"></span>
== Detailed Description ==
== Detailed Description ==



Revision as of 05:46, 28 January 2026

Qt Ohos Extras C++ Classes

The Qt Ohos Extras module contains additional functionality for development on Ohos. More...

Namespaces

QtOhosExtras::FileShare To expose file permission API
QtOhosExtras::QOhosPasteboard To manage native pasteboard
QtOhosExtras Miscellaneous functions to aid Ohos development
QtOhosExtras::ShareKit To expose Share Kit API


Classes

QtOhosExtras::FileShare::ActionResult Encapsulates the result of all file requested access permission actions
QtOhosExtras::FileShare::CheckResult Encapsulates the result of all requested file access permission checks
QtOhosExtras::FileShare::PathPolicy Struct encapsulates information required to request file access permissions for a specified path
QtOhosExtras::FileShare::PathPolicyCheckResult Struct contains the result of a file permission check request for a specified path, indicating whether access is granted or denied
QtOhosExtras::FileShare::PathPolicyErrorInfo Struct contains the result of a file access permission request for a specified path
QtOhosExtras::QOhosAbilityContext To manage native UI Ability context. See UIAbilityContext
QtOhosExtras::QOhosAppContext Contains API to manage native application context
QtOhosExtras::QOhosBundleInfo Contains API to provide native application bundle info
QtOhosExtras::QOhosOnContinueContext Manages onContinue context. It provides system data, like source application version code and set the onContinue result that is requested by the system. See UIAbility onContinue
QtOhosExtras::QOhosOperationStatus Interface to get an opertaion status
QtOhosExtras::ShareKit::QOhosShareControllerOptions To configure items, such as the preview mode of the shared content, selection mode, and other information, and pop-up window anchor. It determines the display style of the sharing panel. See ShareControllerOptions
QtOhosExtras::ShareKit::QOhosSharedRecord Represents a record to be shared with other application. A record can be created using
QtOhosExtras::QOhosStartOptions To provide new options for new started ability or process
QtOhosExtras::QOhosWant Wraps Ohos Want class
QtOhosExtras::QOhosWantInfo To represent Ohos want type


Detailed Description

To include the definitions of the module's classes, use the following directive:

 #include

To link against the Qt Ohos Extras module, add this line to your project file:

 QT += ohosextras