aboutsummaryrefslogtreecommitdiff
path: root/source/QXmppClient.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/QXmppClient.cpp')
-rw-r--r--source/QXmppClient.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/source/QXmppClient.cpp b/source/QXmppClient.cpp
index fe6a80dc..13c89d21 100644
--- a/source/QXmppClient.cpp
+++ b/source/QXmppClient.cpp
@@ -65,6 +65,10 @@ QXmppClient::QXmppClient(QObject *parent)
Q_ASSERT(check);
check = connect(m_stream, SIGNAL(xmppConnected()), this,
+ SLOT(xmppConnected()));
+ Q_ASSERT(check);
+
+ check = connect(m_stream, SIGNAL(xmppConnected()), this,
SIGNAL(connected()));
Q_ASSERT(check);
@@ -548,3 +552,10 @@ void QXmppClient::setLogger(QXmppLogger *logger)
m_logger = logger;
}
+/// At connection establishment, send initial presence.
+
+void QXmppClient::xmppConnected()
+{
+ sendPacket(m_clientPresence);
+}
+