summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorOlli Salli <ollisal@gmail.com>2011-08-22 21:28:02 +0300
committerOlli Salli <ollisal@gmail.com>2011-10-10 19:17:41 +0300
commit3ce59efbd5d4b960bc34225a4dd6cfa9a176465a (patch)
treeeb3f5335b2a45625b552732388661e690eaee61e /examples
parent1b77f30f2a0693357673cc631dac215927ea6a54 (diff)
StreamTubeServer: Remove tube requested/closed slots
StreamTube Channels getting opened and closed is a lower level concept and not as interesting to the average user of this API as exporting sockets and connection tracking. Also, channels getting dispatched and closed is not a tubes-specific mechanism, but common to all channels.
Diffstat (limited to 'examples')
-rw-r--r--examples/stream-tubes/tube-initiator.cpp25
-rw-r--r--examples/stream-tubes/tube-initiator.h4
2 files changed, 0 insertions, 29 deletions
diff --git a/examples/stream-tubes/tube-initiator.cpp b/examples/stream-tubes/tube-initiator.cpp
index 6fbceaed..a0487fe7 100644
--- a/examples/stream-tubes/tube-initiator.cpp
+++ b/examples/stream-tubes/tube-initiator.cpp
@@ -69,13 +69,6 @@ TubeInitiator::TubeInitiator(const QString &accountName, const QString &receiver
accountFactory, connectionFactory, channelFactory, contactFactory);
connect(mTubeServer.data(),
- SIGNAL(tubeRequested(Tp::AccountPtr,Tp::OutgoingStreamTubeChannelPtr,QDateTime,Tp::ChannelRequestHints)),
- SLOT(onTubeRequested(Tp::AccountPtr,Tp::OutgoingStreamTubeChannelPtr,QDateTime,Tp::ChannelRequestHints)));
- connect(mTubeServer.data(),
- SIGNAL(tubeClosed(Tp::AccountPtr,Tp::OutgoingStreamTubeChannelPtr,QString,QString)),
- SLOT(onTubeClosed(Tp::AccountPtr,Tp::OutgoingStreamTubeChannelPtr,QString,QString)));
-
- connect(mTubeServer.data(),
SIGNAL(newTcpConnection(QHostAddress,quint16,Tp::AccountPtr,Tp::ContactPtr,Tp::OutgoingStreamTubeChannelPtr)),
SLOT(onTubeNewConnection(QHostAddress,quint16,Tp::AccountPtr,Tp::ContactPtr)));
connect(mTubeServer.data(),
@@ -197,24 +190,6 @@ void TubeInitiator::onTubeRequestFinished(PendingOperation *op)
qDebug() << "Stream tube channel request finished successfully!";
}
-void TubeInitiator::onTubeRequested(
- const Tp::AccountPtr &acc,
- const Tp::OutgoingStreamTubeChannelPtr &tube,
- const QDateTime &time,
- const Tp::ChannelRequestHints &hints)
-{
- qDebug() << "Handler received requested tube channel " << tube->objectPath();
-}
-
-void TubeInitiator::onTubeClosed(
- const Tp::AccountPtr &acc,
- const Tp::OutgoingStreamTubeChannelPtr &tube,
- const QString &error,
- const QString &message)
-{
- qDebug() << "Closed tube channel " << tube->objectPath();
-}
-
void TubeInitiator::onTubeNewConnection(
const QHostAddress &srcAddr,
quint16 srcPort,
diff --git a/examples/stream-tubes/tube-initiator.h b/examples/stream-tubes/tube-initiator.h
index 1d557256..bd261b2c 100644
--- a/examples/stream-tubes/tube-initiator.h
+++ b/examples/stream-tubes/tube-initiator.h
@@ -53,10 +53,6 @@ private Q_SLOTS:
void onContactRetrieved(Tp::PendingOperation *op);
void onContactCapabilitiesChanged();
void onTubeRequestFinished(Tp::PendingOperation *op);
- void onTubeRequested(const Tp::AccountPtr &, const Tp::OutgoingStreamTubeChannelPtr &,
- const QDateTime &, const Tp::ChannelRequestHints &);
- void onTubeClosed(const Tp::AccountPtr &, const Tp::OutgoingStreamTubeChannelPtr &,
- const QString &, const QString &);
void onTubeNewConnection(const QHostAddress &, quint16,
const Tp::AccountPtr &, const Tp::ContactPtr &);
void onTubeConnectionClosed(const QHostAddress &, quint16, const Tp::AccountPtr &,