diff options
| author | Jeremy Lainé <jeremy.laine@m4x.org> | 2011-05-03 11:15:38 +0000 |
|---|---|---|
| committer | Jeremy Lainé <jeremy.laine@m4x.org> | 2011-05-03 11:15:38 +0000 |
| commit | 2cda4e999fd59fab7fd16ec7cb718b95dd83b2f6 (patch) | |
| tree | cd6bc5a3bbaa6fda7b124b12fdcee8f20a1fc98f /examples/example_4_callHandling/xmppClient.cpp | |
| parent | 249aaaf51d866f1949b41849e4f3f43af522d8a0 (diff) | |
| download | qxmpp-2cda4e999fd59fab7fd16ec7cb718b95dd83b2f6.tar.gz | |
fix signal connections
Diffstat (limited to 'examples/example_4_callHandling/xmppClient.cpp')
| -rw-r--r-- | examples/example_4_callHandling/xmppClient.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
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); } |
