Loading...
Searching...
No Matches
QXmppCarbonManagerV2.h
// SPDX-FileCopyrightText: 2022 Linus Jahn <lnj@kaidan.im>
//
// SPDX-License-Identifier: LGPL-2.1-or-later
#ifndef QXMPPCARBONMANAGERV2_H
#define QXMPPCARBONMANAGERV2_H
#include "QXmppClientExtension.h"
class QXMPP_EXPORT QXmppCarbonManagerV2 : public QXmppClientExtension
{
Q_OBJECT
public:
QXmppCarbonManagerV2();
~QXmppCarbonManagerV2();
bool handleStanza(const QDomElement &, const std::optional<QXmppE2eeMetadata> &) override;
protected:
void onRegistered(QXmppClient *client) override;
void onUnregistered(QXmppClient *client) override;
private:
void enableCarbons();
// placeholder (we may need a d-ptr in the future)
void *d;
};
#endif // QXMPPCARBONMANAGERV2_H
QXmppCarbonManagerV2
The QXmppCarbonManagerV2 class handles message carbons as described in XEP-0280: Message Carbons.
Definition QXmppCarbonManagerV2.h:11
QXmppClientExtension
The QXmppClientExtension class is the base class for QXmppClient extensions.
Definition QXmppClientExtension.h:32
QXmppClientExtension::onUnregistered
virtual void onUnregistered(QXmppClient *client)
Definition QXmppClientExtension.cpp:95
QXmppClientExtension::onRegistered
virtual void onRegistered(QXmppClient *client)
Definition QXmppClientExtension.cpp:85
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:26
QXmppClient
Main class for starting and managing connections to XMPP servers.
Definition QXmppClient.h:62