Added feature to rename a hive and more renaming.

This commit is contained in:
apoorv569
2021-07-04 03:17:03 +05:30
parent 09a3b03658
commit 2c88863a71
5 changed files with 207 additions and 101 deletions
+5 -6
View File
@@ -38,14 +38,13 @@ class Database
// -------------------------------------------------------------------
// Insert into database
void InsertIntoSamples(std::vector<Sample>);
void InsertIntoHives(const std::string& folderName);
void InsertIntoHives(const std::string& hiveName);
// -------------------------------------------------------------------
// Update database
void UpdateFavoriteColumn(const std::string& filename, int value);
void UpdateFolder(const std::string& folderName);
void UpdateHiveName(const std::string& filename,
const std::string& folderName);
void UpdateHive(const std::string& hiveOldName, const std::string& hiveNewName);
void UpdateHiveName(const std::string& filename, const std::string& hiveName);
void UpdateTrashColumn(const std::string& filename, int value);
void UpdateSamplePack(const std::string& filename, const std::string& samplePack);
void UpdateSampleType(const std::string& filename, const std::string& type);
@@ -66,7 +65,7 @@ class Database
// -------------------------------------------------------------------
// Remove from database
void RemoveSampleFromDatabase(const std::string& filename);
void RemoveHiveFromDatabase(const std::string& folderName);
void RemoveHiveFromDatabase(const std::string& hiveName);
// -------------------------------------------------------------------
wxVector<wxVector<wxVariant>>
@@ -82,5 +81,5 @@ class Database
const std::string& sampleName, bool show_extension);
wxVector<wxVector<wxVariant>>
FilterDatabaseByHiveName(wxVector<wxVector<wxVariant>>& sampleVec,
const std::string& folderName, bool show_extension);
const std::string& hiveName, bool show_extension);
};