/** * @fn ValueFromProfile */ QString NetctlProfile::getValueFromProfile(const QString profile, const QString key) { if (debug) qDebug() << PDEBUG; if (debug) qDebug() << PDEBUG << ":" << "Profile" << profile; if (debug) qDebug() << PDEBUG << ":" << "Key" << key; QMap<QString, QString> settings = getSettingsFromProfile(profile); return settings[key]; }
/** * @fn ValueFromProfile */ QString NetctlProfile::getValueFromProfile(const QString profile, const QString key) { if (debug) qDebug() << "[NetctlProfile]" << "[getValueFromProfile]"; if (debug) qDebug() << "[NetctlProfile]" << "[getValueFromProfile]" << ":" << "Profile" << profile; if (debug) qDebug() << "[NetctlProfile]" << "[getValueFromProfile]" << ":" << "Key" << key; QMap<QString, QString> settings = getSettingsFromProfile(profile); if (settings.contains(key)) return settings[key]; else return QString(""); }