From 7c8055b888f3e285a64fa4233018fc91e9ba88ee Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sat, 17 Apr 2010 18:13:06 +0530 Subject: [PATCH] Implement #5266 (Support for Samsung SNE 60K) --- src/calibre/customize/builtins.py | 4 ++- src/calibre/devices/sne/__init__.py | 0 src/calibre/devices/sne/driver.py | 39 +++++++++++++++++++++++++++++ 3 files changed, 42 insertions(+), 1 deletion(-) create mode 100644 src/calibre/devices/sne/__init__.py create mode 100644 src/calibre/devices/sne/driver.py diff --git a/src/calibre/customize/builtins.py b/src/calibre/customize/builtins.py index 61eed28f27..c1d779bed9 100644 --- a/src/calibre/customize/builtins.py +++ b/src/calibre/customize/builtins.py @@ -447,6 +447,7 @@ from calibre.devices.binatone.driver import README from calibre.devices.hanvon.driver import N516, EB511 from calibre.devices.edge.driver import EDGE from calibre.devices.teclast.driver import TECLAST_K3 +from calibre.devices.sne.driver import SNE from calibre.ebooks.metadata.fetch import GoogleBooks, ISBNDB, Amazon from calibre.library.catalog import CSV_XML, EPUB_MOBI @@ -524,7 +525,8 @@ plugins += [ EB511, ELONEX, TECLAST_K3, - EDGE + EDGE, + SNE ] plugins += [x for x in list(locals().values()) if isinstance(x, type) and \ x.__name__.endswith('MetadataReader')] diff --git a/src/calibre/devices/sne/__init__.py b/src/calibre/devices/sne/__init__.py new file mode 100644 index 0000000000..e69de29bb2 diff --git a/src/calibre/devices/sne/driver.py b/src/calibre/devices/sne/driver.py new file mode 100644 index 0000000000..802ae43eaa --- /dev/null +++ b/src/calibre/devices/sne/driver.py @@ -0,0 +1,39 @@ +# -*- coding: utf-8 -*- + +__license__ = 'GPL v3' +__copyright__ = '2009, John Schember ' +__docformat__ = 'restructuredtext en' + +''' +Device driver for Bookeen's Cybook Gen 3 +''' + +from calibre.devices.usbms.driver import USBMS + +class SNE(USBMS): + + name = 'Samsung SNE Device Interface' + gui_name = 'Samsung SNE' + description = _('Communicate with the Samsung SNE eBook reader.') + author = 'Kovid Goyal' + supported_platforms = ['windows', 'osx', 'linux'] + + # Ordered list of supported formats + # Be sure these have an entry in calibre.devices.mime + FORMATS = ['epub', 'txt'] + + VENDOR_ID = [0x04e8] + PRODUCT_ID = [0x2051] + BCD = [0x0323] + + VENDOR_NAME = '' + #WINDOWS_MAIN_MEM = 'MASS_STORAGE' + #WINDOWS_CARD_A_MEM = 'MASS_STORAGE' + + MAIN_MEMORY_VOLUME_LABEL = 'SNE Main Memory' + STORAGE_CARD_VOLUME_LABEL = 'SNE Storage Card' + + EBOOK_DIR_MAIN = 'Book' + SUPPORTS_SUB_DIRS = True + +