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

Function isProTierActive

app/src/DataModel/NotificationCenter.cpp:455–463  ·  view source on GitHub ↗

* @brief Returns true when the current runtime has a valid Pro-or-higher license. */

Source from the content-addressed store, hash-verified

453 * @brief Returns true when the current runtime has a valid Pro-or-higher license.
454 */
455[[nodiscard]] static bool isProTierActive()
456{
457#ifdef BUILD_COMMERCIAL
458 const auto& tk = Licensing::CommercialToken::current();
459 return tk.isValid() && SS_LICENSE_GUARD() && tk.featureTier() >= Licensing::FeatureTier::Trial;
460#else
461 return false;
462#endif
463}
464
465/**
466 * @brief Resolves positional notify* arguments into (channel, title, subtitle).

Callers 1

installScriptApiMethod · 0.85

Calls 2

featureTierMethod · 0.80
isValidMethod · 0.45

Tested by

no test coverage detected