X-Git-Url: http://git.nikiroo.be/?a=blobdiff_plain;f=src%2Fbe%2Fnikiroo%2Ffanfix%2Freader%2Fui%2FGuiReader.java;h=62de6ceebde36142656697ac5bdb7bc720927f25;hb=b4b7ac5cf817edcdfa0be90ecdd7f94d9be57de0;hp=f4a932b3b899ef3fc48826bbe0b3aaa913a68d90;hpb=5bc9573be46f09ac92207e104915bd5babbd6d63;p=nikiroo-utils.git diff --git a/src/be/nikiroo/fanfix/reader/ui/GuiReader.java b/src/be/nikiroo/fanfix/reader/ui/GuiReader.java index f4a932b..62de6ce 100644 --- a/src/be/nikiroo/fanfix/reader/ui/GuiReader.java +++ b/src/be/nikiroo/fanfix/reader/ui/GuiReader.java @@ -25,6 +25,7 @@ import be.nikiroo.fanfix.library.BasicLibrary; import be.nikiroo.fanfix.library.CacheLibrary; import be.nikiroo.fanfix.reader.BasicReader; import be.nikiroo.fanfix.reader.Reader; +import be.nikiroo.fanfix.supported.SupportType; import be.nikiroo.utils.Progress; import be.nikiroo.utils.Version; import be.nikiroo.utils.ui.UIUtils; @@ -218,6 +219,35 @@ class GuiReader extends BasicReader { } } + @Override + public void search(boolean sync) throws IOException { + // TODO + if (sync) { + throw new java.lang.IllegalStateException("Not implemented yet."); + } + } + + @Override + public void search(SupportType searchOn, String keywords, int page, + int item, boolean sync) { + // TODO: add parameters! + GuiReaderSearch search = new GuiReaderSearch(this); + if (sync) { + sync(search); + } else { + search.setVisible(true); + } + } + + @Override + public void searchTag(SupportType searchOn, int page, int item, + boolean sync, Integer... tags) { + // TODO + if (sync) { + throw new java.lang.IllegalStateException("Not implemented yet."); + } + } + /** * Delete the {@link Story} from the cache if it is present, but NOT * from the main library.