home *** CD-ROM | disk | FTP | other *** search
/ Maximum CD 2010 November / maximum-cd-2010-11.iso / DiscContents / calibre-0.7.13.msi / file_749 (.txt) < prev    next >
Encoding:
Python Compiled Bytecode  |  2010-08-06  |  2.3 KB  |  62 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__ = '2009, Kovid Goyal <kovid@kovidgoyal.net>'
  7. __docformat__ = 'restructuredtext en'
  8. from calibre.devices.usbms.driver import USBMS
  9.  
  10. class ESLICK(USBMS):
  11.     name = 'ESlick Device Interface'
  12.     gui_name = 'Foxit ESlick'
  13.     description = _('Communicate with the ESlick eBook reader.')
  14.     author = 'Kovid Goyal'
  15.     supported_platforms = [
  16.         'windows',
  17.         'osx',
  18.         'linux']
  19.     FORMATS = [
  20.         'epub',
  21.         'pdb',
  22.         'pdf',
  23.         'txt']
  24.     VENDOR_ID = [
  25.         1228]
  26.     PRODUCT_ID = [
  27.         6756]
  28.     BCD = [
  29.         272]
  30.     VENDOR_NAME = 'FOXIT'
  31.     WINDOWS_MAIN_MEM = 'ESLICK_USB_DEVIC'
  32.     WINDOWS_CARD_A_MEM = 'ESLICK_USB_DEVIC'
  33.     MAIN_MEMORY_VOLUME_LABEL = 'ESlick Main Memory'
  34.     STORAGE_CARD_VOLUME_LABEL = 'ESlick Storage Card'
  35.     SUPPORTS_SUB_DIRS = True
  36.     
  37.     def can_handle(cls, dev, debug = False):
  38.         return (dev[3], dev[4]) != ('philips', 'Philips d')
  39.  
  40.     can_handle = classmethod(can_handle)
  41.  
  42.  
  43. class EBK52(ESLICK):
  44.     name = 'EBK-52 Device Interface'
  45.     gui_name = 'Sigmatek EBK'
  46.     description = _('Communicate with the Sigmatek eBook reader.')
  47.     FORMATS = [
  48.         'epub',
  49.         'fb2',
  50.         'pdf',
  51.         'txt']
  52.     VENDOR_NAME = ''
  53.     WINDOWS_MAIN_MEM = WINDOWS_CARD_A_MEM = 'EBOOK_READER'
  54.     MAIN_MEMORY_VOLUME_LABEL = 'Sigmatek Main Memory'
  55.     STORAGE_CARD_VOLUME_LABEL = 'Sigmatek Storage Card'
  56.     
  57.     def can_handle(cls, dev, debug = False):
  58.         return (dev[3], dev[4]) == ('philips', 'Philips d')
  59.  
  60.     can_handle = classmethod(can_handle)
  61.  
  62.