mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
IGN:Preliminary windows only Blackberry driver
This commit is contained in:
parent
5ff249408f
commit
fae96a6aea
@ -12,7 +12,8 @@ def devices():
|
|||||||
from calibre.devices.cybookg3.driver import CYBOOKG3
|
from calibre.devices.cybookg3.driver import CYBOOKG3
|
||||||
from calibre.devices.kindle.driver import KINDLE
|
from calibre.devices.kindle.driver import KINDLE
|
||||||
from calibre.devices.kindle.driver import KINDLE2
|
from calibre.devices.kindle.driver import KINDLE2
|
||||||
return (PRS500, PRS505, PRS700, CYBOOKG3, KINDLE, KINDLE2)
|
from calibre.devices.blackberry.driver import BLACKBERRY
|
||||||
|
return (PRS500, PRS505, PRS700, CYBOOKG3, KINDLE, KINDLE2, BLACKBERRY)
|
||||||
|
|
||||||
import time
|
import time
|
||||||
|
|
||||||
|
6
src/calibre/devices/blackberry/__init__.py
Normal file
6
src/calibre/devices/blackberry/__init__.py
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
from __future__ import with_statement
|
||||||
|
__license__ = 'GPL 3'
|
||||||
|
__copyright__ = '2009, Kovid Goyal <kovid@kovidgoyal.net>'
|
||||||
|
__docformat__ = 'restructuredtext en'
|
||||||
|
|
||||||
|
|
30
src/calibre/devices/blackberry/driver.py
Normal file
30
src/calibre/devices/blackberry/driver.py
Normal file
@ -0,0 +1,30 @@
|
|||||||
|
from __future__ import with_statement
|
||||||
|
__license__ = 'GPL 3'
|
||||||
|
__copyright__ = '2009, Kovid Goyal <kovid@kovidgoyal.net>'
|
||||||
|
__docformat__ = 'restructuredtext en'
|
||||||
|
|
||||||
|
|
||||||
|
from calibre.devices.usbms.driver import USBMS
|
||||||
|
|
||||||
|
class BLACKBERRY(USBMS):
|
||||||
|
# Ordered list of supported formats
|
||||||
|
FORMATS = ['mobi', 'prc']
|
||||||
|
|
||||||
|
VENDOR_ID = [0x0fca]
|
||||||
|
PRODUCT_ID = [0x8004]
|
||||||
|
BCD = [0x0200]
|
||||||
|
|
||||||
|
VENDOR_NAME = 'RIM'
|
||||||
|
WINDOWS_MAIN_MEM = 'BLACKBERRY_SD'
|
||||||
|
#WINDOWS_CARD_MEM = 'CARD_STORAGE'
|
||||||
|
|
||||||
|
#OSX_MAIN_MEM = 'Kindle Internal Storage Media'
|
||||||
|
#OSX_CARD_MEM = 'Kindle Card Storage Media'
|
||||||
|
|
||||||
|
MAIN_MEMORY_VOLUME_LABEL = 'Blackberry Main Memory'
|
||||||
|
#STORAGE_CARD_VOLUME_LABEL = 'Kindle Storage Card'
|
||||||
|
|
||||||
|
EBOOK_DIR_MAIN = 'ebooks'
|
||||||
|
#EBOOK_DIR_CARD = "documents"
|
||||||
|
SUPPORTS_SUB_DIRS = False
|
||||||
|
|
Loading…
x
Reference in New Issue
Block a user