X-Git-Url: http://git.nikiroo.be/?p=fanfix.git;a=blobdiff_plain;f=src%2Fbe%2Fnikiroo%2Ffanfix%2Freader%2FReader.java;h=bd13e5cb8c032e6866b72c30693d625eae0815e1;hp=fa170e44fcc64a3233ec2c09cba93fb31e84cb07;hb=f76de46507bf17695ce3c6e3a4b1b698d3182ebd;hpb=0b39fb9f4fc11d0880158a3b182900b9fe82da42 diff --git a/src/be/nikiroo/fanfix/reader/Reader.java b/src/be/nikiroo/fanfix/reader/Reader.java index fa170e4..bd13e5c 100644 --- a/src/be/nikiroo/fanfix/reader/Reader.java +++ b/src/be/nikiroo/fanfix/reader/Reader.java @@ -183,12 +183,15 @@ public interface Reader { * @param item * the item to select (0 = do not select a specific item but show * all the page, items start at 1) + * @param sync + * execute the process synchronously (wait until it is terminated + * before returning) * * @throws IOException * in case of I/O error */ - public void search(SupportType searchOn, String keywords, int page, int item) - throws IOException; + public void search(SupportType searchOn, String keywords, int page, + int item, boolean sync) throws IOException; /** * Search based upon a hierarchy of tags, or search for (sub)tags. @@ -212,6 +215,9 @@ public interface Reader { * @param item * the item to select (0 = do not select a specific item but show * all the page, items start at 1) + * @param sync + * execute the process synchronously (wait until it is terminated + * before returning) * @param tags * the tags indices to search for (this is a tag * hierarchy, NOT a multiple tags choice) @@ -220,7 +226,7 @@ public interface Reader { * in case of I/O error */ public void searchTag(SupportType searchOn, int page, int item, - Integer... tags) throws IOException; + boolean sync, Integer... tags) throws IOException; /** * Open the {@link Story} with an external reader (the program should be