mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Preliminary driver for the FoxIt ESlick
This commit is contained in:
parent
818d2670ee
commit
a3ff5086bd
@ -367,6 +367,7 @@ from calibre.devices.prs500.driver import PRS500
|
|||||||
from calibre.devices.prs505.driver import PRS505
|
from calibre.devices.prs505.driver import PRS505
|
||||||
from calibre.devices.prs700.driver import PRS700
|
from calibre.devices.prs700.driver import PRS700
|
||||||
from calibre.devices.android.driver import ANDROID
|
from calibre.devices.android.driver import ANDROID
|
||||||
|
from calibre.devices.eslick.driver import ESLICK
|
||||||
|
|
||||||
plugins = [HTML2ZIP]
|
plugins = [HTML2ZIP]
|
||||||
plugins += [
|
plugins += [
|
||||||
@ -416,7 +417,8 @@ plugins += [
|
|||||||
PRS700,
|
PRS700,
|
||||||
ANDROID,
|
ANDROID,
|
||||||
CYBOOK_OPUS,
|
CYBOOK_OPUS,
|
||||||
COOL_ER
|
COOL_ER,
|
||||||
|
ESLICK
|
||||||
]
|
]
|
||||||
plugins += [x for x in list(locals().values()) if isinstance(x, type) and \
|
plugins += [x for x in list(locals().values()) if isinstance(x, type) and \
|
||||||
x.__name__.endswith('MetadataReader')]
|
x.__name__.endswith('MetadataReader')]
|
||||||
|
@ -155,6 +155,9 @@ def debug_device_driver():
|
|||||||
print
|
print
|
||||||
print "Don't forget to send the file /tmp/ioreg.txt as well"
|
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):
|
def add_simple_plugin(path_to_plugin):
|
||||||
import tempfile, zipfile, shutil
|
import tempfile, zipfile, shutil
|
||||||
|
10
src/calibre/devices/eslick/__init__.py
Normal file
10
src/calibre/devices/eslick/__init__.py
Normal 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'
|
||||||
|
|
||||||
|
|
||||||
|
|
39
src/calibre/devices/eslick/driver.py
Normal file
39
src/calibre/devices/eslick/driver.py
Normal 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
|
||||||
|
|
||||||
|
|
Loading…
x
Reference in New Issue
Block a user