Loading...
Searching...
No Matches
QXmppCarbonManager.h
// SPDX-FileCopyrightText: 2016 Manjeet Dahiya <manjeetdahiya@gmail.com>
//
// SPDX-License-Identifier: LGPL-2.1-or-later
#ifndef QXMPPCARBONMANAGER_H
#define QXMPPCARBONMANAGER_H
#include "QXmppClientExtension.h"
class QXmppMessage;
class QXMPP_EXPORT QXmppCarbonManager : public QXmppClientExtension
{
Q_OBJECT
public:
QXmppCarbonManager();
~QXmppCarbonManager() override;
bool carbonsEnabled() const;
void setCarbonsEnabled(bool enabled);
QStringList discoveryFeatures() const override;
bool handleStanza(const QDomElement &element) override;
Q_SIGNALS:
void messageReceived(const QXmppMessage &);
void messageSent(const QXmppMessage &);
private:
bool m_carbonsEnabled;
};
#endif // QXMPPCARBONMANAGER_H
QXmppCarbonManager
The QXmppCarbonManager class handles message carbons as described in XEP-0280: Message Carbons.
Definition QXmppCarbonManager.h:26
QXmppCarbonManager::messageReceived
void messageReceived(const QXmppMessage &)
QXmppCarbonManager::messageSent
void messageSent(const QXmppMessage &)
QXmppClientExtension
The QXmppClientExtension class is the base class for QXmppClient extensions.
Definition QXmppClientExtension.h:32
QXmppClientExtension::discoveryFeatures
virtual QStringList discoveryFeatures() const
Definition QXmppClientExtension.cpp:22
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
QXmppMessage
The QXmppMessage class represents an XMPP message.
Definition QXmppMessage.h:64