Changeset View
Changeset View
Standalone View
Standalone View
src/akonadi/akonadicachingstorage.h
Show All 33 Lines | |||||
34 | { | 34 | { | ||
35 | public: | 35 | public: | ||
36 | explicit CachingStorage(const Cache::Ptr &cache, const StorageInterface::Ptr &storage); | 36 | explicit CachingStorage(const Cache::Ptr &cache, const StorageInterface::Ptr &storage); | ||
37 | virtual ~CachingStorage(); | 37 | virtual ~CachingStorage(); | ||
38 | 38 | | |||
39 | Akonadi::Collection defaultCollection() override; | 39 | Akonadi::Collection defaultCollection() override; | ||
40 | 40 | | |||
41 | KJob *createItem(Item item, Collection collection) override; | 41 | KJob *createItem(Item item, Collection collection) override; | ||
42 | KJob *updateItem(Item item, QObject *parent = nullptr) override; | 42 | KJob *updateItem(Item item, QObject *parent) override; | ||
43 | KJob *removeItem(Akonadi::Item item) override; | 43 | KJob *removeItem(Akonadi::Item item) override; | ||
44 | KJob *removeItems(Item::List items, QObject *parent = nullptr) override; | 44 | KJob *removeItems(Item::List items, QObject *parent) override; | ||
45 | KJob *moveItem(Item item, Collection collection, QObject *parent = nullptr) override; | 45 | KJob *moveItem(Item item, Collection collection, QObject *parent) override; | ||
46 | KJob *moveItems(Item::List item, Collection collection, QObject *parent = nullptr) override; | 46 | KJob *moveItems(Item::List item, Collection collection, QObject *parent = nullptr) override; | ||
47 | 47 | | |||
48 | KJob *createCollection(Collection collection, QObject *parent = nullptr) override; | 48 | KJob *createCollection(Collection collection, QObject *parent) override; | ||
49 | KJob *updateCollection(Collection collection, QObject *parent = nullptr) override; | 49 | KJob *updateCollection(Collection collection, QObject *parent) override; | ||
50 | KJob *removeCollection(Collection collection, QObject *parent = nullptr) override; | 50 | KJob *removeCollection(Collection collection, QObject *parent) override; | ||
51 | 51 | | |||
52 | KJob *createTransaction() override; | 52 | KJob *createTransaction() override; | ||
53 | 53 | | |||
54 | CollectionFetchJobInterface *fetchCollections(Akonadi::Collection collection, FetchDepth depth) override; | 54 | CollectionFetchJobInterface *fetchCollections(Akonadi::Collection collection, FetchDepth depth) override; | ||
55 | ItemFetchJobInterface *fetchItems(Akonadi::Collection collection, QObject *parent) override; | 55 | ItemFetchJobInterface *fetchItems(Akonadi::Collection collection, QObject *parent) override; | ||
56 | ItemFetchJobInterface *fetchItem(Akonadi::Item item, QObject *parent) override; | 56 | ItemFetchJobInterface *fetchItem(Akonadi::Item item, QObject *parent) override; | ||
57 | 57 | | |||
58 | private: | 58 | private: | ||
59 | Cache::Ptr m_cache; | 59 | Cache::Ptr m_cache; | ||
60 | StorageInterface::Ptr m_storage; | 60 | StorageInterface::Ptr m_storage; | ||
61 | }; | 61 | }; | ||
62 | 62 | | |||
63 | } | 63 | } | ||
64 | 64 | | |||
65 | #endif // AKONADI_CACHING_STORAGE_H | 65 | #endif // AKONADI_CACHING_STORAGE_H |