home *** CD-ROM | disk | FTP | other *** search
/ Maximum CD 2010 November / maximum-cd-2010-11.iso / DiscContents / calibre-0.7.13.msi / file_783 (.txt) < prev    next >
Encoding:
Python Compiled Bytecode  |  2010-08-06  |  3.4 KB  |  129 lines

  1. # Source Generated with Decompyle++
  2. # File: in.pyc (Python 2.6)
  3.  
  4. from __future__ import with_statement
  5. __license__ = 'GPL v3'
  6. __copyright__ = '2010, Kovid Goyal <kovid@kovidgoyal.net>'
  7. __docformat__ = 'restructuredtext en'
  8. import os
  9. from calibre.devices.usbms.driver import USBMS
  10.  
  11. class PALMPRE(USBMS):
  12.     name = 'Palm Pre Device Interface'
  13.     gui_name = 'Palm Pre'
  14.     description = _('Communicate with the Palm Pre')
  15.     author = 'Kovid Goyal'
  16.     supported_platforms = [
  17.         'windows',
  18.         'osx',
  19.         'linux']
  20.     FORMATS = [
  21.         'epub',
  22.         'mobi',
  23.         'prc',
  24.         'pdb',
  25.         'txt']
  26.     VENDOR_ID = [
  27.         2096]
  28.     PRODUCT_ID = [
  29.         32772,
  30.         32770,
  31.         257]
  32.     BCD = [
  33.         790]
  34.     VENDOR_NAME = 'PALM'
  35.     WINDOWS_MAIN_MEM = 'PRE'
  36.     EBOOK_DIR_MAIN = 'E-books'
  37.  
  38.  
  39. class AVANT(USBMS):
  40.     name = 'Booq Avant Device Interface'
  41.     gui_name = 'Avant'
  42.     description = _('Communicate with the Booq Avant')
  43.     author = 'Kovid Goyal'
  44.     supported_platforms = [
  45.         'windows',
  46.         'osx',
  47.         'linux']
  48.     FORMATS = [
  49.         'epub',
  50.         'fb2',
  51.         'html',
  52.         'rtf',
  53.         'pdf',
  54.         'txt']
  55.     VENDOR_ID = [
  56.         1317]
  57.     PRODUCT_ID = [
  58.         42149]
  59.     BCD = [
  60.         793]
  61.     VENDOR_NAME = 'E-BOOK'
  62.     WINDOWS_MAIN_MEM = WINDOWS_CARD_A_MEM = 'READER'
  63.     EBOOK_DIR_MAIN = ''
  64.     SUPPORTS_SUB_DIRS = True
  65.  
  66.  
  67. class SWEEX(USBMS):
  68.     name = 'Sweex Device Interface'
  69.     gui_name = 'Sweex'
  70.     description = _('Communicate with the Sweex MM300')
  71.     author = 'Kovid Goyal'
  72.     supported_platforms = [
  73.         'windows',
  74.         'osx',
  75.         'linux']
  76.     FORMATS = [
  77.         'epub',
  78.         'prc',
  79.         'fb2',
  80.         'html',
  81.         'rtf',
  82.         'chm',
  83.         'pdf',
  84.         'txt']
  85.     VENDOR_ID = [
  86.         1317]
  87.     PRODUCT_ID = [
  88.         42149]
  89.     BCD = [
  90.         793]
  91.     VENDOR_NAME = 'SWEEX'
  92.     WINDOWS_MAIN_MEM = WINDOWS_CARD_A_MEM = 'EBOOKREADER'
  93.     EBOOK_DIR_MAIN = ''
  94.     SUPPORTS_SUB_DIRS = True
  95.  
  96.  
  97. class PDNOVEL(USBMS):
  98.     name = 'Pandigital Novel device interface'
  99.     gui_name = 'PD Novel'
  100.     description = _('Communicate with the Pandigital Novel')
  101.     author = 'Kovid Goyal'
  102.     supported_platforms = [
  103.         'windows',
  104.         'linux',
  105.         'osx']
  106.     FORMATS = [
  107.         'epub',
  108.         'pdf']
  109.     VENDOR_ID = [
  110.         6353]
  111.     PRODUCT_ID = [
  112.         45060]
  113.     BCD = [
  114.         548]
  115.     VENDOR_NAME = 'ANDROID'
  116.     WINDOWS_MAIN_MEM = WINDOWS_CARD_A_MEM = '__UMS_COMPOSITE'
  117.     THUMBNAIL_HEIGHT = 144
  118.     EBOOK_DIR_MAIN = 'eBooks'
  119.     SUPPORTS_SUB_DIRS = False
  120.     DELETE_EXTS = [
  121.         '.jpg',
  122.         '.jpeg',
  123.         '.png']
  124.     
  125.     def upload_cover(self, path, filename, metadata):
  126.         coverdata = getattr(metadata, 'thumbnail', None)
  127.  
  128.  
  129.