[Telepathy-commits] [telepathy-qt4/master] Add a closed() signal that wraps the channel interface's closed() signal.
George Goldberg
george.goldberg at collabora.co.uk
Wed Nov 19 06:03:10 PST 2008
---
TelepathyQt4/cli-channel.cpp | 3 +++
TelepathyQt4/cli-channel.h | 7 +++++++
2 files changed, 10 insertions(+), 0 deletions(-)
diff --git a/TelepathyQt4/cli-channel.cpp b/TelepathyQt4/cli-channel.cpp
index bd643e6..c0c046f 100644
--- a/TelepathyQt4/cli-channel.cpp
+++ b/TelepathyQt4/cli-channel.cpp
@@ -633,6 +633,9 @@ void Channel::onClosed()
if (mPriv->readiness != ReadinessDead)
mPriv->changeReadiness(ReadinessDead);
+
+ // Relay the channel interface's closed() signal.
+ emit closed();
}
void Channel::gotGroupProperties(QDBusPendingCallWatcher* watcher)
diff --git a/TelepathyQt4/cli-channel.h b/TelepathyQt4/cli-channel.h
index cffe3a5..1142b2c 100644
--- a/TelepathyQt4/cli-channel.h
+++ b/TelepathyQt4/cli-channel.h
@@ -209,6 +209,13 @@ Q_SIGNALS:
void readinessChanged(Telepathy::Client::Channel::Readiness newReadiness);
/**
+ * Emitted when the channel has been closed. Method calls on the channel
+ * are no longer valid after this signal has been emitted, and the
+ * connection manager may then remove the object from the bus at any point.
+ */
+ void closed();
+
+ /**
* \name Group interface
*
* Cached access to state of the group interface on the associated remote
--
1.5.6.5
More information about the Telepathy-commits
mailing list