19 #ifndef LIB_QUENTIER_LOCAL_STORAGE_LOCAL_STORAGE_CACHE_MANAGER_H
20 #define LIB_QUENTIER_LOCAL_STORAGE_LOCAL_STORAGE_CACHE_MANAGER_H
22 #include <quentier/utility/Printable.h>
28 QT_FORWARD_DECLARE_CLASS(LinkedNotebook)
29 QT_FORWARD_DECLARE_CLASS(Note)
30 QT_FORWARD_DECLARE_CLASS(Notebook)
31 QT_FORWARD_DECLARE_CLASS(Resource)
32 QT_FORWARD_DECLARE_CLASS(SavedSearch)
33 QT_FORWARD_DECLARE_CLASS(Tag)
35 QT_FORWARD_DECLARE_CLASS(ILocalStorageCacheExpiryChecker)
37 QT_FORWARD_DECLARE_CLASS(LocalStorageCacheManagerPrivate)
54 size_t numCachedNotes()
const;
55 void cacheNote(
const Note & note);
56 void expungeNote(
const Note & note);
58 const Note * findNote(
59 const QString & uid,
const WhichUid whichUid)
const;
64 size_t numCachedResources()
const;
65 void cacheResource(
const Resource & resource);
66 void expungeResource(
const Resource & resource);
69 const QString &
id,
const WhichUid whichUid)
const;
71 void clearAllResources();
74 size_t numCachedNotebooks()
const;
75 void cacheNotebook(
const Notebook & notebook);
76 void expungeNotebook(
const Notebook & notebook);
79 const QString & uid,
const WhichUid whichUid)
const;
81 const Notebook * findNotebookByName(
const QString & name)
const;
82 void clearAllNotebooks();
85 size_t numCachedTags()
const;
86 void cacheTag(
const Tag & tag);
87 void expungeTag(
const Tag & tag);
88 const Tag * findTag(
const QString & uid,
const WhichUid whichUid)
const;
89 const Tag * findTagByName(
const QString & name)
const;
93 size_t numCachedLinkedNotebooks()
const;
96 const LinkedNotebook * findLinkedNotebook(
const QString & guid)
const;
97 void clearAllLinkedNotebooks();
100 size_t numCachedSavedSearches()
const;
101 void cacheSavedSearch(
const SavedSearch & savedSearch);
102 void expungeSavedSearch(
const SavedSearch & savedSearch);
105 const QString & uid,
const WhichUid whichUid)
const;
107 const SavedSearch * findSavedSearchByName(
const QString & name)
const;
108 void clearAllSavedSearches();
110 void installCacheExpiryFunction(
113 virtual QTextStream & print(QTextStream & strm)
const override;
118 LocalStorageCacheManagerPrivate *
const d_ptr;
The ILocalStorageCacheExpiryChecker class represents the interface for cache expiry checker used by L...
Definition: ILocalStorageCacheExpiryChecker.h:35
Definition: LinkedNotebook.h:33
Definition: LocalStorageCacheManager.h:39
Definition: Notebook.h:35
The Printable class is the interface for Quentier's internal classes which should be able to write th...
Definition: Printable.h:39
Definition: Resource.h:30
Definition: SavedSearch.h:33