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.
- Since
- QXmpp 1.1
◆ MediaSource() [1/2]
QXmppDataForm::MediaSource::MediaSource |
( |
| ) |
|
◆ MediaSource() [2/2]
QXmppDataForm::MediaSource::MediaSource |
( |
const QUrl & |
uri, |
|
|
const QMimeType & |
contentType |
|
) |
| |
Constructs a MediaSource and sets its uri and contentType.
- Parameters
-
◆ contentType()
QMimeType QXmppDataForm::MediaSource::contentType |
( |
| ) |
const |
Returns the content type of the source
◆ operator==()
bool QXmppDataForm::MediaSource::operator== |
( |
const MediaSource & |
other | ) |
const |
Returns true if two media sources are identical.
◆ setContentType()
void QXmppDataForm::MediaSource::setContentType |
( |
const QMimeType & |
contentType | ) |
|
Sets the content type of the media source.
◆ setUri()
void QXmppDataForm::MediaSource::setUri |
( |
const QUrl & |
uri | ) |
|
◆ 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.
The documentation for this class was generated from the following files: