Loading...
Searching...
No Matches
QXmppIncomingClient.h
// SPDX-FileCopyrightText: 2010 Jeremy Lainé <jeremy.laine@m4x.org>
//
// SPDX-License-Identifier: LGPL-2.1-or-later
#ifndef QXMPPINCOMINGCLIENT_H
#define QXMPPINCOMINGCLIENT_H
#include "QXmppStream.h"
class QXmppIncomingClientPrivate;
class QXmppPasswordChecker;
class QXMPP_EXPORT QXmppIncomingClient : public QXmppStream
{
Q_OBJECT
public:
QXmppIncomingClient(QSslSocket *socket, const QString &domain, QObject *parent = nullptr);
~QXmppIncomingClient() override;
bool isConnected() const override;
QString jid() const;
void setInactivityTimeout(int secs);
void setPasswordChecker(QXmppPasswordChecker *checker);
Q_SIGNALS:
void elementReceived(const QDomElement &element);
protected:
void handleStream(const QDomElement &element) override;
void handleStanza(const QDomElement &element) override;
private Q_SLOTS:
void onDigestReply();
void onPasswordReply();
void onSocketDisconnected();
void onTimeout();
private:
Q_DISABLE_COPY(QXmppIncomingClient)
QXmppIncomingClientPrivate *d;
friend class QXmppIncomingClientPrivate;
};
#endif
QXmppIncomingClient
Interface for password checkers.
Definition QXmppIncomingClient.h:21
QXmppIncomingClient::elementReceived
void elementReceived(const QDomElement &element)
This signal is emitted when an element is received.
QXmppPasswordChecker
The QXmppPasswordChecker class represents an abstract password checker.
Definition QXmppPasswordChecker.h:83
QXmppStream
The QXmppStream class is the base class for all XMPP streams.
Definition QXmppStream.h:36
QXmppStream::isConnected
virtual bool isConnected() const
Definition QXmppStream.cpp:138
QXmppStream::handleStream
virtual void handleStream(const QDomElement &element)=0
QXmppStream::handleStanza
virtual void handleStanza(const QDomElement &element)=0