summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAkarsh Simha <akarsh@kde.org>2016-08-16 23:19:52 (GMT)
committerAkarsh Simha <akarsh@kde.org>2016-08-16 23:19:52 (GMT)
commit26d87871499f1e230803ca16aaec84423b972aeb (patch)
tree458ebf8e2cd047adbc8b8b661c9efa2057f3ea94
parent54ed399e4dbe3975951157774c380b68a43768fa (diff)
Make CatalogDB::FindCatalog and CatalogDB::AddCatalog public
-rw-r--r--datahandlers/catalogdb.h35
1 files changed, 18 insertions, 17 deletions
diff --git a/datahandlers/catalogdb.h b/datahandlers/catalogdb.h
index 9381341..5f1bd84 100644
--- a/datahandlers/catalogdb.h
+++ b/datahandlers/catalogdb.h
@@ -160,6 +160,24 @@ class CatalogDB {
* @return false if adding was unsuccessful
**/
bool AddEntry(const CatalogEntryData &catalog_entry, int catid);
+
+ /**
+ * @brief Returns database ID of the required catalog.
+ * Returns -1 if not found.
+ *
+ * @param name Name of the class being searched
+ * @return int
+ **/
+ int FindCatalog(const QString &catalog_name);
+
+ /**
+ * @brief Add the catalog with given details into the database
+ *
+ * @param catalog_data CatalogData object encompassing all catalog info
+ * @return void
+ **/
+ void AddCatalog(const CatalogData& catalog_data);
+
private:
/**
* @brief Used to add a cross referenced entry into the database
@@ -193,15 +211,6 @@ class CatalogDB {
QStringList catalog_list_;
/**
- * @brief Returns database ID of the required catalog.
- * Returns -1 if not found.
- *
- * @param name Name of the class being searched
- * @return int
- **/
- int FindCatalog(const QString &catalog_name);
-
- /**
* @short Add the catalog name and details to the db.
* This does not store the contents. It only adds the catalog info
* to the database. Hence, it is step 1 in AddCatalogContents
@@ -216,14 +225,6 @@ class CatalogDB {
QString &catalog_name, char &delimiter);
/**
- * @brief Add the catalog with given details into the database
- *
- * @param catalog_data CatalogData object encompassing all catalog info
- * @return void
- **/
- void AddCatalog(const CatalogData& catalog_data);
-
- /**
* @brief Prepares the sequence required by KSParser according to header.
* Information on the sequence is stored inside the header
*