![]() |
Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
\inmodule QtOhosAppKit More...
Classes | |
| class | SharedRecord |
| \inmodule QtOhosAppKit More... | |
| class | ShareControllerOptions |
| \inmodule QtOhosAppKit More... | |
| class | ShareOperationResult |
| \inmodule QtOhosAppKit More... | |
Enumerations | |
| enum class | ShareAbilityType { CopyToPasteboard , SaveToMediaAsset , SaveAsFile , Print , SaveToSuperHub } |
Functions | |
| std::shared_ptr< SharedRecord > | createContentRecord (const QMimeType &mimeType, const QString &content) |
| Creates a shared "content" record with a given mimeType and content. | |
| std::shared_ptr< SharedRecord > | createFileRecord (const QFileInfo &fileInfo) |
| Creates a shared "file" record with a given fileInfo. | |
| std::shared_ptr< SharedRecord > | createUrlRecord (const QUrl &url) |
| Creates a shared record with a given url. | |
| std::shared_ptr< ShareControllerOptions > | createControllerOptions () |
| Creates a controller options instnace. | |
|
strong |
| Enumerator | |
|---|---|
| CopyToPasteboard | |
| SaveToMediaAsset | |
| SaveAsFile | |
| SaveToSuperHub | |
Definition at line 40 of file qohossharekit_p.h.
| std::shared_ptr< SharedRecord > QtOhosAppKit::ShareKit::createContentRecord | ( | const QMimeType & | mimeType, |
| const QString & | content ) |
Creates a shared "content" record with a given mimeType and content.
Shared record can be created with content (this function) or as a file shared record
Definition at line 568 of file qohossharekit.cpp.
| std::shared_ptr< ShareControllerOptions > QtOhosAppKit::ShareKit::createControllerOptions | ( | ) |
Creates a controller options instnace.
Controller options can be used to configure preview mode, selection mode and pop-up window anchor. See \l {https://developer.huawei.com/consumer/en/doc/harmonyos-references/share-system-share#section107934816010} {ShareControllerOptions}
Definition at line 607 of file qohossharekit.cpp.
| std::shared_ptr< SharedRecord > QtOhosAppKit::ShareKit::createFileRecord | ( | const QFileInfo & | fileInfo | ) |
Creates a shared "file" record with a given fileInfo.
Shared record can be created with file (this function) or as a content record
Definition at line 582 of file qohossharekit.cpp.
| std::shared_ptr< SharedRecord > QtOhosAppKit::ShareKit::createUrlRecord | ( | const QUrl & | url | ) |
Creates a shared record with a given url.
See \l {https://developer.huawei.com/consumer/en/doc/harmonyos-references/share-system-share#section20696483813} {SharedRecord.content}
Definition at line 594 of file qohossharekit.cpp.