52 License(
const QString& sLicenseString =
"",
const QString& sCopyrightHolder =
"" );
81 void parse(
const QString& sLicenseString );
130 QString
toQString(
const QString& sPrefix =
"",
bool bShort =
true )
const override;
173 return "CC BY-NC-SA";
179 return "CC BY-NC-ND";
185 return "All rights reserved";
191 return "undefined license";
195 return QString(
"Copyright (C) %1 %2\n\
197 This program is free software: you can redistribute it and/or modify\n\
198 it under the terms of the GNU General Public License as published by\n\
199 the Free Software Foundation, either version 3 of the License, or\n\
200 (at your option) any later version.\n\
202 This program is distributed in the hope that it will be useful,\n\
203 but WITHOUT ANY WARRANTY; without even the implied warranty of\n\
204 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n\
205 GNU General Public License for more details.\n\
207 You should have received a copy of the GNU General Public License\n\
208 along with this program. If not, see <https://www.gnu.org/licenses/>." )
209 .arg( QDateTime::currentDateTime().toString(
"yyyy" ) )
Wrapper class to help Hydrogen deal with the license information specified in a drumkit.
LicenseType
A couple of recognized licenses.
@ GPL
Not a desirable license for audio data but introduced here specifically since it is already used by a...
@ Unspecified
No license set yet.
@ AllRightsReserved
User decides with withhold all rights.
@ Other
All other licenses not specified above.
LicenseType getType() const
bool hasAttribution() const
void setCopyrightHolder(const QString &sCopyrightHolder)
QString m_sCopyrightHolder
This variable will not be written to disk.
QString getLicenseString() const
bool operator!=(const License &other) const
QString getCopyrightHolder() const
bool operator==(const License &other) const
void setType(LicenseType license)
static QString getGPLLicenseNotice(const QString &sAuthor)
static QString LicenseTypeToQString(LicenseType license)
QString toQString(const QString &sPrefix="", bool bShort=true) const override
Formatted string version for debugging purposes.
License(const QString &sLicenseString="", const QString &sCopyrightHolder="")
void parse(const QString &sLicenseString)