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_SIGNAL void messageReceived(const QXmppMessage &);
Q_SIGNAL void messageSent(const QXmppMessage &);
private:
bool m_carbonsEnabled;
};
#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