Changeset View
Changeset View
Standalone View
Standalone View
src/akonadi/akonadistorageinterface.h
Show All 30 Lines | |||||
31 | class KJob; | 31 | class KJob; | ||
32 | class QObject; | 32 | class QObject; | ||
33 | class QByteArray; | 33 | class QByteArray; | ||
34 | 34 | | |||
35 | namespace Akonadi { | 35 | namespace Akonadi { | ||
36 | 36 | | |||
37 | class Collection; | 37 | class Collection; | ||
38 | class CollectionFetchJobInterface; | 38 | class CollectionFetchJobInterface; | ||
39 | class CollectionSearchJobInterface; | | |||
40 | class ItemFetchJobInterface; | 39 | class ItemFetchJobInterface; | ||
41 | class TagFetchJobInterface; | 40 | class TagFetchJobInterface; | ||
42 | 41 | | |||
43 | 42 | | |||
44 | class StorageInterface | 43 | class StorageInterface | ||
45 | { | 44 | { | ||
46 | public: | 45 | public: | ||
47 | typedef QSharedPointer<StorageInterface> Ptr; | 46 | typedef QSharedPointer<StorageInterface> Ptr; | ||
Show All 30 Lines | |||||
78 | 77 | | |||
79 | virtual KJob *createTransaction() = 0; | 78 | virtual KJob *createTransaction() = 0; | ||
80 | 79 | | |||
81 | virtual KJob *createTag(Akonadi::Tag tag) = 0; | 80 | virtual KJob *createTag(Akonadi::Tag tag) = 0; | ||
82 | virtual KJob *updateTag(Akonadi::Tag tag) = 0; | 81 | virtual KJob *updateTag(Akonadi::Tag tag) = 0; | ||
83 | virtual KJob *removeTag(Akonadi::Tag tag) = 0; | 82 | virtual KJob *removeTag(Akonadi::Tag tag) = 0; | ||
84 | 83 | | |||
85 | virtual CollectionFetchJobInterface *fetchCollections(Akonadi::Collection collection, FetchDepth depth, FetchContentTypes types) = 0; | 84 | virtual CollectionFetchJobInterface *fetchCollections(Akonadi::Collection collection, FetchDepth depth, FetchContentTypes types) = 0; | ||
86 | virtual CollectionSearchJobInterface *searchCollections(QString collectionName, FetchContentTypes types) = 0; | | |||
87 | virtual ItemFetchJobInterface *fetchItems(Akonadi::Collection collection) = 0; | 85 | virtual ItemFetchJobInterface *fetchItems(Akonadi::Collection collection) = 0; | ||
88 | virtual ItemFetchJobInterface *fetchItem(Akonadi::Item item) = 0; | 86 | virtual ItemFetchJobInterface *fetchItem(Akonadi::Item item) = 0; | ||
89 | virtual ItemFetchJobInterface *fetchTagItems(Akonadi::Tag tag) = 0; | 87 | virtual ItemFetchJobInterface *fetchTagItems(Akonadi::Tag tag) = 0; | ||
90 | virtual TagFetchJobInterface *fetchTags() = 0; | 88 | virtual TagFetchJobInterface *fetchTags() = 0; | ||
91 | }; | 89 | }; | ||
92 | 90 | | |||
93 | } | 91 | } | ||
94 | 92 | | |||
95 | Q_DECLARE_OPERATORS_FOR_FLAGS(Akonadi::StorageInterface::FetchContentTypes) | 93 | Q_DECLARE_OPERATORS_FOR_FLAGS(Akonadi::StorageInterface::FetchContentTypes) | ||
96 | 94 | | |||
97 | #endif // AKONADI_STORAGEINTERFACE_H | 95 | #endif // AKONADI_STORAGEINTERFACE_H |