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> 23 #include <QScopedPointer> 27 QT_FORWARD_DECLARE_CLASS(Note)
28 QT_FORWARD_DECLARE_CLASS(Notebook)
29 QT_FORWARD_DECLARE_CLASS(Tag)
30 QT_FORWARD_DECLARE_CLASS(LinkedNotebook)
31 QT_FORWARD_DECLARE_CLASS(SavedSearch)
33 QT_FORWARD_DECLARE_CLASS(ILocalStorageCacheExpiryChecker)
35 QT_FORWARD_DECLARE_CLASS(LocalStorageCacheManagerPrivate)
52 size_t numCachedNotes()
const;
53 void cacheNote(
const Note & note);
54 void expungeNote(
const Note & note);
55 const Note * findNote(
const QString & guid,
const WhichUid wg)
const;
58 size_t numCachedNotebooks()
const;
59 void cacheNotebook(
const Notebook & notebook);
60 void expungeNotebook(
const Notebook & notebook);
61 const Notebook * findNotebook(
const QString & guid,
const WhichUid wg)
const;
62 const Notebook * findNotebookByName(
const QString & name)
const;
65 size_t numCachedTags()
const;
66 void cacheTag(
const Tag & tag);
67 void expungeTag(
const Tag & tag);
68 const Tag * findTag(
const QString & guid,
const WhichUid wg)
const;
69 const Tag * findTagByName(
const QString & name)
const;
72 size_t numCachedLinkedNotebooks()
const;
75 const LinkedNotebook * findLinkedNotebook(
const QString & guid)
const;
78 size_t numCachedSavedSearches()
const;
79 void cacheSavedSearch(
const SavedSearch & savedSearch);
80 void expungeSavedSearch(
const SavedSearch & savedSearch);
81 const SavedSearch * findSavedSearch(
const QString & guid,
const WhichUid wg)
const;
82 const SavedSearch * findSavedSearchByName(
const QString & name)
const;
86 virtual QTextStream & print(QTextStream & strm)
const Q_DECL_OVERRIDE;
91 LocalStorageCacheManagerPrivate * d_ptr;
97 #endif // LIB_QUENTIER_LOCAL_STORAGE_LOCAL_STORAGE_CACHE_MANAGER_H Definition: LinkedNotebook.h:36
The Printable class is the interface for Quentier's internal classes which should be able to write th...
Definition: Printable.h:54
Definition: Notebook.h:38
The ILocalStorageCacheExpiryChecker class represents the interface for cache expiry checker used by L...
Definition: ILocalStorageCacheExpiryChecker.h:33
Definition: LocalStorageCacheManager.h:36
Definition: SavedSearch.h:36