X-Git-Url: http://git.nikiroo.be/?a=blobdiff_plain;ds=inline;f=src%2Fbe%2Fnikiroo%2Ffanfix%2Freader%2FReader.java;h=a0a8e806656711ca098664bdec7c9a77bda6f9fb;hb=37abe20c2f39a8e9e4fef5dfe5e14cb732d25b02;hp=fa170e44fcc64a3233ec2c09cba93fb31e84cb07;hpb=8b153400ae5ab24891446be1b3423ea17e71b49c;p=nikiroo-utils.git
diff --git a/src/be/nikiroo/fanfix/reader/Reader.java b/src/be/nikiroo/fanfix/reader/Reader.java
index fa170e4..a0a8e80 100644
--- a/src/be/nikiroo/fanfix/reader/Reader.java
+++ b/src/be/nikiroo/fanfix/reader/Reader.java
@@ -170,6 +170,18 @@ public interface Reader {
*/
public void browse(String source);
+ /**
+ * Display all supports that allow search operations.
+ *
+ * @param sync
+ * execute the process synchronously (wait until it is terminated
+ * before returning)
+ *
+ * @throws IOException
+ * in case of I/O error
+ */
+ public void search(boolean sync) throws IOException;
+
/**
* Search for the given terms and find stories that correspond if possible.
*
@@ -183,12 +195,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 +227,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 +238,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