• OctoMY API
  • OctoMY API Reference
  • C++ Classes
  • OctoMY
  • HiveRegistry
  • HiveRegistry Class

    Registry of known hive storage containers. More...

    Header: #include <HiveRegistry>
    Since: 1.0
    Inherits: QObject and SimpleDataStore

    Detailed Description

    HiveRegistry maintains a persistent list of all hives known to the application, including their locations, names, and access timestamps.

    Key features:

    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, and AddressBook.