1__license__   = 'GPL v3'
2__copyright__ = '2011,  Ken <ken at szboeye.com>'
3__docformat__ = 'restructuredtext en'
4
5'''
6Device driver for BOEYE serial readers
7'''
8
9from calibre.devices.usbms.driver import USBMS
10
11
12class BOEYE_BEX(USBMS):
13    name		= 'BOEYE BEX reader driver'
14    gui_name	= 'BOEYE BEX'
15    description	= _('Communicate with BOEYE BEX Serial e-book readers.')
16    author		= 'szboeye'
17    supported_platforms = ['windows', 'osx', 'linux']
18
19    FORMATS		= ['epub', 'mobi', 'fb2', 'lit', 'prc', 'pdf', 'rtf', 'txt', 'djvu', 'doc', 'chm', 'html', 'zip', 'pdb']
20
21    VENDOR_ID	= [0x0085]
22    PRODUCT_ID	= [0x600]
23
24    VENDOR_NAME	 = 'LINUX'
25    WINDOWS_MAIN_MEM = 'FILE-STOR_GADGET'
26    OSX_MAIN_MEM	 = 'Linux File-Stor Gadget Media'
27
28    MAIN_MEMORY_VOLUME_LABEL  = 'BOEYE BEX Storage Card'
29
30    EBOOK_DIR_MAIN	  = 'Documents'
31    SUPPORTS_SUB_DIRS = True
32
33
34class BOEYE_BDX(USBMS):
35    name		= 'BOEYE BDX reader driver'
36    gui_name	= 'BOEYE BDX'
37    description	= _('Communicate with BOEYE BDX serial e-book readers.')
38    author		= 'szboeye'
39    supported_platforms = ['windows', 'osx', 'linux']
40
41    FORMATS		= ['epub', 'mobi', 'fb2', 'lit', 'prc', 'pdf', 'rtf', 'txt', 'djvu', 'doc', 'chm', 'html', 'zip', 'pdb']
42
43    VENDOR_ID	= [0x0085]
44    PRODUCT_ID	= [0x800]
45
46    VENDOR_NAME	 = 'LINUX'
47    WINDOWS_MAIN_MEM   = 'FILE-STOR_GADGET'
48    WINDOWS_CARD_A_MEM = 'FILE-STOR_GADGET'
49
50    OSX_MAIN_MEM	 = 'Linux File-Stor Gadget Media'
51    OSX_CARD_A_MEM	 = 'Linux File-Stor Gadget Media'
52
53    MAIN_MEMORY_VOLUME_LABEL  = 'BOEYE BDX Internal Memory'
54    STORAGE_CARD_VOLUME_LABEL = 'BOEYE BDX Storage Card'
55
56    EBOOK_DIR_MAIN	 = 'Documents'
57    EBOOK_DIR_CARD_A = 'Documents'
58    SUPPORTS_SUB_DIRS = True
59