diff options
author | Olli Salli <ollisal@gmail.com> | 2011-09-12 20:47:55 +0300 |
---|---|---|
committer | Olli Salli <ollisal@gmail.com> | 2011-10-10 19:17:42 +0300 |
commit | cd38491310b0657a6972bed3565b093de829b319 (patch) | |
tree | 996d54a7a314c256dff41e7b0f8c287a5ea72b0b /qt4/TelepathyQt4 | |
parent | b33a5bf2b12e4fa66065967625a27028a07eb3d1 (diff) |
STC: Reorder most important args of the accepted* signals first
Diffstat (limited to 'qt4/TelepathyQt4')
-rw-r--r-- | qt4/TelepathyQt4/stream-tube-client.cpp | 8 | ||||
-rw-r--r-- | qt4/TelepathyQt4/stream-tube-client.h | 12 |
2 files changed, 10 insertions, 10 deletions
diff --git a/qt4/TelepathyQt4/stream-tube-client.cpp b/qt4/TelepathyQt4/stream-tube-client.cpp index a7d85e261..55a823fbc 100644 --- a/qt4/TelepathyQt4/stream-tube-client.cpp +++ b/qt4/TelepathyQt4/stream-tube-client.cpp @@ -448,11 +448,11 @@ void StreamTubeClient::onAcceptFinished(TubeWrapper *wrapper, PendingStreamTubeC if (conn->addressType() == SocketAddressTypeIPv4 || conn->addressType() == SocketAddressTypeIPv6) { QPair<QHostAddress, quint16> addr = conn->ipAddress(); - emit tubeAcceptedAsTcp(wrapper->mAcc, wrapper->mTube, addr.first, addr.second, - wrapper->mSourceAddress, wrapper->mSourcePort); + emit tubeAcceptedAsTcp(addr.first, addr.second, wrapper->mSourceAddress, + wrapper->mSourcePort, wrapper->mAcc, wrapper->mTube); } else { - emit tubeAcceptedAsUnix(wrapper->mAcc, wrapper->mTube, conn->localAddress(), - conn->requiresCredentials(), conn->credentialByte()); + emit tubeAcceptedAsUnix(conn->localAddress(), conn->requiresCredentials(), + conn->credentialByte(), wrapper->mAcc, wrapper->mTube); } } diff --git a/qt4/TelepathyQt4/stream-tube-client.h b/qt4/TelepathyQt4/stream-tube-client.h index 1f77c3456..00f4a3309 100644 --- a/qt4/TelepathyQt4/stream-tube-client.h +++ b/qt4/TelepathyQt4/stream-tube-client.h @@ -144,18 +144,18 @@ Q_SIGNALS: // These will be emitted if a offered tube is accepted successfully, when setToAcceptAsTCP/Unix // has been called last void tubeAcceptedAsTcp( - const Tp::AccountPtr &account, - const Tp::IncomingStreamTubeChannelPtr &tube, const QHostAddress &listenAddress, quint16 listenPort, const QHostAddress &sourceAddress, // these are populated with the source address the - quint16 sourcePort); // generator, if any, yieled for this tube - void tubeAcceptedAsUnix( + quint16 sourcePort, // generator, if any, yieled for this tube const Tp::AccountPtr &account, - const Tp::IncomingStreamTubeChannelPtr &tube, + const Tp::IncomingStreamTubeChannelPtr &tube); + void tubeAcceptedAsUnix( const QString &listenAddress, bool requiresCredentials, // this is the requireCredentials param unchanged - uchar credentialByte); + uchar credentialByte, + const Tp::AccountPtr &account, + const Tp::IncomingStreamTubeChannelPtr &tube); // These will be emitted if monitorConnections = true was passed to the create() method // Sadly, there is no other possible way to associate multiple connections through a single tube |