Qt for HarmonyOS/qtohosextras doc/QOhosSharedRecord Class
(QtOhosExtras::ShareKit::QOhosSharedRecord)
The QOhosSharedRecord class represents a record to be shared with other application. A record can be created using. More...
| Header: | #include <QOhosSharedRecord> |
| qmake: | QT += ohosextras |
| Since: | Qt 5.12.12 |
- List of all members, including inherited members
Public Functions
| virtual | ~QOhosSharedRecord() |
| virtual QString | content() const = 0 |
| virtual QString | description() const = 0 |
| virtual QVariantMap | extraData() const = 0 |
| virtual QString | filePath() const = 0 |
| virtual bool | isUrlContent() const = 0 |
| virtual QString | label() const = 0 |
| virtual QMimeType | mimeType() const = 0 |
| virtual void | setDescription(const QString &description) = 0 |
| virtual void | setExtraData(const QVariantMap &extraData) = 0 |
| virtual void | setLabel(const QString &label) = 0 |
| virtual void | setThumbnail(const QByteArray &thumbnail) = 0 |
| virtual void | setThumbnailFilePath(const QString &thumbnailFilePath) = 0 |
| virtual void | setTitle(const QString &title) = 0 |
| virtual QByteArray | thumbnail() const = 0 |
| virtual QString | thumbnailFilePath() const = 0 |
| virtual QString | title() const = 0 |
Protected Functions
| QOhosSharedRecord() |
Detailed Description
The QOhosSharedRecord class represents a record to be shared with other application. A record can be created using
See SharedRecord.
See also QtOhosExtras::ShareKit::createContentRecord(), QtOhosExtras::ShareKit::createFileRecord(), or, QtOhosExtras::ShareKit::createUrlRecord(), and ..
Member Function Documentation
Default constructs an instance of QOhosSharedRecord.
Destroys the instance of QOhosSharedRecord. The destructor is 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 SharedRecord.content
Gets the optional description of the shared record. If there is no description null string is provided. See SharedRecord.description
See also setDescription().
Gets the optional extra data of the shared record. If there is no extra data empty variant map is provided. See SharedRecord.extraData
See also setExtraData().
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 SharedRecord.content
Provides information if content() contains URL string. For URL content the mimeType() should not be used. See SharedRecord.content
Gets the optional label of the shared record. If there is no label null string is provided. See SharedRecord.label
See also setLabel().
Gets the shared record associated mime type. See SharedRecord.utd
Sets data record description with a given description. See SharedRecord.description
See also description().
Sets exatra data for sharing with a given extraData. See SharedRecord.extraData
See also extraData().
Sets the label indicating the current data record type with a given label. See SharedRecord.label
See also label().
Sets data record thumbnail with a given thumbnail. The thumbnail is an image file content. See SharedRecord.thumbnail
See also thumbnail().
Sets data record thumbnail uri with a given thumbnailFilePath. See SharedRecord.thumbnailUri
See also thumbnailFilePath().
Sets the title of shared content with a given title. See SharedRecord.title
See also title().
Gets the optional thumbnail content of the shared record. If there is no thumbnail empty byte array is provided. See SharedRecord.thumbnail
See also setThumbnail().
Gets the optional thumbnail file path of the shared record. If there is no thumbnail file path null string is provided. See SharedRecord.thumbnailFilePath
See also setThumbnailFilePath().
Gets the optional title of the shared record. If there is no title null string is provided. See SharedRecord.title
See also setTitle().