~ubuntu-branches/ubuntu/vivid/blueman/vivid-proposed

« back to all changes in this revision

Viewing changes to blueman/bluez/AudioSink.py

  • Committer: Package Import Robot
  • Author(s): Artur Rona
  • Date: 2014-12-24 18:33:36 UTC
  • mfrom: (2.3.8 sid)
  • Revision ID: package-import@ubuntu.com-20141224183336-cyb82ot0y8tz8flq
Tags: 1.99~alpha1-1ubuntu1
* Merge from Debian unstable.  Remaining changes:
  - debian/patches/01_dont_autostart_lxde.patch:
    + Don't autostart the applet in LXDE.
  - debian/patches/03_filemanager_fix.patch:
    + Add support for more filemanagers.
* debian/patches/02_dont_crash_on_non-bluetooth_card.patch:
  - Dropped, no longer applicable.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
from PropertiesBlueZInterface import PropertiesBlueZInterface
 
2
from errors import raise_dbus_error
 
3
 
 
4
 
 
5
class AudioSink(PropertiesBlueZInterface):
 
6
    @raise_dbus_error
 
7
    def __init__(self, obj_path=None):
 
8
        if self.__class__.get_interface_version()[0] < 5:
 
9
            interface = 'org.bluez.AudioSink'
 
10
        else:
 
11
            interface = 'org.bluez.AudioSink1'
 
12
 
 
13
        super(AudioSink, self).__init__(interface, obj_path)