Implement #4749 (Support for Palm Pre?)

This commit is contained in:
Kovid Goyal 2010-04-25 16:27:25 -06:00
parent f8a3a02a6e
commit 337cc64bae
2 changed files with 33 additions and 1 deletions

View File

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

View File

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