mirror of
https://github.com/QuasarApp/CQtDeployer.git
synced 2025-04-28 18:54:33 +00:00
151 lines
3.0 KiB
C++
151 lines
3.0 KiB
C++
#include "deployconfig.h"
|
|
#include "deploycore.h"
|
|
#include "distromodule.h"
|
|
|
|
DistroModule::DistroModule(const QString& key) {
|
|
setKey(key);
|
|
}
|
|
|
|
QSet<QString> DistroModule::targets() const {
|
|
return _targets;
|
|
}
|
|
|
|
void DistroModule::setTargets(const QSet<QString> &targets) {
|
|
_targets = targets;
|
|
}
|
|
|
|
void DistroModule::addTarget(const QString &target) {
|
|
_targets.insert(target);
|
|
}
|
|
|
|
QSet<QString> DistroModule::qmlInput() const {
|
|
return _qmlInput;
|
|
}
|
|
|
|
void DistroModule::setQmlInput(const QSet<QString> &qmlInput) {
|
|
_qmlInput = qmlInput;
|
|
}
|
|
|
|
void DistroModule::addQmlInput(const QString &target) {
|
|
_qmlInput.insert(DeployCore::transportPathToSnapRoot(target));
|
|
}
|
|
|
|
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;
|
|
}
|
|
|
|
QString DistroModule::publisher() const {
|
|
return _publisher;
|
|
}
|
|
|
|
void DistroModule::setPublisher(const QString &publisher) {
|
|
_publisher = publisher;
|
|
}
|
|
|
|
QSet<QString> DistroModule::enabledPlugins() const {
|
|
return _enabled;
|
|
}
|
|
|
|
void DistroModule::setEnabledPlugins(const QSet<QString> &enabled) {
|
|
_enabled = enabled;
|
|
}
|
|
|
|
void DistroModule::addEnabledPlugins(const QString &enabled) {
|
|
_enabled += enabled;
|
|
}
|
|
|
|
QSet<QString> DistroModule::disabledPlugins() const {
|
|
return _disabled;
|
|
}
|
|
|
|
void DistroModule::setDisabledPlugins(const QSet<QString> &disabled) {
|
|
_disabled = disabled;
|
|
}
|
|
|
|
void DistroModule::addDisabledPlugins(const QString &disabled) {
|
|
_disabled += disabled;
|
|
}
|
|
|
|
QSet<QString> DistroModule::extraPlugins() const {
|
|
return _extraPlugins;
|
|
}
|
|
|
|
void DistroModule::setExtraPlugins(const QSet<QString> &extraPlugins) {
|
|
_extraPlugins = extraPlugins;
|
|
}
|
|
|
|
void DistroModule::addExtraPlugins(const QString &extraPlugin) {
|
|
_extraPlugins += DeployCore::transportPathToSnapRoot(extraPlugin);
|
|
|
|
}
|
|
|
|
QString DistroModule::homePage() const {
|
|
return _homePage;
|
|
}
|
|
|
|
void DistroModule::setHomePage(const QString &homePage) {
|
|
_homePage = homePage;
|
|
}
|
|
|
|
QString DistroModule::prefix() const {
|
|
return _prefix;
|
|
}
|
|
|
|
void DistroModule::setPrefix(const QString &location) {
|
|
_prefix = location;
|
|
}
|
|
|
|
QString DistroModule::key() const {
|
|
return _key;
|
|
}
|
|
|
|
bool DistroModule::isDefaultModule() const {
|
|
const DeployConfig *cfg = DeployCore::_config;
|
|
|
|
return key() == cfg->getDefaultPackage();
|
|
}
|
|
|
|
bool DistroModule::isValid() {
|
|
return _key.size();
|
|
}
|
|
|
|
void DistroModule::setKey(const QString &key) {
|
|
_key = key;
|
|
}
|