From 793dfb1637322c60bcbf32fdc5a9c23bb7ed5ec4 Mon Sep 17 00:00:00 2001 From: Tannin Date: Wed, 10 Jun 2015 22:09:32 +0200 Subject: added plugin interface to add/remove/list categories to/from/of mods --- src/categories.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/categories.h') 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 &nexusIDs, int parentID); + /** * @brief retrieve the number of available categories * @@ -142,6 +144,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 * -- cgit v1.3.1