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;
143 bool isActive()
const;
144 void setActive(
bool active);
153 QAbstractSocket::SocketError socketError();
154 QString socketErrorString()
const;
156 QXmppStanza::Error::Condition xmppStreamError();
215 void iqReceived(
const QXmppIq &iq);
219 void sslErrors(
const QList<QSslError> &errors);
228 void connectToServer(
const QString &jid,
229 const QString &password);
230 void disconnectFromServer();
232 void sendMessage(
const QString& bareJid,
const QString& message);
235 void _q_elementReceived(
const QDomElement &element,
bool &handled);
237 void _q_socketStateChanged(QAbstractSocket::SocketState state);
238 void _q_streamConnected();
239 void _q_streamDisconnected();
243 QXmppClientPrivate *
const d;
246 #endif // QXMPPCLIENT_H
The QXmppPresence class represents an XMPP presence stanza.
Definition: QXmppPresence.h:36
Error due to no response to a keep alive.
Definition: QXmppClient.h:94
The QXmppRosterManager class provides access to a connected client's roster.
Definition: QXmppRosterManager.h:64
The QXmppVCardManager class gets/sets XMPP vCards. It is an implementation of XEP-0054: vcard-temp.
Definition: QXmppVCardManager.h:56
The QXmppClientExtension class is the base class for QXmppClient extensions.
Definition: QXmppClientExtension.h:47
The QXmppStanza class is the base class for all XMPP stanzas.
Definition: QXmppStanza.h:90
Error due to TCP socket.
Definition: QXmppClient.h:93
T * findExtension()
Returns the extension which can be cast into type T*, or 0 if there is no such extension.
Definition: QXmppClient.h:128
Error
Definition: QXmppClient.h:90
No error.
Definition: QXmppClient.h:92
State
This enumeration describes a client state.
Definition: QXmppClient.h:99
The QXmppLogger class represents a sink for logging messages.
Definition: QXmppLogger.h:45
The QXmppConfiguration class holds configuration options.
Definition: QXmppConfiguration.h:48
Disconnected from the server.
Definition: QXmppClient.h:101
The QXmppStream class is the base class for all XMPP streams.
Definition: QXmppStream.h:41
Trying to connect to the server.
Definition: QXmppClient.h:102
The QXmppIq class is the base class for all IQs.
Definition: QXmppIq.h:42
The QXmppClient class is the main class for using QXmpp.
Definition: QXmppClient.h:80
The QXmppLoggable class represents a source of logging messages.
Definition: QXmppLogger.h:111
The QXmppVersionManager class makes it possible to request for the software version of an entity as d...
Definition: QXmppVersionManager.h:37
The QXmppMessage class represents an XMPP message.
Definition: QXmppMessage.h:38