Mercurial > hg > orthanc
comparison OrthancServer/Plugins/Engine/OrthancPluginDatabase.h @ 4589:bec74e29f86b db-changes
attaching the listener to transactions in IDatabaseWrapper
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Fri, 12 Mar 2021 15:33:47 +0100 |
parents | 648defffc8cc |
children | ff8170d17d90 |
comparison
equal
deleted
inserted
replaced
4588:94147ce2f097 | 4589:bec74e29f86b |
---|---|
295 | 295 |
296 virtual void SetProtectedPatient(int64_t internalId, | 296 virtual void SetProtectedPatient(int64_t internalId, |
297 bool isProtected) | 297 bool isProtected) |
298 ORTHANC_OVERRIDE; | 298 ORTHANC_OVERRIDE; |
299 | 299 |
300 virtual IDatabaseWrapper::ITransaction* StartTransaction(TransactionType type) | 300 virtual IDatabaseWrapper::ITransaction* StartTransaction(TransactionType type, |
301 ORTHANC_OVERRIDE; | 301 IDatabaseListener& listener) |
302 | 302 ORTHANC_OVERRIDE; |
303 virtual void SetListener(IDatabaseListener& listener) | |
304 ORTHANC_OVERRIDE | |
305 { | |
306 listener_ = &listener; | |
307 } | |
308 | 303 |
309 virtual unsigned int GetDatabaseVersion() | 304 virtual unsigned int GetDatabaseVersion() |
310 ORTHANC_OVERRIDE; | 305 ORTHANC_OVERRIDE; |
311 | 306 |
312 virtual void Upgrade(unsigned int targetVersion, | 307 virtual void Upgrade(unsigned int targetVersion, |