Driver for the LongShine ShineBook

This commit is contained in:
Kovid Goyal 2009-12-29 15:40:42 -07:00
parent f703ad42dd
commit 2668df9f93
4 changed files with 17 additions and 3 deletions

View File

@ -462,6 +462,7 @@ plugins += [
ILIAD, ILIAD,
IREXDR1000, IREXDR1000,
JETBOOK, JETBOOK,
SHINEBOOK,
KINDLE, KINDLE,
KINDLE2, KINDLE2,
KINDLE_DX, KINDLE_DX,
@ -480,7 +481,6 @@ plugins += [
POCKETBOOK360, POCKETBOOK360,
GER2, GER2,
ITALICA, ITALICA,
SHINEBOOK,
ECLICTO, ECLICTO,
DBOOK, DBOOK,
BOOX, BOOX,

View File

@ -16,6 +16,7 @@ Windows PNP strings:
''' '''
from calibre.devices.usbms.driver import USBMS from calibre.devices.usbms.driver import USBMS
from calibre.constants import iswindows
class EB600(USBMS): class EB600(USBMS):
@ -81,6 +82,19 @@ class SHINEBOOK(EB600):
VENDOR_NAME = 'LONGSHIN' VENDOR_NAME = 'LONGSHIN'
WINDOWS_MAIN_MEM = 'ESHINEBOOK' WINDOWS_MAIN_MEM = 'ESHINEBOOK'
MAIN_MEMORY_VOLUME_LABEL = 'ShineBook Main Memory'
STORAGE_CARD_VOLUME_LABEL = 'ShineBook Storage Card'
@classmethod
def can_handle(cls, dev, debug=False):
try:
if not iswindows:
return dev[4] == 'ShineBook'
except:
return True
class POCKETBOOK360(EB600): class POCKETBOOK360(EB600):

View File

@ -81,7 +81,7 @@ Device Integration
What devices does |app| support? What devices does |app| support?
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
At the moment |app| has full support for the SONY PRS 300/500/505/600/700/900, Barnes & Noble Nook, Cybook Gen 3/Opus, Amazon Kindle 1/2/DX, Netronix EB600, Ectaco Jetbook, BeBook/BeBook Mini, Irex Illiad/DR1000, Foxit eSlick, PocketBook 360, Italica, eClicto, Iriver Story, Airis dBook, various Android phones and the iPhone. In addition, using the :guilabel:`Save to disk` function you can use it with any ebook reader that exports itself as a USB disk. At the moment |app| has full support for the SONY PRS 300/500/505/600/700/900, Barnes & Noble Nook, Cybook Gen 3/Opus, Amazon Kindle 1/2/DX, Longshine ShineBook, Ectaco Jetbook, BeBook/BeBook Mini, Irex Illiad/DR1000, Foxit eSlick, PocketBook 360, Italica, eClicto, Iriver Story, Airis dBook, various Android phones and the iPhone. In addition, using the :guilabel:`Save to disk` function you can use it with any ebook reader that exports itself as a USB disk.
How can I help get my device supported in |app|? How can I help get my device supported in |app|?
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

View File

@ -78,7 +78,7 @@ def main():
# On some OS X computers launchd apparently tries to # On some OS X computers launchd apparently tries to
# launch the last run process from the bundle # launch the last run process from the bundle
from calibre.gui2.main import main as gui_main from calibre.gui2.main import main as gui_main
return gui_main([]) return gui_main(['calibre'])
address = cPickle.loads(unhexlify(os.environ['CALIBRE_WORKER_ADDRESS'])) address = cPickle.loads(unhexlify(os.environ['CALIBRE_WORKER_ADDRESS']))
key = unhexlify(os.environ['CALIBRE_WORKER_KEY']) key = unhexlify(os.environ['CALIBRE_WORKER_KEY'])
resultf = unhexlify(os.environ['CALIBRE_WORKER_RESULT']) resultf = unhexlify(os.environ['CALIBRE_WORKER_RESULT'])