Skip to content
This repository was archived by the owner on Oct 25, 2021. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions fbreader/src/library/Library.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -418,6 +418,11 @@ const BookList &Library::recentBooks() const {
return myRecentBooks;
}

const BookSet &Library::books() const {
synchronize();
return myBooks;
}

void Library::addBookToRecentList(shared_ptr<Book> book) {
if (book.isNull()) {
return;
Expand Down
1 change: 1 addition & 0 deletions fbreader/src/library/Library.h
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ class Library {
const BookList &books(shared_ptr<Author> author) const;
const BookList &books(shared_ptr<Tag> tag) const;
const BookList &recentBooks() const;
const BookSet &books() const;

enum RemoveType {
REMOVE_DONT_REMOVE = 0,
Expand Down
6 changes: 5 additions & 1 deletion zlibrary/core/src/filesystem/ZLFSPluginManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,19 @@
#include "ZLFSPluginManager.h"

#include "zip/ZLFSCompressorGzip.h"
#include "bzip2/ZLFSCompressorBzip2.h"
#ifndef NO_BZIP2_SUPPORT
# include "bzip2/ZLFSCompressorBzip2.h"
#endif
#include "zip/ZLFSArchiverZip.h"
#include "tar/ZLFSArchiverTar.h"

static const char ARCHIVERS_SEPARATOR = '.';

ZLFSPluginManager::ZLFSPluginManager() {
registerPlugin(new ZLFSCompressorGzip);
#ifndef NO_BZIP2_SUPPORT
registerPlugin(new ZLFSCompressorBzip2);
#endif
registerPlugin(new ZLFSArchiverZip);
registerPlugin(new ZLFSArchiverTar);
}
Expand Down