Exemplo n.º 1
0
    def __init__(self, *args, **kwargs):
        MTPDeviceBase.__init__(self, *args, **kwargs)
        self.libmtp = None
        self.known_devices = None
        self.detect_cache = {}

        self.dev = None
        self._filesystem_cache = None
        self.lock = RLock()
        self.blacklisted_devices = set()
        self.ejected_devices = set()
        self.currently_connected_dev = None
Exemplo n.º 2
0
 def __init__(self, *args, **kwargs):
     MTPDeviceBase.__init__(self, *args, **kwargs)
     self.dev = None
     self.blacklisted_devices = set()
     self.ejected_devices = set()
     self.currently_connected_pnp_id = None
     self.detected_devices = {}
     self.previous_devices_on_system = frozenset()
     self.last_refresh_devices_time = time.time()
     self.wpd = self.wpd_error = None
     self._main_id = self._carda_id = self._cardb_id = None
     self.start_thread = None
     self._filesystem_cache = None
     self.eject_dev_on_next_scan = False
     self.current_device_data = {}
Exemplo n.º 3
0
 def __init__(self, *args, **kwargs):
     MTPDeviceBase.__init__(self, *args, **kwargs)
     self.dev = None
     self.blacklisted_devices = set()
     self.ejected_devices = set()
     self.currently_connected_pnp_id = None
     self.detected_devices = {}
     self.previous_devices_on_system = frozenset()
     self.last_refresh_devices_time = time.time()
     self.wpd = self.wpd_error = None
     self._main_id = self._carda_id = self._cardb_id = None
     self.start_thread = None
     self._filesystem_cache = None
     self.eject_dev_on_next_scan = False
     self.current_device_data = {}
Exemplo n.º 4
0
    def __init__(self, *args, **kwargs):
        MTPDeviceBase.__init__(self, *args, **kwargs)
        self.libmtp = None
        self.known_devices = None
        self.detect_cache = {}

        self.dev = None
        self._filesystem_cache = None
        self.lock = RLock()
        self.blacklisted_devices = set()
        self.ejected_devices = set()
        self.currently_connected_dev = None
        self._is_device_mtp = None
        if islinux:
            from calibre.devices.mtp.unix.sysfs import MTPDetect
            self._is_device_mtp = MTPDetect()
Exemplo n.º 5
0
    def __init__(self, *args, **kwargs):
        MTPDeviceBase.__init__(self, *args, **kwargs)
        self.libmtp = None
        self.known_devices = None
        self.detect_cache = {}

        self.dev = None
        self._filesystem_cache = None
        self.lock = RLock()
        self.blacklisted_devices = set()
        self.ejected_devices = set()
        self.currently_connected_dev = None
        self._is_device_mtp = None
        if islinux:
            from calibre.devices.mtp.unix.sysfs import MTPDetect
            self._is_device_mtp = MTPDetect()
Exemplo n.º 6
0
    def __init__(self, *args, **kwargs):
        MTPDeviceBase.__init__(self, *args, **kwargs)
        self.libmtp = None
        self.known_devices = None
        self.detect_cache = {}

        self.dev = None
        self._filesystem_cache = None
        self.lock = RLock()
        self.blacklisted_devices = set()
        self.ejected_devices = set()
        self.currently_connected_dev = None
        self._is_device_mtp = None
        if islinux:
            from calibre.devices.mtp.unix.sysfs import MTPDetect
            self._is_device_mtp = MTPDetect()
        if ismacos and 'osx' in self.supported_platforms:
            from calibre_extensions import usbobserver
            self.usbobserver = usbobserver
            self._is_device_mtp = self.osx_is_device_mtp
Exemplo n.º 7
0
    def __init__(self, *args, **kwargs):
        MTPDeviceBase.__init__(self, *args, **kwargs)
        self.libmtp = None
        self.known_devices = None
        self.detect_cache = {}

        self.dev = None
        self._filesystem_cache = None
        self.lock = RLock()
        self.blacklisted_devices = set()
        self.ejected_devices = set()
        self.currently_connected_dev = None
        self._is_device_mtp = None
        if islinux:
            from calibre.devices.mtp.unix.sysfs import MTPDetect
            self._is_device_mtp = MTPDetect()
        if isosx and 'osx' in self.supported_platforms:
            self.usbobserver, err = plugins['usbobserver']
            if err:
                raise RuntimeError(err)
            self._is_device_mtp = self.osx_is_device_mtp
Exemplo n.º 8
0
    def __init__(self, *args, **kwargs):
        MTPDeviceBase.__init__(self, *args, **kwargs)
        self.libmtp = None
        self.known_devices = None
        self.detect_cache = {}

        self.dev = None
        self._filesystem_cache = None
        self.lock = RLock()
        self.blacklisted_devices = set()
        self.ejected_devices = set()
        self.currently_connected_dev = None
        self._is_device_mtp = None
        if islinux:
            from calibre.devices.mtp.unix.sysfs import MTPDetect
            self._is_device_mtp = MTPDetect()
        if isosx and 'osx' in self.supported_platforms:
            self.usbobserver, err = plugins['usbobserver']
            if err:
                raise RuntimeError(err)
            self._is_device_mtp = self.osx_is_device_mtp