@param registry May be zero, then the repository will not be registered at all. Else, the repository will register itself to that registry. If this is zero, you have to care about storing the data using store() and/or close() by yourself. It does not happen automatically. For the global standard registry, the storing/loading is triggered from within duchain, so you don't need to care about it.
| 1224 | /// yourself. It does not happen automatically. For the global standard registry, the storing/loading |
| 1225 | /// is triggered from within duchain, so you don't need to care about it. |
| 1226 | explicit ItemRepository(const QString& repositoryName, Mutex* mutex, |
| 1227 | ItemRepositoryRegistry* registry = &globalItemRepositoryRegistry(), |
| 1228 | uint repositoryVersion = 1) |
| 1229 | : m_repositoryName(repositoryName) |
| 1230 | , m_repositoryVersion(repositoryVersion) |
| 1231 | , m_mutex(mutex) |
| 1232 | , m_registry(registry) |
| 1233 | { |
| 1234 | if (m_registry) |
| 1235 | m_registry->registerRepository(this); |
| 1236 | } |
| 1237 | |
| 1238 | ~ItemRepository() override |
| 1239 | { |
nothing calls this directly
no test coverage detected