diff --git a/src/calibre/customize/builtins.py b/src/calibre/customize/builtins.py index 9e924f15d6..769df7b143 100644 --- a/src/calibre/customize/builtins.py +++ b/src/calibre/customize/builtins.py @@ -367,6 +367,7 @@ from calibre.devices.prs500.driver import PRS500 from calibre.devices.prs505.driver import PRS505 from calibre.devices.prs700.driver import PRS700 from calibre.devices.android.driver import ANDROID +from calibre.devices.eslick.driver import ESLICK plugins = [HTML2ZIP] plugins += [ @@ -416,7 +417,8 @@ plugins += [ PRS700, ANDROID, CYBOOK_OPUS, - COOL_ER + COOL_ER, + ESLICK ] plugins += [x for x in list(locals().values()) if isinstance(x, type) and \ x.__name__.endswith('MetadataReader')] diff --git a/src/calibre/debug.py b/src/calibre/debug.py index 4ed47a2399..66de8ccadb 100644 --- a/src/calibre/debug.py +++ b/src/calibre/debug.py @@ -155,6 +155,9 @@ def debug_device_driver(): print print "Don't forget to send the file /tmp/ioreg.txt as well" + if iswindows: + raw_input('Press Enter to continue...') + def add_simple_plugin(path_to_plugin): import tempfile, zipfile, shutil diff --git a/src/calibre/devices/eslick/__init__.py b/src/calibre/devices/eslick/__init__.py new file mode 100644 index 0000000000..3d1a86922e --- /dev/null +++ b/src/calibre/devices/eslick/__init__.py @@ -0,0 +1,10 @@ +#!/usr/bin/env python +# vim:fileencoding=UTF-8:ts=4:sw=4:sta:et:sts=4:ai +from __future__ import with_statement + +__license__ = 'GPL v3' +__copyright__ = '2009, Kovid Goyal ' +__docformat__ = 'restructuredtext en' + + + diff --git a/src/calibre/devices/eslick/driver.py b/src/calibre/devices/eslick/driver.py new file mode 100644 index 0000000000..a0d973bc06 --- /dev/null +++ b/src/calibre/devices/eslick/driver.py @@ -0,0 +1,39 @@ +#!/usr/bin/env python +# vim:fileencoding=UTF-8:ts=4:sw=4:sta:et:sts=4:ai +from __future__ import with_statement + +__license__ = 'GPL v3' +__copyright__ = '2009, Kovid Goyal ' +__docformat__ = 'restructuredtext en' + + +from calibre.devices.usbms.driver import USBMS + +class ESLICK(USBMS): + + name = 'ESlick Device Interface' + gui_name = 'Foxit ESlick' + description = _('Communicate with the ESlick eBook reader.') + author = _('Kovid Goyal') + supported_platforms = ['windows', 'osx', 'linux'] + + # Ordered list of supported formats + FORMATS = ['pdf', 'txt'] + + VENDOR_ID = [0x04cc] + PRODUCT_ID = [0x1a64] + BCD = [0x0110] + + VENDOR_NAME = 'FOXIT' + WINDOWS_MAIN_MEM = 'ESLICK_USB_DEVICE' + WINDOWS_CARD_A_MEM = 'ESLICK_USB_DEVICE' + + #OSX_MAIN_MEM = 'Kindle Internal Storage Media' + #OSX_CARD_A_MEM = 'Kindle Card Storage Media' + + MAIN_MEMORY_VOLUME_LABEL = 'ESlick Main Memory' + STORAGE_CARD_VOLUME_LABEL = 'ESlick Storage Card' + + SUPPORTS_SUB_DIRS = True + +