Logo Search packages:      
Sourcecode: calibre version File versions

def calibre::devices::interface::DevicePlugin::open (   self  ) 

Perform any device specific initialization. Called after the device is
detected but before any other functions that communicate with the device.
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. The base class within USBMS device.py has a implementation of
this function that should serve as a good example for USB Mass storage
devices.

Reimplemented in calibre::devices::prs500::driver::PRS500, and calibre::devices::usbms::device::Device.

Definition at line 63 of file interface.py.

00063                   :
        '''
        Perform any device specific initialization. Called after the device is
        detected but before any other functions that communicate with the device.
        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. The base class within USBMS device.py has a implementation of
        this function that should serve as a good example for USB Mass storage
        devices.
        '''
        raise NotImplementedError()

    def eject(self):


Generated by  Doxygen 1.6.0   Back to index