Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
QtOhosAppKit::ShareKit Namespace Reference

\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< SharedRecordcreateContentRecord (const QMimeType &mimeType, const QString &content)
 Creates a shared "content" record with a given mimeType and content.
std::shared_ptr< SharedRecordcreateFileRecord (const QFileInfo &fileInfo)
 Creates a shared "file" record with a given fileInfo.
std::shared_ptr< SharedRecordcreateUrlRecord (const QUrl &url)
 Creates a shared record with a given url.
std::shared_ptr< ShareControllerOptionscreateControllerOptions ()
 Creates a controller options instnace.

Detailed Description

\inmodule QtOhosAppKit

Since
5.12.12

The ShareKit to expose Share Kit API.

Enumeration Type Documentation

◆ ShareAbilityType

Enumerator
CopyToPasteboard 
SaveToMediaAsset 
SaveAsFile 
Print 
SaveToSuperHub 

Definition at line 40 of file qohossharekit_p.h.

Function Documentation

◆ createContentRecord()

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

See also
QtOhosAppKit::ShareKit::createFileRecord(). See \l {https://developer.huawei.com/consumer/en/doc/harmonyos-references/share-system-share#section20696483813} {SharedRecord.content}

Definition at line 568 of file qohossharekit.cpp.

◆ createControllerOptions()

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.

◆ createFileRecord()

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

See also
QtOhosAppKit::ShareKit::createContentRecord(). See \l {https://developer.huawei.com/consumer/en/doc/harmonyos-references/share-system-share#section20696483813} {SharedRecord.uri}

Definition at line 582 of file qohossharekit.cpp.

◆ createUrlRecord()

std::shared_ptr< SharedRecord > QtOhosAppKit::ShareKit::createUrlRecord ( const QUrl & url)