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
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 = {}
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()
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
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