diff options
Diffstat (limited to 'common/indexer.h')
-rw-r--r-- | common/indexer.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/common/indexer.h b/common/indexer.h index 26887fb..f0b32f5 100644 --- a/common/indexer.h +++ b/common/indexer.h | |||
@@ -33,16 +33,18 @@ public: | |||
33 | virtual ~Indexer() = default; | 33 | virtual ~Indexer() = default; |
34 | typedef QSharedPointer<Indexer> Ptr; | 34 | typedef QSharedPointer<Indexer> Ptr; |
35 | virtual void add(const ApplicationDomain::ApplicationDomainType &entity) = 0; | 35 | virtual void add(const ApplicationDomain::ApplicationDomainType &entity) = 0; |
36 | virtual void modify(const ApplicationDomain::ApplicationDomainType &old, const ApplicationDomain::ApplicationDomainType &entity) = 0; | ||
37 | virtual void remove(const ApplicationDomain::ApplicationDomainType &entity) = 0; | 36 | virtual void remove(const ApplicationDomain::ApplicationDomainType &entity) = 0; |
37 | virtual void commitTransaction() {}; | ||
38 | virtual void abortTransaction() {}; | ||
38 | 39 | ||
39 | protected: | 40 | protected: |
40 | Storage::DataStore::Transaction &transaction(); | 41 | Storage::DataStore::Transaction &transaction(); |
41 | TypeIndex &index(); | 42 | TypeIndex &index(); |
43 | QByteArray mResourceInstanceIdentifier; | ||
42 | 44 | ||
43 | private: | 45 | private: |
44 | friend class ::TypeIndex; | 46 | friend class ::TypeIndex; |
45 | void setup(TypeIndex *, Storage::DataStore::Transaction *); | 47 | void setup(TypeIndex *, Storage::DataStore::Transaction *, const QByteArray &resourceId); |
46 | Storage::DataStore::Transaction *mTransaction; | 48 | Storage::DataStore::Transaction *mTransaction; |
47 | TypeIndex *mTypeIndex; | 49 | TypeIndex *mTypeIndex; |
48 | }; | 50 | }; |