Пример #1
0
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()));
}
Пример #2
0
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));
}
Пример #3
0
bool OEBPlugin::readModel(BookModel &model) const {
	const ZLFile &file = model.book()->file();
	return OEBBookReader(model).readBook(opfFile(file));
}