Logo Search packages:      
Sourcecode: calibre version File versions

def calibre::devices::prs500::driver::PRS500::reset (   self,
  key = '-1',
  log_packets = False,
  report_progress = None 
)

@param key: The key to unlock the device
@param log_packets: If true the packet stream to/from the device is logged
@param report_progress: Function that is called with a % progress
                (number between 0 and 100) for various tasks
                If it is called with -1 that means that the
                task does not have any progress information

Reimplemented from calibre::devices::interface::DevicePlugin.

Definition at line 197 of file driver.py.

00197                                                                        :
        """
        @param key: The key to unlock the device
        @param log_packets: If true the packet stream to/from the device is logged
        @param report_progress: Function that is called with a % progress
                                (number between 0 and 100) for various tasks
                                If it is called with -1 that means that the
                                task does not have any progress information
        """
        self.device = get_device_by_id(self.VENDOR_ID, self.PRODUCT_ID)
        # Handle that is used to communicate with device. Setup in L{open}
        self.handle = None
        self.in_session = False
        self.log_packets = log_packets
        self.report_progress = report_progress
        if len(key) > 8:
            key = key[:8]
        elif len(key) < 8:
            key += ''.join(['\0' for i in xrange(8 - len(key))])
        self.key = key

    def reconnect(self):


Generated by  Doxygen 1.6.0   Back to index