summaryrefslogtreecommitdiff
path: root/examples
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
commitb67328c9a5c39cbbf2015213cb74516d408fa3f2 (patch)
tree313f756c6e695fb8ef44f14e91d792cc4559f1ae /examples
parentae222e367f520306c63f7c6fbbcdf533a11307f2 (diff)
StreamTube examples: Make all slot arguments have names in declarations
Diffstat (limited to 'examples')
-rw-r--r--examples/stream-tubes/tube-initiator.h9
-rw-r--r--examples/stream-tubes/tube-receiver.h4
2 files changed, 7 insertions, 6 deletions
diff --git a/examples/stream-tubes/tube-initiator.h b/examples/stream-tubes/tube-initiator.h
index 1ced0817..69ab7d3f 100644
--- a/examples/stream-tubes/tube-initiator.h
+++ b/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/examples/stream-tubes/tube-receiver.h b/examples/stream-tubes/tube-receiver.h
index f8ca3491..b6018037 100644
--- a/examples/stream-tubes/tube-receiver.h
+++ b/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();