fix cache, MangaLEL +search
[fanfix.git] / src / be / nikiroo / fanfix / searchable / BasicSearchable.java
index 979bf5ecee225e2656afb8b862adb3c98b7e307f..0449b818caa9ec88f9557acaa67460bfce084382 100644 (file)
@@ -85,6 +85,20 @@ public abstract class BasicSearchable {
         */
        abstract public void fillTag(SearchableTag tag) throws IOException;
 
+       /**
+        * Search for the given term and return the number of pages of results of
+        * stories satisfying this search term.
+        * 
+        * @param search
+        *            the term to search for
+        * 
+        * @return a number of pages
+        * 
+        * @throws IOException
+        *             in case of I/O error
+        */
+       abstract public int searchPages(String search) throws IOException;
+
        /**
         * Search for the given term and return a list of stories satisfying this
         * search term.
@@ -198,7 +212,7 @@ public abstract class BasicSearchable {
                        // TODO
                        break;
                case MANGA_LEL:
-                       // TODO
+                       support = new MangaLel();
                        break;
                case CBZ:
                case HTML: