HiveRegistry
Registry of known hive storage containers.
| Declared in | src/libs/libhive/hive/HiveRegistry.hpp |
| Inherits | QObject and SimpleDataStore |
| Group | hive |
Detailed description
HiveRegistry maintains a persistent list of all hives known to the application, including their locations, names, and access timestamps.
Key features:
- Persistent storage as JSON in app data directory
- Auto-discovery of hives in default locations
- Sequential naming for new hives (hive_001.store, hive_002.store, etc.)
- Tracking of active/last-used hive
It is thread safe. The AsyncStore worker calls fromMap(), toMap() and fromDefault() on its thread while the owner uses the registry on its thread. One mutex guards the hive list and the two ids for both. No signal is emitted, the store is not called and the file system is not read while it is held. A lookup returns a copy of the entry, because the worker can replace the list when it loads.
See also HiveEntry, SimpleDataStore, AddressBook.