QXmpp Version: 1.10.0
QXmppCarbonManagerV2.h
1// SPDX-FileCopyrightText: 2022 Linus Jahn <lnj@kaidan.im>
2//
3// SPDX-License-Identifier: LGPL-2.1-or-later
4
5#ifndef QXMPPCARBONMANAGERV2_H
6#define QXMPPCARBONMANAGERV2_H
7
8#include "QXmppClientExtension.h"
9
10class QXMPP_EXPORT QXmppCarbonManagerV2 : public QXmppClientExtension
11{
12 Q_OBJECT
13public:
16
17 bool handleStanza(const QDomElement &, const std::optional<QXmppE2eeMetadata> &) override;
18
19protected:
20 void onRegistered(QXmppClient *client) override;
21 void onUnregistered(QXmppClient *client) override;
22
23private:
24 void enableCarbons();
25
26 // placeholder (we may need a d-ptr in the future)
27 void *d;
28};
29
30#endif // QXMPPCARBONMANAGERV2_H
The QXmppCarbonManagerV2 class handles message carbons as described in XEP-0280: Message Carbons.
Definition: QXmppCarbonManagerV2.h:11
The QXmppClientExtension class is the base class for QXmppClient extensions.
Definition: QXmppClientExtension.h:32
virtual void onUnregistered(QXmppClient *client)
Definition: QXmppClientExtension.cpp:95
virtual void onRegistered(QXmppClient *client)
Definition: QXmppClientExtension.cpp:85
virtual bool handleStanza(const QDomElement &stanza)
You need to implement this method to process incoming XMPP stanzas.
Definition: client/compat/removed_api.cpp:26
Main class for starting and managing connections to XMPP servers.
Definition: QXmppClient.h:62