home *** CD-ROM | disk | FTP | other *** search
- # Source Generated with Decompyle++
- # File: in.pyc (Python 2.6)
-
- from __future__ import with_statement
- __license__ = 'GPL v3'
- __copyright__ = '2010, Kovid Goyal <kovid@kovidgoyal.net>'
- __docformat__ = 'restructuredtext en'
- import os
- 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']
- FORMATS = [
- 'epub',
- 'mobi',
- 'prc',
- 'pdb',
- 'txt']
- VENDOR_ID = [
- 2096]
- PRODUCT_ID = [
- 32772,
- 32770,
- 257]
- BCD = [
- 790]
- VENDOR_NAME = 'PALM'
- WINDOWS_MAIN_MEM = 'PRE'
- EBOOK_DIR_MAIN = 'E-books'
-
-
- class AVANT(USBMS):
- name = 'Booq Avant Device Interface'
- gui_name = 'Avant'
- description = _('Communicate with the Booq Avant')
- author = 'Kovid Goyal'
- supported_platforms = [
- 'windows',
- 'osx',
- 'linux']
- FORMATS = [
- 'epub',
- 'fb2',
- 'html',
- 'rtf',
- 'pdf',
- 'txt']
- VENDOR_ID = [
- 1317]
- PRODUCT_ID = [
- 42149]
- BCD = [
- 793]
- VENDOR_NAME = 'E-BOOK'
- WINDOWS_MAIN_MEM = WINDOWS_CARD_A_MEM = 'READER'
- EBOOK_DIR_MAIN = ''
- SUPPORTS_SUB_DIRS = True
-
-
- class SWEEX(USBMS):
- name = 'Sweex Device Interface'
- gui_name = 'Sweex'
- description = _('Communicate with the Sweex MM300')
- author = 'Kovid Goyal'
- supported_platforms = [
- 'windows',
- 'osx',
- 'linux']
- FORMATS = [
- 'epub',
- 'prc',
- 'fb2',
- 'html',
- 'rtf',
- 'chm',
- 'pdf',
- 'txt']
- VENDOR_ID = [
- 1317]
- PRODUCT_ID = [
- 42149]
- BCD = [
- 793]
- VENDOR_NAME = 'SWEEX'
- WINDOWS_MAIN_MEM = WINDOWS_CARD_A_MEM = 'EBOOKREADER'
- EBOOK_DIR_MAIN = ''
- SUPPORTS_SUB_DIRS = True
-
-
- class PDNOVEL(USBMS):
- name = 'Pandigital Novel device interface'
- gui_name = 'PD Novel'
- description = _('Communicate with the Pandigital Novel')
- author = 'Kovid Goyal'
- supported_platforms = [
- 'windows',
- 'linux',
- 'osx']
- FORMATS = [
- 'epub',
- 'pdf']
- VENDOR_ID = [
- 6353]
- PRODUCT_ID = [
- 45060]
- BCD = [
- 548]
- VENDOR_NAME = 'ANDROID'
- WINDOWS_MAIN_MEM = WINDOWS_CARD_A_MEM = '__UMS_COMPOSITE'
- THUMBNAIL_HEIGHT = 144
- EBOOK_DIR_MAIN = 'eBooks'
- SUPPORTS_SUB_DIRS = False
- DELETE_EXTS = [
- '.jpg',
- '.jpeg',
- '.png']
-
- def upload_cover(self, path, filename, metadata):
- coverdata = getattr(metadata, 'thumbnail', None)
-
-
-