diff options
| author | Tibor Csötönyi <work@taibsu.de> | 2023-05-07 21:29:44 +0200 |
|---|---|---|
| committer | Linus Jahn <lnj@kaidan.im> | 2023-05-14 23:58:01 +0200 |
| commit | eab17404ecccc6719decb7e8846d9c8e75e917c1 (patch) | |
| tree | f36e3ac8a1de30289e63505481ffd713abeebda2 /src/base/QXmppJingleData.h | |
| parent | fd1a242b154dd74765e4f29ad26e7f743a8bb478 (diff) | |
Code review fixes
Diffstat (limited to 'src/base/QXmppJingleData.h')
| -rw-r--r-- | src/base/QXmppJingleData.h | 19 |
1 files changed, 16 insertions, 3 deletions
diff --git a/src/base/QXmppJingleData.h b/src/base/QXmppJingleData.h index 1e425f4d..82ef8c00 100644 --- a/src/base/QXmppJingleData.h +++ b/src/base/QXmppJingleData.h @@ -463,6 +463,8 @@ public: using RtpSessionState = std::variant<RtpSessionStateActive, RtpSessionStateHold, RtpSessionStateUnhold, RtpSessionStateMuting, RtpSessionStateRinging>; + using Reason = QXmppJingleReason; + /// \internal /// /// The QXmppJingleIq::Content class represents the "content" element of a @@ -492,6 +494,18 @@ public: QXmppJingleDescription description() const; void setDescription(const QXmppJingleDescription &description); +#if QXMPP_DEPRECATED_SINCE(1, 6) + QString descriptionMedia() const; + void setDescriptionMedia(const QString &media); + + quint32 descriptionSsrc() const; + void setDescriptionSsrc(quint32 ssrc); + + void addPayloadType(const QXmppJinglePayloadType &payload); + QList<QXmppJinglePayloadType> payloadTypes() const; + void setPayloadTypes(const QList<QXmppJinglePayloadType> &payloadTypes); +#endif + bool isRtpMultiplexingSupported() const; void setRtpMultiplexingSupported(bool isRtpMultiplexingSupported); @@ -636,11 +650,10 @@ public: /// \endcond static bool isJingleMessageInitiationElement(const QDomElement &); + static QString jmiElementTypeToString(Type type); + static std::optional<Type> stringToJmiElementType(const QString &typeStr); private: - QString jmiElementTypeToString(Type type) const; - Type stringToJmiElementType(const QString &typeStr) const; - QSharedDataPointer<QXmppJingleMessageInitiationElementPrivate> d; }; |
