2020-07-28 23:56:34 +03:00
|
|
|
#include "deploycore.h"
|
2019-12-13 23:05:07 +03:00
|
|
|
#include "distromodule.h"
|
|
|
|
|
|
|
|
DistroModule::DistroModule() {
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
QSet<QString> DistroModule::targets() const {
|
|
|
|
return _targets;
|
|
|
|
}
|
|
|
|
|
|
|
|
void DistroModule::setTargets(const QSet<QString> &targets) {
|
|
|
|
_targets = targets;
|
|
|
|
}
|
|
|
|
|
2019-12-14 00:03:43 +03:00
|
|
|
void DistroModule::addTarget(const QString &target) {
|
2019-12-13 23:05:07 +03:00
|
|
|
_targets.insert(target);
|
|
|
|
}
|
2019-12-15 18:30:24 +03:00
|
|
|
|
|
|
|
QSet<QString> DistroModule::qmlInput() const {
|
|
|
|
return _qmlInput;
|
|
|
|
}
|
|
|
|
|
|
|
|
void DistroModule::setQmlInput(const QSet<QString> &qmlInput) {
|
|
|
|
_qmlInput = qmlInput;
|
|
|
|
}
|
|
|
|
|
|
|
|
void DistroModule::addQmlInput(const QString &target) {
|
2020-07-28 23:56:34 +03:00
|
|
|
_qmlInput.insert(DeployCore::transportPathToSnapRoot(target));
|
2019-12-15 18:30:24 +03:00
|
|
|
}
|
2020-01-14 15:48:35 +03:00
|
|
|
|
|
|
|
QString DistroModule::name() const
|
|
|
|
{
|
|
|
|
return _name;
|
|
|
|
}
|
|
|
|
|
|
|
|
void DistroModule::setName(const QString &name)
|
|
|
|
{
|
|
|
|
_name = name;
|
|
|
|
}
|
|
|
|
|
|
|
|
QString DistroModule::description() const
|
|
|
|
{
|
|
|
|
return _description;
|
|
|
|
}
|
|
|
|
|
|
|
|
void DistroModule::setDescription(const QString &description)
|
|
|
|
{
|
|
|
|
_description = description;
|
|
|
|
}
|
|
|
|
|
|
|
|
QString DistroModule::version() const
|
|
|
|
{
|
|
|
|
return _version;
|
|
|
|
}
|
|
|
|
|
|
|
|
void DistroModule::setVersion(const QString &version)
|
|
|
|
{
|
|
|
|
_version = version;
|
|
|
|
}
|
|
|
|
|
|
|
|
QString DistroModule::releaseData() const
|
|
|
|
{
|
|
|
|
return _releaseData;
|
|
|
|
}
|
|
|
|
|
|
|
|
void DistroModule::setReleaseData(const QString &releaseData)
|
|
|
|
{
|
|
|
|
_releaseData = releaseData;
|
|
|
|
}
|
|
|
|
|
|
|
|
QString DistroModule::icon() const
|
|
|
|
{
|
|
|
|
return _icon;
|
|
|
|
}
|
|
|
|
|
|
|
|
void DistroModule::setIcon(const QString &icon)
|
|
|
|
{
|
|
|
|
_icon = icon;
|
|
|
|
}
|
2020-01-15 11:50:30 +03:00
|
|
|
|
|
|
|
QString DistroModule::publisher() const
|
|
|
|
{
|
|
|
|
return _publisher;
|
|
|
|
}
|
|
|
|
|
|
|
|
void DistroModule::setPublisher(const QString &publisher)
|
|
|
|
{
|
|
|
|
_publisher = publisher;
|
|
|
|
}
|
2020-07-04 18:13:32 +03:00
|
|
|
|
2020-07-04 23:08:41 +03:00
|
|
|
QSet<QString> DistroModule::enabledPlugins() const
|
2020-07-04 18:13:32 +03:00
|
|
|
{
|
|
|
|
return _enabled;
|
|
|
|
}
|
|
|
|
|
2020-07-04 23:08:41 +03:00
|
|
|
void DistroModule::setEnabledPlugins(const QSet<QString> &enabled)
|
2020-07-04 18:13:32 +03:00
|
|
|
{
|
|
|
|
_enabled = enabled;
|
|
|
|
}
|
|
|
|
|
2020-07-04 23:08:41 +03:00
|
|
|
void DistroModule::addEnabledPlugins(const QString &enabled) {
|
2020-07-04 18:13:32 +03:00
|
|
|
_enabled += enabled;
|
|
|
|
}
|
|
|
|
|
2020-07-04 23:08:41 +03:00
|
|
|
QSet<QString> DistroModule::disabledPlugins() const
|
2020-07-04 18:13:32 +03:00
|
|
|
{
|
|
|
|
return _disabled;
|
|
|
|
}
|
|
|
|
|
2020-07-04 23:08:41 +03:00
|
|
|
void DistroModule::setDisabledPlugins(const QSet<QString> &disabled)
|
2020-07-04 18:13:32 +03:00
|
|
|
{
|
|
|
|
_disabled = disabled;
|
|
|
|
}
|
|
|
|
|
2020-07-04 23:08:41 +03:00
|
|
|
void DistroModule::addDisabledPlugins(const QString &disabled) {
|
2020-07-04 18:13:32 +03:00
|
|
|
_disabled += disabled;
|
|
|
|
}
|
|
|
|
|
|
|
|
QSet<QString> DistroModule::extraPlugins() const
|
|
|
|
{
|
|
|
|
return _extraPlugins;
|
|
|
|
}
|
|
|
|
|
|
|
|
void DistroModule::setExtraPlugins(const QSet<QString> &extraPlugins)
|
|
|
|
{
|
|
|
|
_extraPlugins = extraPlugins;
|
|
|
|
}
|
|
|
|
|
|
|
|
void DistroModule::addExtraPlugins(const QString &extraPlugin) {
|
2020-07-28 23:56:34 +03:00
|
|
|
_extraPlugins += DeployCore::transportPathToSnapRoot(extraPlugin);
|
2020-07-04 18:13:32 +03:00
|
|
|
|
|
|
|
}
|