Jump to content

Qt for HarmonyOS/qtohosextras doc/Qt Ohos Extras C++ Classes

From Qt Wiki
Revision as of 06:31, 17 September 2026 by Shawn Luo (talk | contribs) (Drop manual breadcrumb, MediaWiki renders it automatically (QTFOROH-2307))
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Qt Ohos Extras C++ Classes

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

Namespaces

QtOhosExtras Miscellaneous functions to aid Ohos development
QtOhosExtras::AppPermissions Contains types used for checking and requesting application runtime permissions
QtOhosExtras::FileShare To expose file permission API
QtOhosExtras::Multimedia Provides multimedia utility functions for HarmonyOS
QtOhosExtras::QOhosPasteboard Functions to manage the native pasteboard
QtOhosExtras::ShareKit To expose Share Kit API

Classes

QtOhosExtras::AppPermissions::PermissionResult Struct holds the result of a runtime permission request
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::QOhosDistributedDataObject Shares a fixed set of named fields across devices that belong to the same trusted network
QtOhosExtras::QOhosElementName Struct identifies an ability component
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::QOhosOpenLinkOptions Options for the QOhosAbilityContext::tryOpenLink() call
QtOhosExtras::QOhosOperationStatus Interface to check an operation status
QtOhosExtras::QOhosStartOptions To provide new options for new started ability or process
QtOhosExtras::QOhosStartRequest Emits signals for start ability
QtOhosExtras::QOhosWant Wraps Ohos Want class
QtOhosExtras::QOhosWantInfo To represent Ohos want type
QtOhosExtras::QOhosWantInfo::ContactInfo Struct represents contact information extracted from a Want
QtOhosExtras::QOhosWindowCreateParams Window creation parameters for a started ability window
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
QtOhosExtras::ShareKit::QOhosShareOperationResult ShareOperationResult wraps Ohos ShareOperationResult interface
QtOhosExtras::ShareKit::QOhosSharedRecord Represents a record to be shared with other application

Detailed Description

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

 #include <QtOhosExtras>

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

 QT += ohosextras