X-Git-Url: http://git.nikiroo.be/?p=fanfix.git;a=blobdiff_plain;f=src%2Fbe%2Fnikiroo%2Ffanfix%2Freader%2FReader.java;h=b001e304842f4956095050160d5bf65b8795d3f3;hp=5fe1c5d67d55bef4993bcd6e55ce7f6c95d8bb6d;hb=350bc060516184774f8116e61696a8c3c45ba85d;hpb=85493b380b07146e2b36c0ffe40d2dc17a4ebdf2 diff --git a/src/be/nikiroo/fanfix/reader/Reader.java b/src/be/nikiroo/fanfix/reader/Reader.java index 5fe1c5d..b001e30 100644 --- a/src/be/nikiroo/fanfix/reader/Reader.java +++ b/src/be/nikiroo/fanfix/reader/Reader.java @@ -130,11 +130,15 @@ public interface Reader { /** * Start the {@link Story} Reading. * + * @param sync + * execute the process synchronously (wait until it is terminated + * before returning) + * * @throws IOException * in case of I/O error or if the {@link Story} was not * previously set */ - public void read() throws IOException; + public void read(boolean sync) throws IOException; /** * The selected chapter to start reading at (starting at 1, 0 = description, @@ -156,6 +160,8 @@ public interface Reader { /** * Start the reader in browse mode for the given source (or pass NULL for * all sources). + *

+ * Note that this must be a synchronous action. * * @param source * the type of {@link Story} to take into account, or NULL for @@ -164,16 +170,20 @@ public interface Reader { public void browse(String source); /** - * Open the {@link Story} with an external reader (the program will be + * Open the {@link Story} with an external reader (the program should be * passed the main file associated with this {@link Story}). * * @param lib * the {@link BasicLibrary} to select the {@link Story} from * @param luid * the {@link Story} LUID + * @param sync + * execute the process synchronously (wait until it is terminated + * before returning) * * @throws IOException * in case of I/O error */ - public void openExternal(BasicLibrary lib, String luid) throws IOException; + public void openExternal(BasicLibrary lib, String luid, boolean sync) + throws IOException; }