| 78 | |
| 79 | |
| 80 | QVector<QVariantMap> InstanceTable::getAllInstances(bool justEnabled) |
| 81 | { |
| 82 | QVector<QVariantMap> results; |
| 83 | getRecords(results, QStringList(), QStringList() << "instance ASC"); |
| 84 | if (justEnabled) |
| 85 | { |
| 86 | for (auto it = results.begin(); it != results.end();) |
| 87 | { |
| 88 | if (!(*it)["enabled"].toBool()) |
| 89 | { |
| 90 | it = results.erase(it); |
| 91 | continue; |
| 92 | } |
| 93 | ++it; |
| 94 | } |
| 95 | } |
| 96 | return results; |
| 97 | } |
| 98 | |
| 99 | bool InstanceTable::instanceExist(quint8 inst) |
| 100 | { |
no test coverage detected