MCPcopy Create free account
hub / github.com/QuasarApp/CQtDeployer / parseInitMode

Method parseInitMode

src/Deploy/src/configparser.cpp:775–800  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

773}
774
775bool ConfigParser::parseInitMode() {
776
777 auto initLvl = QuasarAppUtils::Params::getArg("init");
778 QString sourceUrl(":/Distro/Distributions/configures/Init.json");
779
780 if (initLvl == "multi") {
781 sourceUrl = ":/Distro/Distributions/configures/Init multiPackage configuration.json";
782 } else if (initLvl == "single") {
783 sourceUrl = ":/Distro/Distributions/configures/Init single configuration.json";
784 }
785
786 QFile configFile(DEFAULT_COFIGURATION_FILE);
787 QFile source(sourceUrl);
788
789 if (configFile.open(QIODevice::WriteOnly | QIODevice::Truncate)) {
790
791 if (source.open(QIODevice::ReadOnly)) {
792 configFile.write(source.readAll());
793 source.close();
794 }
795
796 configFile.close();
797 }
798
799 return true;
800}
801
802bool ConfigParser::configureTargets() {
803 const auto icons = QuasarAppUtils::Params::getArg("icon").

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected