libquentier 0.5.0
The library for rich desktop clients of Evernote service
Loading...
Searching...
No Matches
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:
Collaboration diagram for quentier::ILocalStorageCacheExpiryChecker:

Public Member Functions

virtual ILocalStorageCacheExpiryCheckerclone () const =0
virtual bool checkNotes () const =0
virtual bool checkResources () 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)
Printableoperator= (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
False if the cache of linked notebooks needs to be shrunk (due to its size or whatever other reason), true otherwise

Implemented in quentier::DefaultLocalStorageCacheExpiryChecker.

◆ checkNotebooks()

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

Implemented in quentier::DefaultLocalStorageCacheExpiryChecker.

◆ checkNotes()

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

Implemented in quentier::DefaultLocalStorageCacheExpiryChecker.

◆ checkResources()

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

Implemented in quentier::DefaultLocalStorageCacheExpiryChecker.

◆ checkSavedSearches()

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

Implemented in quentier::DefaultLocalStorageCacheExpiryChecker.

◆ checkTags()

virtual bool quentier::ILocalStorageCacheExpiryChecker::checkTags ( ) const
pure virtual
Returns
False if the cache of tags needs to be shrunk (due to its size or whatever other reason), true 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.

◆ print()

virtual QTextStream & quentier::ILocalStorageCacheExpiryChecker::print ( QTextStream & strm) const
pure virtual

Print the internal information about ILocalStorageCacheExpiryChecker implementation instance to the text stream.

Implements quentier::Printable.

Implemented in quentier::DefaultLocalStorageCacheExpiryChecker.