Logo Search packages:      
Sourcecode: calibre version File versions  Download package

calibre::devices::usbms::device::Device Class Reference

Inheritance diagram for calibre::devices::usbms::device::Device:

calibre::devices::interface::DevicePlugin calibre::customize::Plugin

List of all members.


Detailed Description

This class provides logic common to all drivers for devices that export themselves
as USB Mass Storage devices. If you are writing such a driver, inherit from this
class.

Definition at line 51 of file device.py.


Public Member Functions

def __enter__
def __exit__
def __init__
def add_books_to_metadata
def books
def can_handle
def card_prefix
def check_ioreg_line
def config_widget
def config_widget
def create_upload_path
def customization_help
def customization_help
def delete_books
def eject
def eject_linux
def eject_osx
def eject_windows
def find_device_nodes
def find_largest_partition
def free_space
def get_device_information
def get_fdi
def get_file
def get_gui_name
def get_main_ebook_dir
def get_osx_mountpoints
def initialize
def is_customizable
def is_usb_connected
def is_usb_connected_windows
def linux_post_yank
def linux_swap_drives
def node_mountpoint
def open
def open_linux
def open_osx
def open_windows
def osx_bsd_names
def osx_run_mount
def osx_sort_names
def post_open_callback
def post_yank_cleanup
def print_usb_device_info
def remove_books_from_metadata
def reset
def run_ioreg
def save_settings
def save_settings
def set_progress_reporter
def settings
def settings
def sync_booklists
def temporary_file
def test_bcd
def test_bcd_windows
def total_space
def upload_books
def windows_filter_pnp_id
def windows_get_drive_prefix
def windows_match_device
def windows_open_callback
def windows_sort_drives

Public Attributes

 detected_device
 plugin_path
 report_progress
 site_customization

Static Public Attributes

tuple author = _('Unknown')
 BCD = None
 can_be_disabled = True
 CAN_SET_METADATA = True
list DELETE_EXTS = []
tuple description = _('Does absolutely nothing')
string EBOOK_DIR_CARD_A = ''
string EBOOK_DIR_CARD_B = ''
string EBOOK_DIR_MAIN = ''
 EXTRA_CUSTOMIZATION_DEFAULT = None
 EXTRA_CUSTOMIZATION_MESSAGE = None
string FDI_BCD_TEMPLATE = '<match key="@info.parent:@info.parent:@info.parent:@info.parent:usb.device_revision_bcd" int="%(bcd)s">'
dictionary FDI_LUNS = {'lun0':0, 'lun1':1, 'lun2':2}
 FDI_TEMPLATE = \
list FORMATS = ["lrf", "rtf", "pdf", "txt"]
tuple HELP_MESSAGE = _('Configure Device')
tuple icon = I('reader.svg')
string MAIN_MEMORY_VOLUME_LABEL = ''
tuple minimum_calibre_version = (0, 4, 118)
 MUST_READ_METADATA = False
string name = 'Trivial Plugin'
 OSX_CARD_A_MEM = None
 OSX_CARD_B_MEM = None
 OSX_MAIN_MEM = None
 path_sep = os.sep
int priority = 1
int PRODUCT_ID = 0x0
 STORAGE_CARD2_VOLUME_LABEL = None
string STORAGE_CARD_VOLUME_LABEL = ''
list supported_platforms = []
 SUPPORTS_SUB_DIRS = False
int THUMBNAIL_HEIGHT = 68
tuple type = _('Device Interface')
int VENDOR_ID = 0x0
 VENDOR_NAME = None
tuple version = (1, 0, 0)
 WINDOWS_CARD_A_MEM = None
 WINDOWS_CARD_B_MEM = None
 WINDOWS_MAIN_MEM = None

Private Member Functions

def _osx_bsd_names
def _sanity_check
def _windows_space

Private Attributes

 __save_win_eject_thread
 _card_a_prefix
 _card_b_prefix
 _linux_mount_map
 _main_prefix

The documentation for this class was generated from the following file:

Generated by  Doxygen 1.6.0   Back to index