Changeset View
Changeset View
Standalone View
Standalone View
src/akonadi/akonadilivequeryhelpers.h
Show All 39 Lines | 36 | public: | |||
---|---|---|---|---|---|
40 | typedef Domain::LiveQueryInput<Item>::FetchFunction ItemFetchFunction; | 40 | typedef Domain::LiveQueryInput<Item>::FetchFunction ItemFetchFunction; | ||
41 | typedef Domain::LiveQueryInput<Tag>::FetchFunction TagFetchFunction; | 41 | typedef Domain::LiveQueryInput<Tag>::FetchFunction TagFetchFunction; | ||
42 | 42 | | |||
43 | LiveQueryHelpers(const SerializerInterface::Ptr &serializer, | 43 | LiveQueryHelpers(const SerializerInterface::Ptr &serializer, | ||
44 | const StorageInterface::Ptr &storage); | 44 | const StorageInterface::Ptr &storage); | ||
45 | 45 | | |||
46 | CollectionFetchFunction fetchAllCollections(StorageInterface::FetchContentTypes contentTypes) const; | 46 | CollectionFetchFunction fetchAllCollections(StorageInterface::FetchContentTypes contentTypes) const; | ||
47 | CollectionFetchFunction fetchCollections(const Collection &root, StorageInterface::FetchContentTypes contentTypes) const; | 47 | CollectionFetchFunction fetchCollections(const Collection &root, StorageInterface::FetchContentTypes contentTypes) const; | ||
48 | CollectionFetchFunction searchCollections(const Collection &root, const QString *searchTerm, | | |||
49 | StorageInterface::FetchContentTypes contentTypes) const; | | |||
50 | 48 | | |||
51 | ItemFetchFunction fetchItems(StorageInterface::FetchContentTypes contentTypes) const; | 49 | ItemFetchFunction fetchItems(StorageInterface::FetchContentTypes contentTypes) const; | ||
52 | ItemFetchFunction fetchItems(const Tag &tag) const; | 50 | ItemFetchFunction fetchItems(const Tag &tag) const; | ||
53 | 51 | | |||
54 | ItemFetchFunction fetchSiblings(const Item &item) const; | 52 | ItemFetchFunction fetchSiblings(const Item &item) const; | ||
55 | 53 | | |||
56 | TagFetchFunction fetchTags() const; | 54 | TagFetchFunction fetchTags() const; | ||
57 | 55 | | |||
58 | private: | 56 | private: | ||
59 | SerializerInterface::Ptr m_serializer; | 57 | SerializerInterface::Ptr m_serializer; | ||
60 | StorageInterface::Ptr m_storage; | 58 | StorageInterface::Ptr m_storage; | ||
61 | }; | 59 | }; | ||
62 | 60 | | |||
63 | } | 61 | } | ||
64 | 62 | | |||
65 | #endif // AKONADI_LIVEQUERYHELPERS_H | 63 | #endif // AKONADI_LIVEQUERYHELPERS_H |