| 8 | using namespace Louvre; |
| 9 | |
| 10 | LSessionLockManager::LSessionLockManager(const void *params) noexcept : LFactoryObject(FactoryObjectType) |
| 11 | { |
| 12 | assert(params != nullptr && "Invalid parameter passed to LSessionLockManager constructor."); |
| 13 | LSessionLockManager**ptr { (LSessionLockManager**) params }; |
| 14 | assert(*ptr == nullptr && *ptr == compositor()->sessionLockManager() && "Only a single LSessionLockManager instance can exist."); |
| 15 | *ptr = this; |
| 16 | |
| 17 | m_sessionLockRes.setOnDestroyCallback([this](auto) |
| 18 | { |
| 19 | if (m_state == Locked) |
| 20 | stateChanged(); |
| 21 | }); |
| 22 | } |
| 23 | |
| 24 | LClient *LSessionLockManager::client() const noexcept |
| 25 | { |
nothing calls this directly
no test coverage detected