diff options
Diffstat (limited to 'src/categories.h')
| -rw-r--r-- | src/categories.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/categories.h b/src/categories.h index 96e436e5..f2a5de39 100644 --- a/src/categories.h +++ b/src/categories.h @@ -80,6 +80,8 @@ public: **/
void saveCategories();
+ int addCategory(const QString &name, const std::vector<int> &nexusIDs, int parentID);
+
/**
* @brief retrieve the number of available categories
*
@@ -143,6 +145,12 @@ public: int getCategoryID(unsigned int index) const;
/**
+ * @brief look up the id of a category by its name
+ * @note O(n)
+ */
+ int getCategoryID(const QString &name) const;
+
+ /**
* @brief look up the index of a category by its id
*
* @param id index of the category to look up
|
