View Single Post
Old 09-29-2016, 08:48 PM   #7
davidfor
Grand Sorcerer
davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.
 
Posts: 24,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
Your starting point will be the Kindle driver (calibre/device/kindle). You can subclass that and add function. The KoboTouchExtended driver does this for the KoboTouch driver.

You probably want to look at the "books" method. That is what finds the books on the device. But, it might need to be later as can't think exactly when the books on the device are matched to the library.

For sending the file back, it is "upload_books". That does the send, so you could add other files as well.

An alternative is writing a separate plugin for non-core function. I have done this with my Kobo Utilities plugin. It has several functions that are triggered when the device is connected and to fetch data from the device.
davidfor is offline   Reply With Quote