QXmpp Version: 1.5.6
Loading...
Searching...
No Matches
QXmppIncomingClient.h
1// SPDX-FileCopyrightText: 2010 Jeremy Lainé <jeremy.laine@m4x.org>
2//
3// SPDX-License-Identifier: LGPL-2.1-or-later
4
5#ifndef QXMPPINCOMINGCLIENT_H
6#define QXMPPINCOMINGCLIENT_H
7
8#include "QXmppStream.h"
9
10class QXmppIncomingClientPrivate;
12
15
19
20class QXMPP_EXPORT QXmppIncomingClient : public QXmppStream
21{
22 Q_OBJECT
23
24public:
25 QXmppIncomingClient(QSslSocket *socket, const QString &domain, QObject *parent = nullptr);
26 ~QXmppIncomingClient() override;
27
28 bool isConnected() const override;
29 QString jid() const;
30
31 void setInactivityTimeout(int secs);
32 void setPasswordChecker(QXmppPasswordChecker *checker);
33
34Q_SIGNALS:
36 void elementReceived(const QDomElement &element);
37
38protected:
40 void handleStream(const QDomElement &element) override;
41 void handleStanza(const QDomElement &element) override;
43
44private Q_SLOTS:
45 void onDigestReply();
46 void onPasswordReply();
47 void onSocketDisconnected();
48 void onTimeout();
49
50private:
51 Q_DISABLE_COPY(QXmppIncomingClient)
52 QXmppIncomingClientPrivate *d;
53 friend class QXmppIncomingClientPrivate;
54};
55
56#endif
Interface for password checkers.
Definition QXmppIncomingClient.h:21
void elementReceived(const QDomElement &element)
This signal is emitted when an element is received.
The QXmppPasswordChecker class represents an abstract password checker.
Definition QXmppPasswordChecker.h:83
The QXmppStream class is the base class for all XMPP streams.
Definition QXmppStream.h:36
virtual bool isConnected() const
Definition QXmppStream.cpp:145
virtual void handleStream(const QDomElement &element)=0
virtual void handleStanza(const QDomElement &element)=0