1
0
Fork 0
mirror of https://github.com/geometer/FBReaderJ.git synced 2025-10-06 12:00:17 +02:00

encryption type is visible from java code

This commit is contained in:
Nikolay Pultsin 2014-02-13 19:18:58 +00:00
parent 480d3d1398
commit 2f75bb15d6
12 changed files with 76 additions and 19 deletions

View file

@ -129,7 +129,7 @@ bool OEBPlugin::readMetaInfo(Book &book) const {
return OEBMetaInfoReader(book).readMetaInfo(opfFile(file));
}
std::string OEBPlugin::readEncryptionType(Book &book) const {
const std::string &OEBPlugin::readEncryptionType(Book &book) const {
return OEBEncryptionReader().readEncryptionInfo(epubFile(book.file()));
}
@ -139,8 +139,6 @@ bool OEBPlugin::readUids(Book &book) const {
}
bool OEBPlugin::readModel(BookModel &model) const {
ZLLogger::Instance().registerClass("encryption");
ZLLogger::Instance().println("encryption", "ENCRYPTION TYPE = " + readEncryptionType(*model.book()));
const ZLFile &file = model.book()->file();
return OEBBookReader(model).readBook(opfFile(file));
}