MCPcopy Create free account
hub / github.com/Serial-Studio/Serial-Studio / OfflineLicense

Method OfflineLicense

app/src/Licensing/OfflineLicense.cpp:77–97  ·  view source on GitHub ↗

* @brief Constructs the handler, wires activation-signal forwarding, then restores * any stored certificate so a startup token install re-triggers device rebuilds. */

Source from the content-addressed store, hash-verified

75 * any stored certificate so a startup token install re-triggers device rebuilds.
76 */
77Licensing::OfflineLicense::OfflineLicense() : m_activated(false)
78{
79 m_simpleCrypt.setKey(MachineID::instance().machineSpecificKey());
80 m_simpleCrypt.setIntegrityProtectionMode(SimpleCrypt::ProtectionHash);
81
82 connect(&LemonSqueezy::instance(),
83 &LemonSqueezy::activatedChanged,
84 this,
85 &OfflineLicense::onOnlineActivationChanged);
86
87 connect(this,
88 &OfflineLicense::activatedChanged,
89 &LemonSqueezy::instance(),
90 &LemonSqueezy::activatedChanged);
91 connect(this,
92 &OfflineLicense::activatedChanged,
93 &LemonSqueezy::instance(),
94 &LemonSqueezy::licenseDataChanged);
95
96 readSettings();
97}
98
99/**
100 * @brief Provides access to the OfflineLicense singleton instance.

Callers

nothing calls this directly

Calls 3

machineSpecificKeyMethod · 0.80
setKeyMethod · 0.45

Tested by

no test coverage detected