X-Git-Url: http://git.nikiroo.be/?a=blobdiff_plain;f=src%2Fbe%2Fnikiroo%2Ffanfix%2Flibrary%2FRemoteLibrary.java;h=513849e3ce44a5ede2ec0c1869b909a939daaedf;hb=a85e807750081c6e77a7916ca4e79506b5a98537;hp=83766396499fa783712b0558e51c3ad63def314e;hpb=4f722df2645dc6202e87a98cad1df77a530ddca1;p=nikiroo-utils.git diff --git a/src/be/nikiroo/fanfix/library/RemoteLibrary.java b/src/be/nikiroo/fanfix/library/RemoteLibrary.java index 8376639..513849e 100644 --- a/src/be/nikiroo/fanfix/library/RemoteLibrary.java +++ b/src/be/nikiroo/fanfix/library/RemoteLibrary.java @@ -16,7 +16,7 @@ import be.nikiroo.utils.serial.ConnectActionClient; /** * This {@link BasicLibrary} will access a remote server to list the available - * stories, and download the one you try to load to the local directory + * stories, and download the ones you try to load to the local directory * specified in the configuration. * * @author niki @@ -137,26 +137,32 @@ public class RemoteLibrary extends BasicLibrary { } @Override - protected int getNextId() { + public synchronized void delete(String luid) throws IOException { throw new java.lang.InternalError( "No write support allowed on remote Libraries"); } @Override - protected void doDelete(String luid) throws IOException { + public void setSourceCover(String source, String luid) { throw new java.lang.InternalError( "No write support allowed on remote Libraries"); } + // All the following methods are only used by Save and Delete in + // BasicLibrary: + @Override - protected Story doSave(Story story, Progress pg) throws IOException { - throw new java.lang.InternalError( - "No write support allowed on remote Libraries"); + protected int getNextId() { + throw new java.lang.InternalError("Should not have been called"); } @Override - public void setSourceCover(String source, String luid) { - throw new java.lang.InternalError( - "No write support allowed on remote Libraries"); + protected void doDelete(String luid) throws IOException { + throw new java.lang.InternalError("Should not have been called"); + } + + @Override + protected Story doSave(Story story, Progress pg) throws IOException { + throw new java.lang.InternalError("Should not have been called"); } }