summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2012-06-05 13:11:05 +0300
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2012-06-05 15:53:05 +0300
commitdb575f308f1a7835a84344641205677c078e3d93 (patch)
tree5c4167612c4a24b25fabcad7948d34d5fb0f8622
parentfff05e944e2cdc3a58e2ab87be41aa6ea2e9ed88 (diff)
downloadobexd-db575f308f1a7835a84344641205677c078e3d93.tar.gz
test: Use org.bluez.obex namespace in opp-client script
-rwxr-xr-xtest/opp-client26
1 files changed, 13 insertions, 13 deletions
diff --git a/test/opp-client b/test/opp-client
index ef76d18..b7e434c 100755
--- a/test/opp-client
+++ b/test/opp-client
@@ -21,17 +21,17 @@ class OppClient:
def __init__(self, session_path):
self.transfer_path = None
bus = dbus.SessionBus()
- obj = bus.get_object("org.openobex.client", session_path)
- self.session = dbus.Interface(obj, "org.openobex.Session")
- self.opp = dbus.Interface(obj, "org.openobex.ObjectPush")
+ obj = bus.get_object("org.bluez.obex.client", session_path)
+ self.session = dbus.Interface(obj, "org.bluez.obex.Session")
+ self.opp = dbus.Interface(obj, "org.bluez.obex.ObjectPush")
bus.add_signal_receiver(self.transfer_complete,
- dbus_interface="org.openobex.Transfer",
- signal_name="Complete",
- path_keyword="path")
+ dbus_interface="org.bluez.obex.Transfer",
+ signal_name="Complete",
+ path_keyword="path")
bus.add_signal_receiver(self.transfer_error,
- dbus_interface="org.openobex.Transfer",
- signal_name="Error",
- path_keyword="path")
+ dbus_interface="org.bluez.obex.Transfer",
+ signal_name="Error",
+ path_keyword="path")
def create_transfer_reply(self, reply):
(path, properties) = reply
@@ -79,13 +79,13 @@ if __name__ == '__main__':
bus = dbus.SessionBus()
mainloop = gobject.MainLoop()
- client = dbus.Interface(bus.get_object("org.openobex.client", "/"),
- "org.openobex.Client")
+ client = dbus.Interface(bus.get_object("org.bluez.obex.client", "/"),
+ "org.bluez.obex.Client")
print "Creating Session"
- session_path = client.CreateSession(options.device, { "Target": "OPP" })
+ path = client.CreateSession(options.device, { "Target": "OPP" })
- opp_client = OppClient(session_path)
+ opp_client = OppClient(path)
if options.pull_to_file:
opp_client.pull_business_card(options.pull_to_file)