X-Git-Url: http://git.nikiroo.be/?p=fanfix.git;a=blobdiff_plain;f=src%2Fbe%2Fnikiroo%2Ffanfix%2Fsearchable%2FBasicSearchable.java;h=d38505e7660fb9f0348394ac23390fa3cdb4aa65;hp=a67d2f6022e47088824d7f61cbaaa341b6ce8a0c;hb=81acd363d9b0af424d462e9d2e6a07b160e7af3b;hpb=b7f50467b56ee8657014af59b4fb3ad4da41eede diff --git a/src/be/nikiroo/fanfix/searchable/BasicSearchable.java b/src/be/nikiroo/fanfix/searchable/BasicSearchable.java index a67d2f6..d38505e 100644 --- a/src/be/nikiroo/fanfix/searchable/BasicSearchable.java +++ b/src/be/nikiroo/fanfix/searchable/BasicSearchable.java @@ -131,6 +131,20 @@ public abstract class BasicSearchable { */ abstract public int searchPages(String search) throws IOException; + /** + * Search for the given tag and return the number of pages of results of + * stories satisfying this tag. + * + * @param tag + * the tag to search for + * + * @return a number of pages + * + * @throws IOException + * in case of I/O error + */ + abstract public int searchPages(SearchableTag tag) throws IOException; + /** * Search for the given term and return a list of stories satisfying this * search term.