Skip to content
Permalink
Browse files

Refactor data form media element

* Add QXmppDataForm::MediaSource instead of using a QPair<QString,
  QString> to save the URIs and content types.
* Deprecate QXmppDataForm::Media:
  The extra class was useless: Each Field has exactly one media element
  and the media element has only two attributes (size and media sources)
* Add mediaSources and mediaSize attributes to the QXmppDataForm::Field
* Deprecate getters/setters for the Media element of QXmppDataForm::Field
  (they are still working and tested)
  • Loading branch information...
lnjX committed Oct 20, 2019
1 parent 86ca79a commit 979918a40759064c01f31bc099217086b81936d9
Showing with 444 additions and 65 deletions.
  1. +1 −1 doc/Doxyfile.in
  2. +247 −40 src/base/QXmppDataForm.cpp
  3. +66 −5 src/base/QXmppDataForm.h
  4. +130 −19 tests/qxmppdataform/tst_qxmppdataform.cpp
@@ -16,4 +16,4 @@ RECURSIVE = YES
ENABLE_PREPROCESSING = YES
MACRO_EXPANSION = YES
EXPAND_ONLY_PREDEF = YES
PREDEFINED = "QXMPP_DEPRECATED_SINCE(major, minor)="
PREDEFINED = "QXMPP_DEPRECATED_SINCE(major, minor)=1" "QT_DEPRECATED_X(msg)="

0 comments on commit 979918a

Please sign in to comment.
You can’t perform that action at this time.