add mangahub, remove mangfox
[nikiroo-utils.git] / src / be / nikiroo / fanfix / searchable / BasicSearchable.java
index a67d2f6022e47088824d7f61cbaaa341b6ce8a0c..2b94725b28d15ef88cb96e75125a4636bfa7d878 100644 (file)
@@ -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.
@@ -233,7 +247,7 @@ public abstract class BasicSearchable {
                        case FANFICTION:
                                support = new Fanfiction(type);
                                break;
-                       case MANGAFOX:
+                       case MANGAHUB:
                                // TODO
                                break;
                        case E621: