QXmpp: QXmppCarbonManagerV2.h Source File

QXmpp Version: 1.14.4

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
10 class QXMPP_EXPORT QXmppCarbonManagerV2 : public QXmppClientExtension
11{
12 Q_OBJECT
13public:
14 QXmppCarbonManagerV2();
15 ~QXmppCarbonManagerV2();
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
QXmppClientExtension::onUnregistered
virtual void onUnregistered(QXmppClient *client)
Definition QXmppClientExtension.cpp:95
QXmppClientExtension::onRegistered
virtual void onRegistered(QXmppClient *client)
Definition QXmppClientExtension.cpp:85
QXmppClientExtension::client
QXmppClient * client() const
Definition QXmppClientExtension.cpp:57
QXmppClientExtension::QXmppClientExtension
QXmppClientExtension()
Definition QXmppClientExtension.cpp:12
QXmppClientExtension::handleStanza
virtual bool handleStanza(const QDomElement &stanza)
You need to implement this method to process incoming XMPP stanzas.
Definition client/compat/removed_api.cpp:44