From 9ea27629c26db1cc2ee97160fe3ed0a546006420 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sun, 5 Jun 2011 19:17:28 -0600 Subject: [PATCH] Driver for the Notion Ink Adam --- src/calibre/customize/builtins.py | 9 +++++---- src/calibre/devices/misc.py | 22 ++++++++++++++++++++++ 2 files changed, 27 insertions(+), 4 deletions(-) diff --git a/src/calibre/customize/builtins.py b/src/calibre/customize/builtins.py index 9ebec5e7e8..33685ea254 100644 --- a/src/calibre/customize/builtins.py +++ b/src/calibre/customize/builtins.py @@ -608,9 +608,9 @@ from calibre.devices.edge.driver import EDGE from calibre.devices.teclast.driver import TECLAST_K3, NEWSMY, IPAPYRUS, \ SOVOS, PICO, SUNSTECH_EB700, ARCHOS7O, STASH, WEXLER from calibre.devices.sne.driver import SNE -from calibre.devices.misc import PALMPRE, AVANT, SWEEX, PDNOVEL, \ - GEMEI, VELOCITYMICRO, PDNOVEL_KOBO, LUMIREAD, ALURATEK_COLOR, \ - TREKSTOR, EEEREADER, NEXTBOOK +from calibre.devices.misc import (PALMPRE, AVANT, SWEEX, PDNOVEL, + GEMEI, VELOCITYMICRO, PDNOVEL_KOBO, LUMIREAD, ALURATEK_COLOR, + TREKSTOR, EEEREADER, NEXTBOOK, ADAM) from calibre.devices.folder_device.driver import FOLDER_DEVICE_FOR_CONFIG from calibre.devices.kobo.driver import KOBO from calibre.devices.bambook.driver import BAMBOOK @@ -744,6 +744,7 @@ plugins += [ TREKSTOR, EEEREADER, NEXTBOOK, + ADAM, ITUNES, BOEYE_BEX, BOEYE_BDX, @@ -1231,7 +1232,7 @@ class StoreEpubBudStore(StoreBase): name = 'ePub Bud' description = 'Well, it\'s pretty much just "YouTube for Children\'s eBooks. A not-for-profit organization devoted to brining self published childrens books to the world.' actual_plugin = 'calibre.gui2.store.epubbud_plugin:EpubBudStore' - + drm_free_only = True headquarters = 'US' formats = ['EPUB'] diff --git a/src/calibre/devices/misc.py b/src/calibre/devices/misc.py index 936faeb32d..2a6a76719d 100644 --- a/src/calibre/devices/misc.py +++ b/src/calibre/devices/misc.py @@ -255,6 +255,28 @@ class EEEREADER(USBMS): VENDOR_NAME = 'LINUX' WINDOWS_MAIN_MEM = WINDOWS_CARD_A_MEM = 'FILE-STOR_GADGET' +class ADAM(USBMS): + + name = 'Notion Ink Adam device interface' + gui_name = 'Adam' + + description = _('Communicate with the Adam tablet') + author = 'Kovid Goyal' + supported_platforms = ['windows', 'osx', 'linux'] + + # Ordered list of supported formats + FORMATS = ['epub', 'pdf', 'doc'] + + VENDOR_ID = [0x0955] + PRODUCT_ID = [0x7100] + BCD = [0x9999] + + EBOOK_DIR_MAIN = 'eBooks' + + VENDOR_NAME = 'NI' + WINDOWS_MAIN_MEM = WINDOWS_CARD_A_MEM = ['ADAM'] + SUPPORTS_SUB_DIRS = True + class NEXTBOOK(USBMS): name = 'Nextbook device interface'