blob: 23fb51358d53c555bd78eb6966251aeb826c7b6f (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
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;
}
|