Encapsulated access to Book::m_illustration

This commit is contained in:
Veloman Yunkan
2021-10-31 16:46:46 +04:00
parent ec5a423924
commit 7d8a83cc97
2 changed files with 30 additions and 14 deletions

View File

@ -107,10 +107,12 @@ class Book
void setSize(uint64_t size) { m_size = size; }
void setDownloadId(const std::string& downloadId) { m_downloadId = downloadId; }
private:
private: // functions
std::string getCategoryFromTags() const;
const Illustration& getDefaultIllustration() const;
Illustration& getMutableDefaultIllustration();
protected:
protected: // data
std::string m_id;
std::string m_downloadId;
std::string m_path;