QXmpp: QXmppCarbonManager.h Source File

QXmpp Version: 1.14.3

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
25 class QXMPP_EXPORT QXmppCarbonManager : public QXmppClientExtension
26{
27 Q_OBJECT
28
29public:
30 QXmppCarbonManager();
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
41 Q_SIGNAL void messageReceived(const QXmppMessage &);
42 Q_SIGNAL void messageSent(const QXmppMessage &);
43
44private:
45 bool m_carbonsEnabled;
46};
47
48#endif // QXMPPCARBONMANAGER_H
QXmppCarbonManager::carbonsEnabled
bool carbonsEnabled() const
Definition QXmppCarbonManager.cpp:32
QXmppCarbonManager::messageReceived
Q_SIGNAL void messageReceived(const QXmppMessage &)
QXmppCarbonManager::messageSent
Q_SIGNAL void messageSent(const QXmppMessage &)
QXmppCarbonManager::setCarbonsEnabled
void setCarbonsEnabled(bool enabled)
Definition QXmppCarbonManager.cpp:47
QXmppClientExtension::discoveryFeatures
virtual QStringList discoveryFeatures() const
Definition QXmppClientExtension.cpp:22
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
QXmppMessage
The QXmppMessage class represents an XMPP message.
Definition QXmppMessage.h:64