Commit 26d87871 authored by Akarsh Simha's avatar Akarsh Simha
Browse files

Make CatalogDB::FindCatalog and CatalogDB::AddCatalog public

parent 54ed399e
......@@ -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
......@@ -192,15 +210,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
......@@ -215,14 +224,6 @@ class CatalogDB {
bool ParseCatalogInfoToDB(const QStringList &lines, QStringList &columns,
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
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment