Simple QVariantMap-based persistent storage. More...
| Header: | #include <SimpleMapStore> |
| Since: | 1.0 |
| Inherits: | SimpleDataStore |
SimpleMapStore is a concrete SimpleDataStore that stores a QVariantMap directly. Useful for simple key-value storage needs without custom serialization.
fromMap(), toMap() and fromDefault() are thread safe. The owner calls them on its thread, and the AsyncStore worker calls them on its thread when it loads, saves or generates. One mutex guards the map for both.
They need a configured store, not an active one. activate(false) ends with a synchronize, and in asynchronous mode the worker runs it after the store marked itself inactive. That final save must see the map.
See also SimpleDataStore.