From 40c0cc7ca93ac9b6f40dc6d30eeba2f6b7b9d652 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sun, 3 Oct 2010 13:42:11 -0600 Subject: [PATCH] Fix #7052 (Add device request - VelocityMicro (ie Borders) Cruz) --- src/calibre/customize/builtins.py | 4 +++- src/calibre/devices/misc.py | 18 ++++++++++++++++++ 2 files changed, 21 insertions(+), 1 deletion(-) diff --git a/src/calibre/customize/builtins.py b/src/calibre/customize/builtins.py index d4d4ee5d4e..0a10b79bd3 100644 --- a/src/calibre/customize/builtins.py +++ b/src/calibre/customize/builtins.py @@ -460,7 +460,8 @@ from calibre.devices.hanvon.driver import N516, EB511, ALEX, AZBOOKA, THEBOOK from calibre.devices.edge.driver import EDGE from calibre.devices.teclast.driver import TECLAST_K3, NEWSMY, IPAPYRUS, SOVOS from calibre.devices.sne.driver import SNE -from calibre.devices.misc import PALMPRE, AVANT, SWEEX, PDNOVEL, KOGAN, GEMEI +from calibre.devices.misc import PALMPRE, AVANT, SWEEX, PDNOVEL, KOGAN, \ + GEMEI, VELOCITYMICRO from calibre.devices.folder_device.driver import FOLDER_DEVICE_FOR_CONFIG from calibre.devices.kobo.driver import KOBO @@ -572,6 +573,7 @@ plugins += [ PDNOVEL, SPECTRA, GEMEI, + VELOCITYMICRO, ITUNES, ] plugins += [x for x in list(locals().values()) if isinstance(x, type) and \ diff --git a/src/calibre/devices/misc.py b/src/calibre/devices/misc.py index bb75ceabd1..f98b6f7103 100644 --- a/src/calibre/devices/misc.py +++ b/src/calibre/devices/misc.py @@ -108,6 +108,24 @@ class PDNOVEL(USBMS): with open('%s.jpg' % os.path.join(path, filename), 'wb') as coverfile: coverfile.write(coverdata[2]) +class VELOCITYMICRO(USBMS): + name = 'VelocityMicro device interface' + gui_name = 'VelocityMicro' + description = _('Communicate with the VelocityMicro') + author = 'Kovid Goyal' + supported_platforms = ['windows', 'linux', 'osx'] + FORMATS = ['epub', 'pdb', 'txt', 'html', 'pdf'] + + VENDOR_ID = [0x18d1] + PRODUCT_ID = [0xb015] + BCD = [0x224] + + VENDOR_NAME = 'ANDROID' + WINDOWS_MAIN_MEM = WINDOWS_CARD_A_MEM = '__UMS_COMPOSITE' + + EBOOK_DIR_MAIN = 'eBooks' + SUPPORTS_SUB_DIRS = False + class GEMEI(USBMS): name = 'Gemei Device Interface' gui_name = 'GM2000'