telepathy-qt: BaseChannel: Added connection() getter.
Alexandr Akulich
kaffeine at kemper.freedesktop.org
Sat Aug 29 05:49:54 PDT 2015
Module: telepathy-qt
Branch: master
Commit: e6f0f5342aed2b0f9bc7291690b236feb127d72a
URL: http://cgit.freedesktop.org/telepathy/telepathy-qt/commit/?id=e6f0f5342aed2b0f9bc7291690b236feb127d72a
Author: Alexandr Akulich <akulichalexander at gmail.com>
Date: Mon Aug 24 18:54:40 2015 +0600
BaseChannel: Added connection() getter.
---
TelepathyQt/base-channel.cpp | 5 +++++
TelepathyQt/base-channel.h | 2 ++
2 files changed, 7 insertions(+)
diff --git a/TelepathyQt/base-channel.cpp b/TelepathyQt/base-channel.cpp
index 254b094..0db2636 100644
--- a/TelepathyQt/base-channel.cpp
+++ b/TelepathyQt/base-channel.cpp
@@ -151,6 +151,11 @@ QString BaseChannel::uniqueName() const
return mPriv->uniqueName;
}
+BaseConnection *BaseChannel::connection() const
+{
+ return mPriv->connection;
+}
+
bool BaseChannel::registerObject(DBusError *error)
{
if (isRegistered()) {
diff --git a/TelepathyQt/base-channel.h b/TelepathyQt/base-channel.h
index 0b44b6d..a106525 100644
--- a/TelepathyQt/base-channel.h
+++ b/TelepathyQt/base-channel.h
@@ -57,6 +57,8 @@ public:
bool registerObject(DBusError *error = NULL);
virtual QString uniqueName() const;
+ Tp::BaseConnection *connection() const;
+
QString channelType() const;
QList<AbstractChannelInterfacePtr> interfaces() const;
AbstractChannelInterfacePtr interface(const QString &interfaceName) const;
More information about the telepathy-commits
mailing list