bool OEBPlugin::readModel(const DBBook &book, BookModel &model) const { model.addUserData( "inputStreamLock", new InputStreamLock(ZLFile(book.fileName()).inputStream()) ); return OEBBookReader(model).readBook(opfFileName(book.fileName())); }
bool OEBPlugin::readModel(BookModel &model) const { const ZLFile &file = model.book()->file(); model.addUserData( "inputStreamLock", new InputStreamLock(file.inputStream()) ); return OEBBookReader(model).readBook(opfFile(file)); }
bool OEBPlugin::readModel(BookModel &model) const { const ZLFile &file = model.book()->file(); return OEBBookReader(model).readBook(opfFile(file)); }