summaryrefslogtreecommitdiffstats
path: root/test/dbusdef.py
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2007-01-21 01:51:04 +0000
committerMarcel Holtmann <marcel@holtmann.org>2007-01-21 01:51:04 +0000
commit1c36a2a3227e07660d678b6844cf393aac005119 (patch)
treee80bc224598798225d4bbd3ff45883d68bf18b46 /test/dbusdef.py
parent466a73ed12e3fa2ead2cdc30647741dcd82ea096 (diff)
Add function for connection the transfer manager
Diffstat (limited to 'test/dbusdef.py')
-rw-r--r--test/dbusdef.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/dbusdef.py b/test/dbusdef.py
index b0ab1b89..62203993 100644
--- a/test/dbusdef.py
+++ b/test/dbusdef.py
@@ -38,3 +38,13 @@ input = create_service("input")
audio = create_service("audio")
headset = create_service("headset")
+
+
+def connect_transfer():
+ try:
+ conn = manager.ActivateService("transfer")
+ except:
+ conn = ""
+
+ if (conn != ""):
+ return dbus.Interface(bus.get_object(conn, "/org/bluez/transfer"), 'org.bluez.transfer.Manager')