libquentier  0.4.0
The library for rich desktop clients of Evernote service
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
quentier::ILocalStorageCacheExpiryChecker Class Referenceabstract

The ILocalStorageCacheExpiryChecker class represents the interface for cache expiry checker used by LocalStorageCacheManager to see whether particular caches (of notes, notebooks, tags, linked notebooks and/or saved searches) need to be shrunk. More...

#include <ILocalStorageCacheExpiryChecker.h>

Inheritance diagram for quentier::ILocalStorageCacheExpiryChecker:
Inheritance graph
[legend]
Collaboration diagram for quentier::ILocalStorageCacheExpiryChecker:
Collaboration graph
[legend]

Public Member Functions

virtual ILocalStorageCacheExpiryCheckerclone () const =0
 
virtual bool checkNotes () const =0
 
virtual bool checkNotebooks () const =0
 
virtual bool checkTags () const =0
 
virtual bool checkLinkedNotebooks () const =0
 
virtual bool checkSavedSearches () const =0
 
virtual QTextStream & print (QTextStream &strm) const =0
 print the internal information about ILocalStorageCacheExpiryChecker implementation instance to the text stream
 
- Public Member Functions inherited from quentier::Printable
virtual const QString toString () const
 

Protected Member Functions

 ILocalStorageCacheExpiryChecker (const LocalStorageCacheManager &cacheManager)
 
- Protected Member Functions inherited from quentier::Printable
 Printable (const Printable &other)
 

Protected Attributes

const LocalStorageCacheManagerm_localStorageCacheManager
 

Detailed Description

The ILocalStorageCacheExpiryChecker class represents the interface for cache expiry checker used by LocalStorageCacheManager to see whether particular caches (of notes, notebooks, tags, linked notebooks and/or saved searches) need to be shrunk.

Member Function Documentation

◆ checkLinkedNotebooks()

virtual bool quentier::ILocalStorageCacheExpiryChecker::checkLinkedNotebooks ( ) const
pure virtual
Returns
true if the cache of linked notebooks needs to be shrunk (due to its size or whatever other reason), false otherwise

Implemented in quentier::DefaultLocalStorageCacheExpiryChecker.

◆ checkNotebooks()

virtual bool quentier::ILocalStorageCacheExpiryChecker::checkNotebooks ( ) const
pure virtual
Returns
true if the cache of notebooks needs to be shrunk (due to its size or whatever other reason), false otherwise

Implemented in quentier::DefaultLocalStorageCacheExpiryChecker.

◆ checkNotes()

virtual bool quentier::ILocalStorageCacheExpiryChecker::checkNotes ( ) const
pure virtual
Returns
true if the cache of notes needs to be shrunk (due to its size or whatever other reason), false otherwise

Implemented in quentier::DefaultLocalStorageCacheExpiryChecker.

◆ checkSavedSearches()

virtual bool quentier::ILocalStorageCacheExpiryChecker::checkSavedSearches ( ) const
pure virtual
Returns
true if the cache of saved searches needs to be shrunk (due to its size or whatever other reason), false otherwise

Implemented in quentier::DefaultLocalStorageCacheExpiryChecker.

◆ checkTags()

virtual bool quentier::ILocalStorageCacheExpiryChecker::checkTags ( ) const
pure virtual
Returns
true if the cache of tags needs to be shrunk (due to its size or whatever other reason), false otherwise

Implemented in quentier::DefaultLocalStorageCacheExpiryChecker.

◆ clone()

virtual ILocalStorageCacheExpiryChecker* quentier::ILocalStorageCacheExpiryChecker::clone ( ) const
pure virtual
Returns
a pointer to the newly allocated copy of a particular ILocalStorageCacheExpiryChecker implementation

Implemented in quentier::DefaultLocalStorageCacheExpiryChecker.