void ServicesDbWriter::setConfiguration(const Settings &conf) { ConfigOptions configOptions(conf); setUserEmail(configOptions.getServicesDbWriterEmail()); setCreateUser(configOptions.getServicesDbWriterCreateUser()); setOverwriteMap(configOptions.getServicesDbWriterOverwriteMap()); }
bool OnlineUnlockStatus::applyKeyFile (String keyFileContent) { KeyFileUtils::KeyFileData data; data = KeyFileUtils::getDataFromKeyFile (KeyFileUtils::getXmlFromKeyFile (keyFileContent, getPublicKey())); if (data.licensee.isNotEmpty() && data.email.isNotEmpty() && doesProductIDMatch (data.appID)) { setUserEmail (data.email); status.setProperty (keyfileDataProp, keyFileContent, nullptr); status.removeProperty (data.keyFileExpires ? expiryTimeProp : unlockedProp, nullptr); var actualResult (0), dummyResult (1.0); var v (machineNumberAllowed (data.machineNumbers, getLocalMachineIDs())); actualResult.swapWith (v); v = machineNumberAllowed (StringArray ("01"), getLocalMachineIDs()); dummyResult.swapWith (v); jassert (! dummyResult); if (data.keyFileExpires) { if ((! dummyResult) && actualResult) status.setProperty (expiryTimeProp, data.expiryTime.toMilliseconds(), nullptr); return getExpiryTime().toMilliseconds() > 0; } if ((! dummyResult) && actualResult) status.setProperty (unlockedProp, actualResult, nullptr); return isUnlocked(); } return false; }
void Connection::load(const QVariantMap& m) { setTitle(m["title"].toString()); setApiUrl(m["apiUrl"].toString()); setUserEmail(m["userEmail"].toString()); setApiKey(m["apiKey"].toString()); }
void ServicesDbReader::setConfiguration(const Settings& conf) { ConfigOptions configOptions(conf); setMaxElementsPerMap(configOptions.getMaxElementsPerPartialMap()); setUserEmail(configOptions.getServicesDbReaderEmail()); setBoundingBox(configOptions.getConvertBoundingBox()); }
void OsmApiDbReader::setConfiguration(const Settings& conf) { ConfigOptions configOptions(conf); setUserEmail(configOptions.getOsmapiDbReaderEmail()); setBoundingBox(configOptions.getConvertBoundingBox()); }
void ServicesDbReader::setConfiguration(const Settings& conf) { setMaxElementsPerMap(ConfigOptions(conf).getMaxElementsPerPartialMap()); setUserEmail(conf.getString(emailKey(), "")); }
void ServicesDbWriter::setConfiguration(const Settings &conf) { setUserEmail(conf.getString(emailKey(), "")); setCreateUser(ConfigOptions(conf).getServicesDbWriterCreateUser()); setOverwriteMap(conf.getBool(overwriteMapKey(), false)); }