Changeset View
Changeset View
Standalone View
Standalone View
src/akonadi/akonadilivequeryhelpers.h
Show All 40 Lines | 37 | public: | |||
---|---|---|---|---|---|
41 | typedef Domain::LiveQueryInput<Item>::FetchFunction ItemFetchFunction; | 41 | typedef Domain::LiveQueryInput<Item>::FetchFunction ItemFetchFunction; | ||
42 | typedef Domain::LiveQueryInput<Tag>::FetchFunction TagFetchFunction; | 42 | typedef Domain::LiveQueryInput<Tag>::FetchFunction TagFetchFunction; | ||
43 | 43 | | |||
44 | LiveQueryHelpers(const SerializerInterface::Ptr &serializer, | 44 | LiveQueryHelpers(const SerializerInterface::Ptr &serializer, | ||
45 | const StorageInterface::Ptr &storage); | 45 | const StorageInterface::Ptr &storage); | ||
46 | 46 | | |||
47 | CollectionFetchFunction fetchAllCollections(StorageInterface::FetchContentTypes contentTypes) const; | 47 | CollectionFetchFunction fetchAllCollections(StorageInterface::FetchContentTypes contentTypes) const; | ||
48 | CollectionFetchFunction fetchCollections(const Collection &root, StorageInterface::FetchContentTypes contentTypes) const; | 48 | CollectionFetchFunction fetchCollections(const Collection &root, StorageInterface::FetchContentTypes contentTypes) const; | ||
49 | CollectionFetchFunction fetchItemCollection(const Item &item) const; | ||||
49 | 50 | | |||
50 | ItemFetchFunction fetchItems(StorageInterface::FetchContentTypes contentTypes) const; | 51 | ItemFetchFunction fetchItems(StorageInterface::FetchContentTypes contentTypes) const; | ||
51 | ItemFetchFunction fetchItems(const Collection &collection) const; | 52 | ItemFetchFunction fetchItems(const Collection &collection) const; | ||
52 | ItemFetchFunction fetchItems(const Tag &tag) const; | 53 | ItemFetchFunction fetchItems(const Tag &tag) const; | ||
53 | 54 | | |||
54 | /// Returns a fetch function which calls a LiveQueryInput::AddFunction (provided as argument to the fetch function) | 55 | /// Returns a fetch function which calls a LiveQueryInput::AddFunction (provided as argument to the fetch function) | ||
55 | /// with the given task, then its parent, its grandparent etc. up until the project. | 56 | /// with the given task, then its parent, its grandparent etc. up until the project. | ||
56 | ItemFetchFunction fetchTaskAndAncestors(Domain::Task::Ptr task) const; | 57 | ItemFetchFunction fetchTaskAndAncestors(Domain::Task::Ptr task) const; | ||
Show All 13 Lines |