Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/src/buddy.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/buddy.py')
-rw-r--r--src/buddy.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/buddy.py b/src/buddy.py
index d41e1b4..94227ea 100644
--- a/src/buddy.py
+++ b/src/buddy.py
@@ -401,6 +401,16 @@ class Buddy(ExportedGObject):
props[_PROP_CURACT] = self.props.current_activity or ''
return props
+ def get_identifier_by_plugin(self, plugin):
+ """
+ :Parameters:
+ `plugin` : TelepathyPlugin
+ The Telepathy connection
+ :Returns: a tuple (Telepathy handle: integer,
+ unique identifier: str) or None
+ """
+ return self._handles.get(plugin)
+
@dbus.service.method(_BUDDY_INTERFACE,
in_signature='', out_signature='a(sou)')
def GetTelepathyHandles(self):