* @brief Returns the list of datasets of a given collection, category and subcategory. */
| 140 | * @brief Returns the list of datasets of a given collection, category and subcategory. |
| 141 | */ |
| 142 | QStringList DatasetModel::datasets(const QString& collection, const QString& category, const QString& subcategory) { |
| 143 | if (!collection.isEmpty()) |
| 144 | return m_datasets[collection][category][subcategory]; |
| 145 | else |
| 146 | return allDatasets(category, subcategory).toStringList(); |
| 147 | } |
| 148 | |
| 149 | /** |
| 150 | * @brief Returns the number of datasets belonging to the given collection |
no test coverage detected