![]() |
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...
#include <qohossharekit_p.h>
Public Member Functions | |
| virtual | ~SharedRecord () |
| virtual QMimeType | mimeType () const =0 |
| Gets the shared record associated mime type. | |
| virtual QString | content () const =0 |
| Gets the shared record optional content. | |
| virtual QString | filePath () const =0 |
| Gets the shared record optional file path. | |
| virtual bool | isUrlContent () const =0 |
| Provides information if content() contains URL string. | |
| virtual void | setTitle (const QString &title)=0 |
| Sets the title of shared content with a given title. | |
| virtual QString | title () const =0 |
| Gets the optional title of the shared record. | |
| virtual void | setLabel (const QString &label)=0 |
| Sets the label indicating the current data record type with a given label. | |
| virtual QString | label () const =0 |
| Gets the optional label of the shared record. | |
| virtual void | setDescription (const QString &description)=0 |
| Sets data record description with a given description. | |
| virtual QString | description () const =0 |
| Gets the optional description of the shared record. | |
| virtual void | setThumbnail (const QByteArray &thumbnail)=0 |
| Sets data record thumbnail with a given thumbnail. | |
| virtual QByteArray | thumbnail () const =0 |
| Gets the optional thumbnail content of the shared record. | |
| virtual void | setThumbnailFilePath (const QString &thumbnailFilePath)=0 |
| Sets data record thumbnail uri with a given thumbnailFilePath. | |
| virtual QString | thumbnailFilePath () const =0 |
| Gets the optional thumbnail file path of the shared record. | |
| virtual void | setExtraData (const QVariantMap &extraData)=0 |
| Sets exatra data for sharing with a given extraData. | |
| virtual QVariantMap | extraData () const =0 |
| Gets the optional extra data of the shared record. | |
Protected Member Functions | |
| SharedRecord () | |
\inmodule QtOhosAppKit
The SharedRecord class represents a record to be shared with other application. A record can be created using
Definition at line 49 of file qohossharekit_p.h.
|
virtualdefault |
|
protecteddefault |
|
pure virtual |
Gets the shared record optional content.
Either content or file path must be set. If there is no content null string is provided. See \l {https://developer.huawei.com/consumer/en/doc/harmonyos-references/share-system-share#section20696483813} {SharedRecord.content}
|
pure virtual |
Gets the optional description of the shared record.
If there is no description null string is provided. See \l {https://developer.huawei.com/consumer/en/doc/harmonyos-references/share-system-share#section20696483813} {SharedRecord.description}
|
pure virtual |
Gets the optional extra data of the shared record.
If there is no extra data empty variant map is provided. See \l {https://developer.huawei.com/consumer/en/doc/harmonyos-references/share-system-share#section20696483813} {SharedRecord.extraData}
|
pure virtual |
Gets the shared record optional file path.
Either content or file path must be set. If there is no file path null string is provided. See \l {https://developer.huawei.com/consumer/en/doc/harmonyos-references/share-system-share#section20696483813} {SharedRecord.content}
|
pure virtual |
Provides information if content() contains URL string.
For URL content the mimeType() should not be used. See \l {https://developer.huawei.com/consumer/en/doc/harmonyos-references/share-system-share#section20696483813} {SharedRecord.content}
|
pure virtual |
Gets the optional label of the shared record.
If there is no label null string is provided. See \l {https://developer.huawei.com/consumer/en/doc/harmonyos-references/share-system-share#section20696483813} {SharedRecord.label}
|
pure virtual |
Gets the shared record associated mime type.
See \l {https://developer.huawei.com/consumer/en/doc/harmonyos-references/share-system-share#section20696483813} {SharedRecord.utd}
|
pure virtual |
Sets data record description with a given description.
See \l {https://developer.huawei.com/consumer/en/doc/harmonyos-references/share-system-share#section20696483813} {SharedRecord.description}
|
pure virtual |
Sets exatra data for sharing with a given extraData.
See \l {https://developer.huawei.com/consumer/en/doc/harmonyos-references/share-system-share#section20696483813} {SharedRecord.extraData}
Sets the label indicating the current data record type with a given label.
See \l {https://developer.huawei.com/consumer/en/doc/harmonyos-references/share-system-share#section20696483813} {SharedRecord.label}
|
pure virtual |
Sets data record thumbnail with a given thumbnail.
The thumbnail is an image file content. See \l {https://developer.huawei.com/consumer/en/doc/harmonyos-references/share-system-share#section20696483813} {SharedRecord.thumbnail}
|
pure virtual |
Sets data record thumbnail uri with a given thumbnailFilePath.
See \l {https://developer.huawei.com/consumer/en/doc/harmonyos-references/share-system-share#section20696483813} {SharedRecord.thumbnailUri}
Sets the title of shared content with a given title.
See \l {https://developer.huawei.com/consumer/en/doc/harmonyos-references/share-system-share#section20696483813} {SharedRecord.title}
|
pure virtual |
Gets the optional thumbnail content of the shared record.
If there is no thumbnail empty byte array is provided. See \l {https://developer.huawei.com/consumer/en/doc/harmonyos-references/share-system-share#section20696483813} {SharedRecord.thumbnail}
|
pure virtual |
Gets the optional thumbnail file path of the shared record.
If there is no thumbnail file path null string is provided. See \l {https://developer.huawei.com/consumer/en/doc/harmonyos-references/share-system-share#section20696483813} {SharedRecord.thumbnailFilePath}
|
pure virtual |
Gets the optional title of the shared record.
If there is no title null string is provided. See \l {https://developer.huawei.com/consumer/en/doc/harmonyos-references/share-system-share#section20696483813} {SharedRecord.title}