28 #include <QAbstractSocket>
30 #include "QXmppConfiguration.h"
31 #include "QXmppLogger.h"
32 #include "QXmppPresence.h"
35 class QXmppClientPrivate;
42 class QXmppDiscoveryIq;
82 Q_PROPERTY(
QXmppLogger* logger READ logger WRITE setLogger NOTIFY loggerChanged)
83 Q_PROPERTY(State state READ state NOTIFY stateChanged)
111 QList<QXmppClientExtension*> extensions();
128 QList<QXmppClientExtension*> list = extensions();
129 for (
int i = 0; i < list.size(); ++i)
131 T* extension = qobject_cast<T*>(list.at(i));
141 bool isAuthenticated()
const;
142 bool isConnected()
const;
151 QAbstractSocket::SocketError socketError();
152 QString socketErrorString()
const;
154 QXmppStanza::Error::Condition xmppStreamError();
213 void iqReceived(
const QXmppIq &iq);
219 void connectToServer(
const QString &jid,
220 const QString &password);
221 void disconnectFromServer();
223 void sendMessage(
const QString& bareJid,
const QString& message);
226 void _q_elementReceived(
const QDomElement &element,
bool &handled);
228 void _q_socketStateChanged(QAbstractSocket::SocketState state);
229 void _q_streamConnected();
230 void _q_streamDisconnected();
234 QXmppClientPrivate *
const d;
237 #endif // QXMPPCLIENT_H
The QXmppVersionManager class makes it possible to request for the software version of an entity as d...
Definition: QXmppVersionManager.h:37
The QXmppConfiguration class holds configuration options.
Definition: QXmppConfiguration.h:48
Error due to XML stream.
Definition: QXmppClient.h:93
The QXmppVCardManager class gets/sets XMPP vCards. It is an implementation of XEP-0054: vcard-temp...
Definition: QXmppVCardManager.h:56
Connected to the server.
Definition: QXmppClient.h:101
Trying to connect to the server.
Definition: QXmppClient.h:100
The QXmppStanza class is the base class for all XMPP stanzas.
Definition: QXmppStanza.h:90
Error
Definition: QXmppClient.h:88
The QXmppLoggable class represents a source of logging messages.
Definition: QXmppLogger.h:111
Error due to TCP socket.
Definition: QXmppClient.h:91
Error due to no response to a keep alive.
Definition: QXmppClient.h:92
Disconnected from the server.
Definition: QXmppClient.h:99
State
This enumeration describes a client state.
Definition: QXmppClient.h:97
The QXmppRosterManager class provides access to a connected client's roster.
Definition: QXmppRosterManager.h:64
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:38
T * findExtension()
Returns the extension which can be cast into type T*, or 0 if there is no such extension.
Definition: QXmppClient.h:126
No error.
Definition: QXmppClient.h:90
The QXmppClientExtension class is the base class for QXmppClient extensions.
Definition: QXmppClientExtension.h:47
The QXmppClient class is the main class for using QXmpp.
Definition: QXmppClient.h:78