|
QXmpp Version: 1.15.1
|
Public Member Functions | |
| MediaSource () | |
| MediaSource (const QUrl &uri, const QMimeType &contentType) | |
| MediaSource (const QXmppDataForm::MediaSource &) | |
| Default copy-constructor. | |
| MediaSource (QXmppDataForm::MediaSource &&) | |
| Default move-constructor. | |
| MediaSource & | operator= (const MediaSource &) |
| Default assignment operator. | |
| MediaSource & | operator= (MediaSource &&) |
| Default move-assignment operator. | |
| QUrl | uri () const |
| void | setUri (const QUrl &uri) |
| QMimeType | contentType () const |
| void | setContentType (const QMimeType &contentType) |
| bool | operator== (const MediaSource &other) const |
The QXmppDataForm::MediaSource class represents a link to one of possibly multiple sources for a media element from XEP-0221: Data Forms Media Element consisting of a MIME type and a QUrl.
| QXmppDataForm::MediaSource::MediaSource | ( | ) |
Default constructor
| QXmppDataForm::MediaSource::MediaSource | ( | const QUrl & | uri, |
| const QMimeType & | contentType ) |
Constructs a MediaSource and sets its uri and contentType.
| uri | |
| contentType |
| QMimeType QXmppDataForm::MediaSource::contentType | ( | ) | const |
Returns the content type of the source
| bool QXmppDataForm::MediaSource::operator== | ( | const MediaSource & | other | ) | const |
Returns true if two media sources are identical.
| void QXmppDataForm::MediaSource::setContentType | ( | const QMimeType & | contentType | ) |
Sets the content type of the media source.
| void QXmppDataForm::MediaSource::setUri | ( | const QUrl & | uri | ) |
Sets the URI.
| QUrl QXmppDataForm::MediaSource::uri | ( | ) | const |
Returns the media URI as QUrl. This can be i.e. a http:// URL or a cid: Bits of Binary URI.