| 19 | } |
| 20 | |
| 21 | void DeviceModel::loadDisabledModules() { |
| 22 | m_disabledModules.clear(); |
| 23 | QFile f(kModprobeConf); |
| 24 | if (!f.open(QIODevice::ReadOnly | QIODevice::Text)) |
| 25 | return; |
| 26 | QTextStream in(&f); |
| 27 | while (!in.atEnd()) { |
| 28 | QString line = in.readLine().trimmed(); |
| 29 | if (line.startsWith("blacklist ")) |
| 30 | m_disabledModules.insert(line.mid(10).trimmed()); |
| 31 | } |
| 32 | } |
| 33 | |
| 34 | void DeviceModel::setCategories(const QString &hostName, |
| 35 | const QVector<DeviceCategory> &categories) { |
nothing calls this directly
no outgoing calls
no test coverage detected