QXmpp Version: 1.5.6
Loading...
Searching...
No Matches
QXmppCarbonManager.h
1// SPDX-FileCopyrightText: 2016 Manjeet Dahiya <manjeetdahiya@gmail.com>
2//
3// SPDX-License-Identifier: LGPL-2.1-or-later
4
5#ifndef QXMPPCARBONMANAGER_H
6#define QXMPPCARBONMANAGER_H
7
8#include "QXmppClientExtension.h"
9
10class QXmppMessage;
11
25class QXMPP_EXPORT QXmppCarbonManager : public QXmppClientExtension
26{
27 Q_OBJECT
28
29public:
31 ~QXmppCarbonManager() override;
32
33 bool carbonsEnabled() const;
34 void setCarbonsEnabled(bool enabled);
35
37 QStringList discoveryFeatures() const override;
38 bool handleStanza(const QDomElement &element) override;
40
41Q_SIGNALS:
44
45private:
46 bool m_carbonsEnabled;
47};
48
49#endif // QXMPPCARBONMANAGER_H
The QXmppCarbonManager class handles message carbons as described in XEP-0280: Message Carbons.
Definition QXmppCarbonManager.h:26
void messageReceived(const QXmppMessage &)
void messageSent(const QXmppMessage &)
The QXmppClientExtension class is the base class for QXmppClient extensions.
Definition QXmppClientExtension.h:33
virtual QStringList discoveryFeatures() const
Definition QXmppClientExtension.cpp:22
virtual bool handleStanza(const QDomElement &stanza)
You need to implement this method to process incoming XMPP stanzas.
Definition QXmppClientExtension.cpp:51
The QXmppMessage class represents an XMPP message.
Definition QXmppMessage.h:35