6#ifndef QXMPPJINGLEMESSAGEINITIATIONMANAGER_H
7#define QXMPPJINGLEMESSAGEINITIATIONMANAGER_H
9#include "QXmppClientExtension.h"
10#include "QXmppError.h"
11#include "QXmppJingleIq.h"
12#include "QXmppMessageHandler.h"
13#include "QXmppSendResult.h"
17class QXmppJingleMessageInitiationPrivate;
18class QXmppJingleMessageInitiationManagerPrivate;
25 std::optional<QXmppJingleReason> reason;
26 bool containsTieBreak;
30 std::optional<QXmppJingleReason> reason;
31 bool containsTieBreak;
35 std::optional<QXmppJingleReason> reason;
40 using Result = std::variant<Rejected, Retracted, Finished, QXmppError>;
52 Q_SIGNAL
void proceeded(
const QString &
id,
const QString &callPartnerResource);
57 void setId(
const QString &
id);
58 void setCallPartnerJid(
const QString &callPartnerJid);
59 QString callPartnerJid()
const;
60 bool isProceeded()
const;
61 void setIsProceeded(
bool isProceeded);
63 std::unique_ptr<QXmppJingleMessageInitiationPrivate> d;
66 friend class tst_QXmppJingleMessageInitiationManager;
79 QStringList discoveryFeatures()
const override;
83 const QString &callPartnerJid,
87 const std::shared_ptr<QXmppJingleMessageInitiation> &jmi,
89 const std::optional<QXmppJingleDescription> &description);
99 const QString &callPartnerJid);
101 void clear(
const std::shared_ptr<QXmppJingleMessageInitiation> &jmi);
105 bool handleExistingJmi(
const std::shared_ptr<QXmppJingleMessageInitiation> &existingJmi,
const QXmppJingleMessageInitiationElement &jmiElement,
const QString &callPartnerResource);
107 bool handleTieBreak(
const std::shared_ptr<QXmppJingleMessageInitiation> &existingJmi,
const QXmppJingleMessageInitiationElement &jmiElement,
const QString &callPartnerResource);
108 bool handleExistingSession(
const std::shared_ptr<QXmppJingleMessageInitiation> &existingJmi,
const QString &jmiElementId);
109 bool handleNonExistingSession(
const std::shared_ptr<QXmppJingleMessageInitiation> &existingJmi,
const QString &jmiElementId,
const QString &callPartnerResource);
110 std::shared_ptr<QXmppJingleMessageInitiation> addJmi(
const QString &callPartnerJid);
111 const QVector<std::shared_ptr<QXmppJingleMessageInitiation>> &jmis()
const;
114 std::unique_ptr<QXmppJingleMessageInitiationManagerPrivate> d;
116 friend class QXmppJingleMessageInitiationPrivate;
117 friend class tst_QXmppJingleMessageInitiationManager;
The QXmppClientExtension class is the base class for QXmppClient extensions.
Definition: QXmppClientExtension.h:32
The QXmppJingleDescription class represents descriptions for Jingle elements including media type,...
Definition: QXmppJingleData.h:246
The QXmppJingleMessageInitiationElement class represents a Jingle Message Initiation element as speci...
Definition: QXmppJingleData.h:602
The QXmppJingleMessageInitiationManager class makes it possible to retrieve Jingle Message Initiation...
Definition: QXmppJingleMessageInitiationManager.h:70
Q_SIGNAL void proposed(const std::shared_ptr< QXmppJingleMessageInitiation > &jmi, const QString &id, const std::optional< QXmppJingleDescription > &description)
std::variant< std::shared_ptr< QXmppJingleMessageInitiation >, QXmppError > ProposeResult
Definition: QXmppJingleMessageInitiationManager.h:73
The QXmppJingleMessageInitiation class holds information about the JMI element in the current context...
Definition: QXmppJingleMessageInitiationManager.h:21
Q_SIGNAL void closed(const Result &result)
Q_SIGNAL void proceeded(const QString &id, const QString &callPartnerResource)
std::variant< Rejected, Retracted, Finished, QXmppError > Result
Variant of Rejected, Retracted, Finished or Error result types.
Definition: QXmppJingleMessageInitiationManager.h:40
Definition: QXmppMessageHandler.h:16
The QXmppMessage class represents an XMPP message.
Definition: QXmppMessage.h:64
Definition: QXmppTask.h:62
Definition: QXmppError.h:17