libquentier  0.4.0
The library for rich desktop clients of Evernote service
Public Member Functions | List of all members
quentier::DefaultLocalStorageCacheExpiryChecker Class Reference

#include <DefaultLocalStorageCacheExpiryChecker.h>

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

Public Member Functions

 DefaultLocalStorageCacheExpiryChecker (const LocalStorageCacheManager &cacheManager)
 
virtual DefaultLocalStorageCacheExpiryCheckerclone () const Q_DECL_OVERRIDE
 
virtual bool checkNotes () const Q_DECL_OVERRIDE
 
virtual bool checkNotebooks () const Q_DECL_OVERRIDE
 
virtual bool checkTags () const Q_DECL_OVERRIDE
 
virtual bool checkLinkedNotebooks () const Q_DECL_OVERRIDE
 
virtual bool checkSavedSearches () const Q_DECL_OVERRIDE
 
virtual QTextStream & print (QTextStream &strm) const Q_DECL_OVERRIDE
 print the internal information about the current DefaultLocalStorageCacheExpiryChecker instance to the text stream
 
- Public Member Functions inherited from quentier::Printable
virtual const QString toString () const
 

Additional Inherited Members

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

Detailed Description

brief The DefaultLocalStorageCacheExpiryChecker class is the implementation of ILocalStorageCacheExpiryChecker interface used by LocalStorageCacheManager by default, if no another implementation of ILocalStorageCacheExpiryChecker is set to be used by LocalStorageCacheManager

Member Function Documentation

◆ checkLinkedNotebooks()

virtual bool quentier::DefaultLocalStorageCacheExpiryChecker::checkLinkedNotebooks ( ) const
virtual
Returns
true if the current number of cached linked notebooks is higher than a reasonable limit, false otherwise

Implements quentier::ILocalStorageCacheExpiryChecker.

◆ checkNotebooks()

virtual bool quentier::DefaultLocalStorageCacheExpiryChecker::checkNotebooks ( ) const
virtual
Returns
true if the current number of cached notebooks is higher than a reasonable limit, false otherwise

Implements quentier::ILocalStorageCacheExpiryChecker.

◆ checkNotes()

virtual bool quentier::DefaultLocalStorageCacheExpiryChecker::checkNotes ( ) const
virtual
Returns
true if the current number of cached notes is higher than a reasonable limit, false otherwise

Implements quentier::ILocalStorageCacheExpiryChecker.

◆ checkSavedSearches()

virtual bool quentier::DefaultLocalStorageCacheExpiryChecker::checkSavedSearches ( ) const
virtual
Returns
true if the current number of cached saved searches is higher than a reasonable limit, false otherwise

Implements quentier::ILocalStorageCacheExpiryChecker.

◆ checkTags()

virtual bool quentier::DefaultLocalStorageCacheExpiryChecker::checkTags ( ) const
virtual
Returns
true if the current number of cached tags is higher than a reasonable limit, false otherwise

Implements quentier::ILocalStorageCacheExpiryChecker.

◆ clone()

virtual DefaultLocalStorageCacheExpiryChecker* quentier::DefaultLocalStorageCacheExpiryChecker::clone ( ) const
virtual
Returns
a pointer to the newly allocated copy of the current DefaultLocalStorageCacheExpiryChecker

Implements quentier::ILocalStorageCacheExpiryChecker.