* @brief Builds and installs a commercial token for an active trial. */
| 38 | * @brief Builds and installs a commercial token for an active trial. |
| 39 | */ |
| 40 | static void installTrialToken(int daysRemaining) |
| 41 | { |
| 42 | Licensing::CommercialToken token; |
| 43 | token.setVariantName(QStringLiteral("Trial")); |
| 44 | token.setInstanceName(Licensing::MachineID::instance().machineId()); |
| 45 | token.setGraceDaysRemaining(daysRemaining); |
| 46 | token.setFeatureTier(Licensing::FeatureTier::Trial); |
| 47 | token.seal(); |
| 48 | Licensing::CommercialToken::setCurrent(token); |
| 49 | } |
| 50 | |
| 51 | //-------------------------------------------------------------------------------------------------- |
| 52 | // Constructor & singleton access |
no test coverage detected