From 2cda4e999fd59fab7fd16ec7cb718b95dd83b2f6 Mon Sep 17 00:00:00 2001 From: Jeremy Lainé Date: Tue, 3 May 2011 11:15:38 +0000 Subject: fix signal connections --- examples/example_4_callHandling/xmppClient.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'examples/example_4_callHandling') diff --git a/examples/example_4_callHandling/xmppClient.cpp b/examples/example_4_callHandling/xmppClient.cpp index 95e13442..4e798e9c 100644 --- a/examples/example_4_callHandling/xmppClient.cpp +++ b/examples/example_4_callHandling/xmppClient.cpp @@ -93,7 +93,7 @@ void xmppClient::slotCallReceived(QXmppCall *call) qDebug() << "Got call from:" << call->jid(); bool check; - check = connect(call, SIGNAL(stateChanged()), + check = connect(call, SIGNAL(stateChanged(QXmppCall::State)), this, SLOT(slotCallStateChanged(QXmppCall::State))); Q_ASSERT(check); @@ -133,10 +133,13 @@ void xmppClient::slotPresenceReceived(const QXmppPresence &presence) // start the call and connect to the its signals QXmppCall *call = callManager->call(presence.from()); - bool check = connect(call, SIGNAL(connected()), this, SLOT(slotConnected())); + bool check; + check = connect(call, SIGNAL(stateChanged(QXmppCall:State)), + this, SLOT(slotCallStateChanged(QXmppCall::State))); Q_ASSERT(check); - check = connect(call, SIGNAL(finished()), this, SLOT(slotFinished())); + check = connect(call, SIGNAL(audioModeChanged(QIODevice::OpenMode)), + this, SLOT(slotAudioModeChanged(QIODevice::OpenMode))); Q_ASSERT(check); } -- cgit v1.2.3