diff options
Diffstat (limited to 'SQLiteStudio3/coreSQLiteStudio/services/extralicensemanager.cpp')
| -rw-r--r-- | SQLiteStudio3/coreSQLiteStudio/services/extralicensemanager.cpp | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/SQLiteStudio3/coreSQLiteStudio/services/extralicensemanager.cpp b/SQLiteStudio3/coreSQLiteStudio/services/extralicensemanager.cpp new file mode 100644 index 0000000..23fb513 --- /dev/null +++ b/SQLiteStudio3/coreSQLiteStudio/services/extralicensemanager.cpp @@ -0,0 +1,28 @@ +#include "extralicensemanager.h" + +ExtraLicenseManager::ExtraLicenseManager() +{ +} + +bool ExtraLicenseManager::addLicense(const QString& title, const QString& filePath) +{ + if (licenses.contains(title)) + return false; + + licenses[title] = filePath; + return true; +} + +bool ExtraLicenseManager::removeLicense(const QString& title) +{ + if (!licenses.contains(title)) + return false; + + licenses.remove(title); + return true; +} + +const QHash<QString, QString>&ExtraLicenseManager::getLicenses() const +{ + return licenses; +} |
