Configuration update application at startup

This commit is contained in:
Vojtech Kral
2018-04-13 11:04:39 +02:00
parent b030791384
commit b49b59cbb2
14 changed files with 288 additions and 54 deletions
+2 -1
View File
@@ -58,7 +58,8 @@ public:
};
std::vector<PrinterModel> models;
VendorProfile(std::string id) : id(std::move(id)), config_version(0, 0, 0) {}
VendorProfile() {}
VendorProfile(std::string id) : id(std::move(id)) {}
static VendorProfile from_ini(const boost::filesystem::path &path, bool load_all=true);
static VendorProfile from_ini(const boost::property_tree::ptree &tree, const boost::filesystem::path &path, bool load_all=true);