From f8107ebffd19090bcb91e9723ed5512017ebd970 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sun, 9 May 2010 14:30:14 -0600 Subject: [PATCH] Support for the Azbooka --- src/calibre/customize/builtins.py | 3 ++- src/calibre/devices/hanvon/driver.py | 14 ++++++++++++++ 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/src/calibre/customize/builtins.py b/src/calibre/customize/builtins.py index 7f1b524033..63c26df5a5 100644 --- a/src/calibre/customize/builtins.py +++ b/src/calibre/customize/builtins.py @@ -450,7 +450,7 @@ from calibre.devices.eslick.driver import ESLICK from calibre.devices.nuut2.driver import NUUT2 from calibre.devices.iriver.driver import IRIVER_STORY from calibre.devices.binatone.driver import README -from calibre.devices.hanvon.driver import N516, EB511, ALEX +from calibre.devices.hanvon.driver import N516, EB511, ALEX, AZBOOKA from calibre.devices.edge.driver import EDGE from calibre.devices.teclast.driver import TECLAST_K3 from calibre.devices.sne.driver import SNE @@ -538,6 +538,7 @@ plugins += [ ALEX, PALMPRE, KOBO, + AZBOOKA, ] plugins += [x for x in list(locals().values()) if isinstance(x, type) and \ x.__name__.endswith('MetadataReader')] diff --git a/src/calibre/devices/hanvon/driver.py b/src/calibre/devices/hanvon/driver.py index 1e76b62eb6..463dc69079 100644 --- a/src/calibre/devices/hanvon/driver.py +++ b/src/calibre/devices/hanvon/driver.py @@ -50,6 +50,20 @@ class ALEX(N516): EBOOK_DIR_MAIN = 'eBooks' SUPPORTS_SUB_DIRS = True +class AZBOOKA(ALEX): + + name = 'Azbooka driver' + gui_name = 'Azbooka' + description = _('Communicate with the Azbooka') + + VENDOR_NAME = 'LINUX' + WINDOWS_MAIN_MEM = 'FILE-STOR_GADGET' + + MAIN_MEMORY_VOLUME_LABEL = 'Azbooka Internal Memory' + + EBOOK_DIR_MAIN = '' + + class EB511(USBMS): name = 'Elonex EB 511 driver' gui_name = 'EB 511'