QXmpp Version: 1.5.6
Loading...
Searching...
No Matches
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 setClient(QXmppClient *client) override;
21
22private:
23 void enableCarbons();
24
25 // placeholder (we may need a d-ptr in the future)
26 void *d;
27};
28
29#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:33
virtual void setClient(QXmppClient *client)
Definition QXmppClientExtension.cpp:88
virtual bool handleStanza(const QDomElement &stanza)
You need to implement this method to process incoming XMPP stanzas.
Definition QXmppClientExtension.cpp:51
The QXmppClient class is the main class for using QXmpp.
Definition QXmppClient.h:84