28 #include <QAbstractSocket> 30 #include "QXmppConfiguration.h" 31 #include "QXmppLogger.h" 32 #include "QXmppPresence.h" 37 class QXmppClientPrivate;
44 class QXmppDiscoveryIq;
84 Q_PROPERTY(
QXmppLogger* logger READ logger WRITE setLogger NOTIFY loggerChanged)
85 Q_PROPERTY(State state READ state NOTIFY stateChanged)
113 QList<QXmppClientExtension*> extensions();
130 const QList<QXmppClientExtension*> list = extensions();
131 for (
auto ext : list)
133 T* extension = qobject_cast<T*>(ext);
140 bool isAuthenticated()
const;
141 bool isConnected()
const;
143 bool isActive()
const;
144 void setActive(
bool active);
153 QAbstractSocket::SocketError socketError();
154 QString socketErrorString()
const;
156 QXmppStanza::Error::Condition xmppStreamError();
158 #if QXMPP_DEPRECATED_SINCE(1, 1) 159 QT_DEPRECATED_X(
"Use QXmppClient::findExtension<QXmppRosterManager>() instead")
162 QT_DEPRECATED_X(
"Use QXmppClient::findExtension<QXmppVCardManager>() instead")
165 QT_DEPRECATED_X(
"Use QXmppClient::findExtension<QXmppVersionManager>() instead")
222 void iqReceived(
const QXmppIq &iq);
226 void sslErrors(
const QList<QSslError> &errors);
235 void connectToServer(
const QString &jid,
236 const QString &password);
237 void disconnectFromServer();
239 void sendMessage(
const QString& bareJid,
const QString& message);
242 void _q_elementReceived(
const QDomElement &element,
bool &handled);
244 void _q_socketStateChanged(QAbstractSocket::SocketState state);
245 void _q_streamConnected();
246 void _q_streamDisconnected();
250 QXmppClientPrivate *
const d;
253 #endif // QXMPPCLIENT_H The QXmppVersionManager class makes it possible to request for the software version of an entity as d...
Definition: QXmppVersionManager.h:41
The QXmppConfiguration class holds configuration options.
Definition: QXmppConfiguration.h:48
Error due to no response to a keep alive.
Definition: QXmppClient.h:94
The QXmppVCardManager class gets/sets XMPP vCards. It is an implementation of XEP-0054: vcard-temp...
Definition: QXmppVCardManager.h:56
Disconnected from the server.
Definition: QXmppClient.h:101
Trying to connect to the server.
Definition: QXmppClient.h:102
The QXmppStanza class is the base class for all XMPP stanzas.
Definition: QXmppStanza.h:91
No error.
Definition: QXmppClient.h:92
The QXmppLoggable class represents a source of logging messages.
Definition: QXmppLogger.h:111
Error
Definition: QXmppClient.h:90
The QXmppRosterManager class provides access to a connected client's roster.
Definition: QXmppRosterManager.h:67
The QXmppLogger class represents a sink for logging messages.
Definition: QXmppLogger.h:45
The QXmppStream class is the base class for all XMPP streams.
Definition: QXmppStream.h:41
The QXmppPresence class represents an XMPP presence stanza.
Definition: QXmppPresence.h:36
The QXmppIq class is the base class for all IQs.
Definition: QXmppIq.h:42
The QXmppMessage class represents an XMPP message.
Definition: QXmppMessage.h:40
T * findExtension()
Returns the extension which can be cast into type T*, or 0 if there is no such extension.
Definition: QXmppClient.h:128
State
This enumeration describes a client state.
Definition: QXmppClient.h:99
The QXmppClientExtension class is the base class for QXmppClient extensions.
Definition: QXmppClientExtension.h:47
Error due to TCP socket.
Definition: QXmppClient.h:93
The QXmppClient class is the main class for using QXmpp.
Definition: QXmppClient.h:80