View Single Post
Old 12-13-2014, 08:46 PM   #733
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
Beta - Profiles for multiple devices

Attached is a beta of a big change for handling multiple devices. The change allows creation of a profile for each device for storing the reading status. This will allow using one library to track the reading status of devices used by different people.

The changes are in the configuration. This now has three tabs: "Profiles", "Devices" and "Other".

The "Other" tab has options that are used for all profiles and libraries. This is where you can set the function of the plugin button and the keyboard shortcut.

The "Device" tab is where the devices are defined. This lists all devices the plugin knows about. Initially, this list is empty. When you connect a device that you want to manage, go to this tab and press the "Add connected device" button. The connected device will be added to the list. The name of the device can be edited by selecting it and pressing the rename button (the yellow arrow).

The "Profiles" tab is where you define where custom columns for storing the reading status. It also has what happens when the device is connected. On this tab, you create a new profile and name it. Then select the device the profile is for, the custom columns to be used and what actions to take when the device is connected.

A profile can be created with no device, a specific device or "*Any Device". The profile for "*Any Device" is used when a device is connected that does not have its own device. If there is no profile for the device or for "*Any Device", nothing is done for the device when it is connected.

Other than this, everything is works the same as before. The configuration options within the profile are the same as before.

The translation files have been updated. There are about 20 new strings.

At this point, I have two more things to change.

Firstly, add profile selection to the store/restore dialog. This will allow you to select the profile to use when restoring the reading status to a device. Or when doing a manual store.

The other thing is that I am not sure if the firmware check and backup should be part of the profile. The profiles are library specific. At the moment, this means if you use multiple libraries, the backup options could be different for the same device in different libraries. I am considering moving this to the Devices tab. Then, I would either have the same options for all devices in all libraries, or have settings for each device but common to all libraries.

The other possibility for changes is to have a wizard or something to create the custom columns. This is something I will consider in the future, but I don't plan to do it before releasing this version.

I would very much like to hear any reports if you test this. If you find a bug, I need as much information as possible. Running calibre in debug mode and posting the logs would be great. And any suggestions to improve this will be welcome. I might not take, them, but
Attached Files
File Type: zip KoboUtilities-beta.zip (188.2 KB, 1820 views)
davidfor is offline