Qt for HarmonyOS/qtohosextras doc/QOhosWant Class: Difference between revisions
Update from qdoc output (QTFOROH-2307) |
Drop manual breadcrumb, MediaWiki renders it automatically (QTFOROH-2307) |
||
| Line 1: | Line 1: | ||
= QOhosWant Struct = | = QOhosWant Struct = | ||
Latest revision as of 06:26, 17 September 2026
QOhosWant Struct
struct QtOhosExtras::QOhosWant
QOhosWant wraps Ohos Want class. More...
| Header: | #include <QOhosWant> |
| qmake: | QT += ohosextras |
| Since: | Qt 5.12.12 |
This struct was introduced in Qt 5.12.12.
Public Variables
| QString | abilityName |
| QString | action |
| QString | bundleName |
| QString | deviceId |
| QStringList | entities |
| QHash<QString, int> | fds |
| QOhosWantFlags | flags |
| QString | moduleName |
| QJsonObject | parameters |
| QString | type |
| QString | uri |
Detailed Description
It keeps information that can be transmitted between applications. One of the usage scenarios of QOhosWant is a parameter of starting an ability or starting application process.
See also startAbility() and startAppProcess().
Member Variable Documentation
QString QOhosWant::abilityName
Represents the name of Ability to be started. See Ability Name.
QString QOhosWant::action
Represents the general operations to be performed, for example: viewing, sharing, application details. See Action.
QString QOhosWant::bundleName
Represents an application bundle name. See Bundle Name.
QString QOhosWant::deviceId
Represents the device Id on which Ability is to be performed. See Device Id.
QStringList QOhosWant::entities
Represents the additional category information of the target Ability for example: browser, video player. See Entities.
QHash<QString, int> QOhosWant::fds
Represents the file descriptor map in the Want object. When serialized for startAbility(), each entry is passed to the platform using the fixed HarmonyOS file descriptor parameter format:
parameters[key] = { "type": "FD", "value": fd }
Use application-specific keys, for example a reverse-DNS prefix, and avoid using the same key in both fds and parameters. See Fds.
QOhosWantFlags QOhosWant::flags
Represents the way to deal with Want. See Flags.
See also QOhosWantFlag.
QString QOhosWant::moduleName
Represents the module name. See Module Name.
QJsonObject QOhosWant::parameters
Represents the list of parameters in the Want object. See Parameters.
QString QOhosWant::type
Represents the MIME type of the file to open for example 'text/xml', 'image/ * ', etc. See Type.
QString QOhosWant::uri
Represents the type of pending data. See Uri.