Preliminary driver for the FoxIt ESlick

This commit is contained in:
Kovid Goyal 2009-09-10 17:32:48 -06:00
parent 818d2670ee
commit a3ff5086bd
4 changed files with 55 additions and 1 deletions

View File

@ -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')]

View File

@ -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

View File

@ -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 <kovid@kovidgoyal.net>'
__docformat__ = 'restructuredtext en'

View File

@ -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 <kovid@kovidgoyal.net>'
__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