Obsolete Members for Media
The following members of class Media are deprecated. They are provided to keep old source code working. We strongly advise against using them in new code.
Public Functions
(deprecated) | Media() |
(deprecated) | Media(const QXmppDataForm::Media &other) |
(deprecated) | ~Media() |
(deprecated) int | height() const |
(deprecated) void | setHeight(int height) |
(deprecated) void | setUris(const QList<QPair<QString, QString>> &uris) |
(deprecated) void | setWidth(int width) |
(deprecated) QList<QPair<QString, QString>> | uris() const |
(deprecated) int | width() const |
(deprecated) QXmppDataForm::Media & | operator=(const QXmppDataForm::Media &other) |
Member Function Documentation
[deprecated] Media::Media()
This function is deprecated. We strongly advise against using it in new code.
Constructs an empty QXmppDataForm::Media.
This class is deprecated since QXmpp 1.1.
[deprecated] Media::Media(const QXmppDataForm::Media &other)
This function is deprecated. We strongly advise against using it in new code.
Constructs a copy of other.
This class is deprecated since QXmpp 1.1.
[noexcept, deprecated] Media::~Media()
This function is deprecated. We strongly advise against using it in new code.
Destroys the media.
This class is deprecated since QXmpp 1.1.
[deprecated] int Media::height() const
This function is deprecated. We strongly advise against using it in new code.
Returns media's height.
This method is deprecated since QXmpp 1.1. Use QXmppDataForm::Field::mediaSize().height() instead.
See also setHeight().
[deprecated] void Media::setHeight(int height)
This function is deprecated. We strongly advise against using it in new code.
Sets media's height.
This method is deprecated since QXmpp 1.1. Use QXmppDataForm::Field::mediaSize().setHeight() instead.
See also height().
[deprecated] void Media::setUris(const QList<QPair<QString, QString>> &uris)
This function is deprecated. We strongly advise against using it in new code.
Sets media's uris.
This method is deprecated since QXmpp 1.1. Use QXmppDataForm::Media::setMediaSources() instead.
See also uris().
[deprecated] void Media::setWidth(int width)
This function is deprecated. We strongly advise against using it in new code.
Sets media's width.
This method is deprecated since QXmpp 1.1. Use QXmppDataForm::Field::mediaSize().setWidth() instead.
See also width().
[deprecated] QList<QPair<QString, QString>> Media::uris() const
This function is deprecated. We strongly advise against using it in new code.
Returns media's uris.
This method is deprecated since QXmpp 1.1. Use QXmppDataForm::Field::mediaSources() instead.
See also setUris().
[deprecated] int Media::width() const
This function is deprecated. We strongly advise against using it in new code.
Returns media's width.
This method is deprecated since QXmpp 1.1. Use QXmppDataForm::Field::mediaSize().width() instead.
See also setWidth().
[deprecated] QXmppDataForm::Media &Media::operator=(const QXmppDataForm::Media &other)
This function is deprecated. We strongly advise against using it in new code.
Assigns other to this media.
This class is deprecated since QXmpp 1.1.