diff --git a/src/calibre/customize/builtins.py b/src/calibre/customize/builtins.py index 78b1c31e70..95d5f2c31a 100644 --- a/src/calibre/customize/builtins.py +++ b/src/calibre/customize/builtins.py @@ -448,6 +448,7 @@ from calibre.devices.hanvon.driver import N516, EB511, ALEX from calibre.devices.edge.driver import EDGE from calibre.devices.teclast.driver import TECLAST_K3 from calibre.devices.sne.driver import SNE +from calibre.devices.misc import PALMPRE from calibre.ebooks.metadata.fetch import GoogleBooks, ISBNDB, Amazon from calibre.library.catalog import CSV_XML, EPUB_MOBI @@ -528,7 +529,8 @@ plugins += [ TECLAST_K3, EDGE, SNE, - ALEX + ALEX, + PALMPRE ] plugins += [x for x in list(locals().values()) if isinstance(x, type) and \ x.__name__.endswith('MetadataReader')] diff --git a/src/calibre/devices/misc.py b/src/calibre/devices/misc.py new file mode 100644 index 0000000000..c903458634 --- /dev/null +++ b/src/calibre/devices/misc.py @@ -0,0 +1,30 @@ +#!/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__ = '2010, Kovid Goyal ' +__docformat__ = 'restructuredtext en' + +from calibre.devices.usbms.driver import USBMS + +class PALMPRE(USBMS): + + name = 'Palm Pre Device Interface' + gui_name = 'Palm Pre' + description = _('Communicate with the Palm Pre') + author = 'Kovid Goyal' + supported_platforms = ['windows', 'osx', 'linux'] + + # Ordered list of supported formats + FORMATS = ['mobi', 'prc', 'pdb', 'txt'] + + VENDOR_ID = [0x0830] + PRODUCT_ID = [0x8004, 0x8002] + BCD = [0x0316] + + VENDOR_NAME = 'PALM' + WINDOWS_MAIN_MEM = 'PRE' + + EBOOK_DIR_MAIN = 'E-books' +