| 773 | } |
| 774 | |
| 775 | bool 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 | |
| 802 | bool ConfigParser::configureTargets() { |
| 803 | const auto icons = QuasarAppUtils::Params::getArg("icon"). |
nothing calls this directly
no outgoing calls
no test coverage detected