aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJeremy Lainé <jeremy.laine@m4x.org>2011-04-12 07:22:02 +0000
committerJeremy Lainé <jeremy.laine@m4x.org>2011-04-12 07:22:02 +0000
commit280b90c1bd88dc8798676fd6182510d158f04ba2 (patch)
tree9ff30056599dea053a9efa22f9894a1ab3d75054 /src
parent194762951e6a59808350032f38e05cd0e5d03807 (diff)
downloadqxmpp-280b90c1bd88dc8798676fd6182510d158f04ba2.tar.gz
override QXmppRtpChannel::close()
Diffstat (limited to 'src')
-rw-r--r--src/QXmppRtpChannel.cpp9
-rw-r--r--src/QXmppRtpChannel.h1
2 files changed, 10 insertions, 0 deletions
diff --git a/src/QXmppRtpChannel.cpp b/src/QXmppRtpChannel.cpp
index ee47c524..a9e85ccc 100644
--- a/src/QXmppRtpChannel.cpp
+++ b/src/QXmppRtpChannel.cpp
@@ -247,6 +247,15 @@ qint64 QXmppRtpChannel::bytesAvailable() const
return d->incomingBuffer.size();
}
+/// Closes the RTP channel.
+///
+
+void QXmppRtpChannel::close()
+{
+ d->outgoingTimer->stop();
+ QIODevice::close();
+}
+
/// Processes an incoming RTP packet.
///
/// \param ba
diff --git a/src/QXmppRtpChannel.h b/src/QXmppRtpChannel.h
index 5f74c401..881b31df 100644
--- a/src/QXmppRtpChannel.h
+++ b/src/QXmppRtpChannel.h
@@ -74,6 +74,7 @@ public:
/// \cond
qint64 bytesAvailable() const;
+ void close();
bool isSequential() const;
qint64 pos() const;
bool seek(qint64 pos);