summaryrefslogtreecommitdiff
path: root/src/categories.h
diff options
context:
space:
mode:
authorTannin <devnull@localhost>2015-06-10 22:09:32 +0200
committerTannin <devnull@localhost>2015-06-10 22:09:32 +0200
commit793dfb1637322c60bcbf32fdc5a9c23bb7ed5ec4 (patch)
tree29fb382b16bc6987132701efd46691302ef8800d /src/categories.h
parentd25a81071c078585f14176283b89e1a6b0ad5795 (diff)
added plugin interface to add/remove/list categories to/from/of mods
Diffstat (limited to 'src/categories.h')
-rw-r--r--src/categories.h8
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