[Telepathy-commits] [telepathy-qt4/master] Expose the owning connection in Channel
Olli Salli
olli.salli at collabora.co.uk
Mon Nov 3 06:59:53 PST 2008
---
TelepathyQt4/cli-channel.cpp | 5 +++++
TelepathyQt4/cli-channel.h | 7 +++++++
2 files changed, 12 insertions(+), 0 deletions(-)
diff --git a/TelepathyQt4/cli-channel.cpp b/TelepathyQt4/cli-channel.cpp
index 1fbadf9..cf22e6c 100644
--- a/TelepathyQt4/cli-channel.cpp
+++ b/TelepathyQt4/cli-channel.cpp
@@ -407,6 +407,11 @@ Channel::~Channel()
delete mPriv;
}
+Connection* Channel::connection() const
+{
+ return mPriv->connection;
+}
+
Channel::Readiness Channel::readiness() const
{
return mPriv->readiness;
diff --git a/TelepathyQt4/cli-channel.h b/TelepathyQt4/cli-channel.h
index 858c6ad..9ca7c21 100644
--- a/TelepathyQt4/cli-channel.h
+++ b/TelepathyQt4/cli-channel.h
@@ -152,6 +152,13 @@ public:
~Channel();
/**
+ * Returns the owning Connection of the Channel.
+ *
+ * \return Pointer to the Connection.
+ */
+ Connection* connection() const;
+
+ /**
* Returns the current readiness of the Channel.
*
* \return The readiness, as defined in #Readiness.
--
1.5.6.5
More information about the Telepathy-commits
mailing list