home *** CD-ROM | disk | FTP | other *** search
/ Maximum CD 2011 January / maximum-cd-2011-01.iso / DiscContents / calibre-0.7.26.msi / file_775 (.txt) < prev    next >
Encoding:
Python Compiled Bytecode  |  2010-10-31  |  6.0 KB  |  223 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 Q600(SWEEX):
  98.     name = 'Digma Q600 Device interface'
  99.     gui_name = 'Q600'
  100.     description = _('Communicate with the Digma Q600')
  101.     BCD = [
  102.         805]
  103.     FORMATS = [
  104.         'epub',
  105.         'fb2',
  106.         'mobi',
  107.         'prc',
  108.         'html',
  109.         'rtf',
  110.         'chm',
  111.         'pdf',
  112.         'txt']
  113.  
  114.  
  115. class KOGAN(SWEEX):
  116.     name = 'Kogan Device Interface'
  117.     gui_name = 'Kogan'
  118.     description = _('Communicate with the Kogan')
  119.     VENDOR_NAME = 'LINUX'
  120.     WINDOWS_MAIN_MEM = WINDOWS_CARD_A_MEM = 'FILE-STOR_GADGET'
  121.     EBOOK_DIR_MAIN = 'Kogan eBooks'
  122.  
  123.  
  124. class PDNOVEL(USBMS):
  125.     name = 'Pandigital Novel device interface'
  126.     gui_name = 'PD Novel'
  127.     description = _('Communicate with the Pandigital Novel')
  128.     author = 'Kovid Goyal'
  129.     supported_platforms = [
  130.         'windows',
  131.         'linux',
  132.         'osx']
  133.     FORMATS = [
  134.         'epub',
  135.         'pdf']
  136.     VENDOR_ID = [
  137.         6353]
  138.     PRODUCT_ID = [
  139.         45060]
  140.     BCD = [
  141.         548]
  142.     VENDOR_NAME = 'ANDROID'
  143.     WINDOWS_MAIN_MEM = WINDOWS_CARD_A_MEM = '__UMS_COMPOSITE'
  144.     THUMBNAIL_HEIGHT = 144
  145.     EBOOK_DIR_MAIN = 'eBooks'
  146.     SUPPORTS_SUB_DIRS = False
  147.     DELETE_EXTS = [
  148.         '.jpg',
  149.         '.jpeg',
  150.         '.png']
  151.     
  152.     def upload_cover(self, path, filename, metadata, filepath):
  153.         coverdata = getattr(metadata, 'thumbnail', None)
  154.  
  155.  
  156.  
  157. class PDNOVEL_KOBO(PDNOVEL):
  158.     name = 'Pandigital Kobo device interface'
  159.     gui_name = 'PD Novel (Kobo)'
  160.     description = _('Communicate with the Pandigital Novel')
  161.     BCD = [
  162.         546]
  163.     EBOOK_DIR_MAIN = 'eBooks/Kobo'
  164.     
  165.     def upload_cover(self, path, filename, metadata, filepath):
  166.         coverdata = getattr(metadata, 'thumbnail', None)
  167.  
  168.  
  169.  
  170. class VELOCITYMICRO(USBMS):
  171.     name = 'VelocityMicro device interface'
  172.     gui_name = 'VelocityMicro'
  173.     description = _('Communicate with the VelocityMicro')
  174.     author = 'Kovid Goyal'
  175.     supported_platforms = [
  176.         'windows',
  177.         'linux',
  178.         'osx']
  179.     FORMATS = [
  180.         'epub',
  181.         'pdb',
  182.         'txt',
  183.         'html',
  184.         'pdf']
  185.     VENDOR_ID = [
  186.         6353]
  187.     PRODUCT_ID = [
  188.         45077]
  189.     BCD = [
  190.         548]
  191.     VENDOR_NAME = 'ANDROID'
  192.     WINDOWS_MAIN_MEM = WINDOWS_CARD_A_MEM = '__UMS_COMPOSITE'
  193.     EBOOK_DIR_MAIN = 'eBooks'
  194.     SUPPORTS_SUB_DIRS = False
  195.  
  196.  
  197. class GEMEI(USBMS):
  198.     name = 'Gemei Device Interface'
  199.     gui_name = 'GM2000'
  200.     description = _('Communicate with the GM2000')
  201.     author = 'Kovid Goyal'
  202.     supported_platforms = [
  203.         'windows',
  204.         'osx',
  205.         'linux']
  206.     FORMATS = [
  207.         'epub',
  208.         'chm',
  209.         'html',
  210.         'pdb',
  211.         'pdf',
  212.         'txt']
  213.     VENDOR_ID = [
  214.         1988]
  215.     PRODUCT_ID = [
  216.         42149]
  217.     BCD = None
  218.     VENDOR_NAME = 'CHINA'
  219.     WINDOWS_MAIN_MEM = WINDOWS_CARD_A_MEM = 'CHIP'
  220.     EBOOK_DIR_MAIN = 'eBooks'
  221.     SUPPORTS_SUB_DIRS = True
  222.  
  223.