MediaSource Class
class QXmppDataForm::MediaSourceThis class was introduced in QXmpp 1.1.
Public Functions
| MediaSource() | |
| MediaSource(const QUrl &uri, const QMimeType &contentType) | |
| MediaSource(const QXmppDataForm::MediaSource &) | |
| MediaSource(QXmppDataForm::MediaSource &&) | |
| QMimeType | contentType() const |
| void | setContentType(const QMimeType &contentType) |
| void | setUri(const QUrl &uri) |
| QUrl | uri() const |
| QXmppDataForm::MediaSource & | operator=(QXmppDataForm::MediaSource &&) |
| QXmppDataForm::MediaSource & | operator=(const QXmppDataForm::MediaSource &) |
| bool | operator==(const QXmppDataForm::MediaSource &other) const |
Detailed Description
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.
Member Function Documentation
MediaSource::MediaSource()
Default constructor
MediaSource::MediaSource(const QUrl &uri, const QMimeType &contentType)
Constructs a MediaSource and sets its uri and contentType.
MediaSource::MediaSource(const QXmppDataForm::MediaSource &)
Default copy-constructor
MediaSource::MediaSource(QXmppDataForm::MediaSource &&)
Default move-constructor
QMimeType MediaSource::contentType() const
Returns the content type of the source
See also setContentType().
void MediaSource::setContentType(const QMimeType &contentType)
Sets the content type of the media source.
contentType.
See also contentType().
void MediaSource::setUri(const QUrl &uri)
Sets the URI.
uri.
See also uri().
QUrl MediaSource::uri() const
Returns the media URI as QUrl. This can be i.e. a http:// URL or a cid: Bits of Binary URI.
See also setUri().
QXmppDataForm::MediaSource &MediaSource::operator=(QXmppDataForm::MediaSource &&)
Default move-assignment operator
QXmppDataForm::MediaSource &MediaSource::operator=(const QXmppDataForm::MediaSource &)
Default assignment operator
bool MediaSource::operator==(const QXmppDataForm::MediaSource &other) const
Returns true if this media source and other are identical.