summaryrefslogtreecommitdiff
path: root/qt4
diff options
context:
space:
mode:
authorOlli Salli <ollisal@gmail.com>2011-09-25 20:16:59 +0300
committerOlli Salli <ollisal@gmail.com>2011-10-10 19:17:43 +0300
commit12e023e194d2312f181a591531f4c85fcb165261 (patch)
tree4ddd1aa672423e6d0e818cc4778c72a3614701f1 /qt4
parent59ee26a87301f62d327805a1f7e36ea66cf73bc7 (diff)
StreamTube examples: Make all slot arguments have names in declarations
Diffstat (limited to 'qt4')
-rw-r--r--qt4/examples/stream-tubes/tube-initiator.h9
-rw-r--r--qt4/examples/stream-tubes/tube-receiver.h4
2 files changed, 7 insertions, 6 deletions
diff --git a/qt4/examples/stream-tubes/tube-initiator.h b/qt4/examples/stream-tubes/tube-initiator.h
index 1ced08170..69ab7d3f1 100644
--- a/qt4/examples/stream-tubes/tube-initiator.h
+++ b/qt4/examples/stream-tubes/tube-initiator.h
@@ -53,10 +53,11 @@ private Q_SLOTS:
void onContactRetrieved(Tp::PendingOperation *op);
void onContactCapabilitiesChanged();
void onTubeRequestFinished(Tp::PendingOperation *op);
- void onTubeNewConnection(const QHostAddress &, quint16,
- const Tp::AccountPtr &, const Tp::ContactPtr &);
- void onTubeConnectionClosed(const QHostAddress &, quint16, const Tp::AccountPtr &,
- const Tp::ContactPtr &, const QString &, const QString &);
+ void onTubeNewConnection(const QHostAddress &sourceAddress, quint16 sourcePort,
+ const Tp::AccountPtr &account, const Tp::ContactPtr &contact);
+ void onTubeConnectionClosed(const QHostAddress &sourceAddress, quint16 sourcePort,
+ const Tp::AccountPtr &account, const Tp::ContactPtr &contact,
+ const QString &error, const QString &errorMessage);
void onTcpServerNewConnection();
void onDataFromSocket();
diff --git a/qt4/examples/stream-tubes/tube-receiver.h b/qt4/examples/stream-tubes/tube-receiver.h
index f8ca34917..b60180373 100644
--- a/qt4/examples/stream-tubes/tube-receiver.h
+++ b/qt4/examples/stream-tubes/tube-receiver.h
@@ -42,8 +42,8 @@ public:
~TubeReceiver();
private Q_SLOTS:
- void onTubeAccepted(const QString &);
- void onStateChanged(QLocalSocket::LocalSocketState);
+ void onTubeAccepted(const QString &listenAddress);
+ void onStateChanged(QLocalSocket::LocalSocketState newState);
void onTimerTimeout();
void onDataFromSocket();