diff options
Diffstat (limited to 'common/entitystore.h')
-rw-r--r-- | common/entitystore.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/common/entitystore.h b/common/entitystore.h index b795b26..6bfe414 100644 --- a/common/entitystore.h +++ b/common/entitystore.h | |||
@@ -54,6 +54,12 @@ public: | |||
54 | return reader.readPrevious(uid, revision); | 54 | return reader.readPrevious(uid, revision); |
55 | } | 55 | } |
56 | 56 | ||
57 | template<typename T> | ||
58 | EntityReader<T> reader() | ||
59 | { | ||
60 | return EntityReader<T>(mResourceType, mResourceInstanceIdentifier, mTransaction); | ||
61 | } | ||
62 | |||
57 | private: | 63 | private: |
58 | QByteArray mResourceType; | 64 | QByteArray mResourceType; |
59 | QByteArray mResourceInstanceIdentifier; | 65 | QByteArray mResourceInstanceIdentifier; |