For example: For devices that present themselves as USB Mass storage devices, this method would be responsible for mounting the device or if the device has been automounted, for finding out where it has been mounted. Called after the device is detected but before any other functions that communicate with the device. def open ( self, connected_device, library_uuid ): ''' Perform any device specific initialization. test_bcd ( bcd, cbcd ): if debug : prints ( dev ) if ch ( dev, debug = debug ): return True, dev return False, None VENDOR_ID except KeyError : # Vendor vid does not have product pid, pid # exists for some other vendor in this # device continue else : cbcd = self. intersection ( vendors ): for dev in devices_on_system : cvid, pid, bcd = dev if cvid = vid : if pid in products : if hasattr ( self. can_handle_windows if iswindows else self. VENDOR_ID, 'keys' ): products = for ven in self. """ type = _ ( 'Device interface' ) #: Ordered list of supported formats FORMATS = # If True, the config dialog will not show the formats box HIDE_FORMATS_CONFIG_BOX = False #: VENDOR_ID can be either an integer, a list of integers or a dictionary #: If it is a dictionary, it must be a dictionary of dictionaries, #: of the form:: #: #: if hasattr ( self. Class DevicePlugin ( Plugin ): """ Defines the interface that should be implemented by backends that communicate with an e-book reader.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |