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 QList<QXmppClientExtension*> list = extensions();
131 for (
int i = 0; i < list.size(); ++i)
133 T* extension = qobject_cast<T*>(list.at(i));
140 bool isAuthenticated()
const;
141 bool isConnected()
const;
150 QAbstractSocket::SocketError socketError();
151 QString socketErrorString()
const;
153 QXmppStanza::Error::Condition xmppStreamError();
225 void connectToServer(
const QString &jid,
226 const QString &password);
227 void disconnectFromServer();
229 void sendMessage(
const QString& bareJid,
const QString& message);
232 void _q_elementReceived(
const QDomElement &element,
bool &handled);
234 void _q_socketStateChanged(QAbstractSocket::SocketState state);
235 void _q_streamConnected();
236 void _q_streamDisconnected();
240 QXmppClientPrivate *
const d;
The QXmppClientExtension class is the base class for QXmppClient extensions.
Definition: QXmppClientExtension.h:48
The QXmppClient class is the main class for using QXmpp.
Definition: QXmppClient.h:81
void presenceReceived(const QXmppPresence &presence)
void error(QXmppClient::Error)
State
This enumeration describes a client state.
Definition: QXmppClient.h:100
@ DisconnectedState
Disconnected from the server.
Definition: QXmppClient.h:101
@ ConnectingState
Trying to connect to the server.
Definition: QXmppClient.h:102
T * findExtension()
Returns the extension which can be cast into type T*, or 0 if there is no such extension.
Definition: QXmppClient.h:128
void loggerChanged(QXmppLogger *logger)
This signal is emitted when the logger changes.
Error
Definition: QXmppClient.h:91
@ NoError
No error.
Definition: QXmppClient.h:92
@ KeepAliveError
Error due to no response to a keep alive.
Definition: QXmppClient.h:94
@ SocketError
Error due to TCP socket.
Definition: QXmppClient.h:93
void sslErrors(const QList< QSslError > &errors)
void stateChanged(QXmppClient::State state)
This signal is emitted when the client state changes.
void messageReceived(const QXmppMessage &message)
void iqReceived(const QXmppIq &iq)
The QXmppConfiguration class holds configuration options.
Definition: QXmppConfiguration.h:49
The QXmppIq class is the base class for all IQs.
Definition: QXmppIq.h:43
The QXmppLoggable class represents a source of logging messages.
Definition: QXmppLogger.h:112
The QXmppLogger class represents a sink for logging messages.
Definition: QXmppLogger.h:46
The QXmppMessage class represents an XMPP message.
Definition: QXmppMessage.h:39
The QXmppPresence class represents an XMPP presence stanza.
Definition: QXmppPresence.h:37
The QXmppRosterManager class provides access to a connected client's roster.
Definition: QXmppRosterManager.h:65
The QXmppStanza class is the base class for all XMPP stanzas.
Definition: QXmppStanza.h:91
The QXmppStream class is the base class for all XMPP streams.
Definition: QXmppStream.h:42
The QXmppVCardManager class gets/sets XMPP vCards. It is an implementation of XEP-0054: vcard-temp.
Definition: QXmppVCardManager.h:57
The QXmppVersionManager class makes it possible to request for the software version of an entity as d...
Definition: QXmppVersionManager.h:38